On This Page
Encrypt and Upload the Batch File
This topic provides general instructions for how
to encrypt your batch file and upload it to
Cybersource
for offline processing.
PGP encryption ensures secure transmission of the sensitive payment data
that you upload to the Business Center
using the REST API.
Encryption is performed using a PGP public key that your TAM emails to you.- To encrypt and upload a batch file using the REST API:
- Write Java code that encrypts and uploads the batch file toCybersourcefor offline processing.
ADDITIONAL INFORMATION
If you base your Java code on a sample from the Cybersource Java Sample Code Repository (on GitHub), be sure to use values for your own environment in the commands below the inline comments. - Execute the code. Use the sample code for execution with application.
ADDITIONAL INFORMATION
ThePRODenvironment corresponds to a POST to this endpoint:secure-batch.cybersource.com/pts/v1/transaction-batch-uploadTheTESTenvironment corresponds to a POST to this endpoint:secure-batch-test.cybersource.com/pts/v1/transaction-batch-upload - Verify the response messages to make sure that the request was successful.
ADDITIONAL INFORMATION
A 201-level HTTP response code indicates success. See theTransaction Response Codes. - Proceed to Check the Validation and Processing Results.