Sales
This section provides the information you need in order to process a sale
transaction.
A sale combines an authorization and a capture into a single transaction.
For
China UnionPay
, use the refund
service to reverse a sale.Endpoint
Production:
POST
https://api.cybersource.com
/pts/v2/paymentsTest:
POST
https://apitest.cybersource.com
/pts/v2/paymentsRequired Fields for Processing a Sale
Use these required fields for processing a sale.
- Set the value totrue.
- Set the value tointernet.
Related Information
REST Example for China UnionPay: Processing a Sale
China UnionPay
: Processing a SaleRequest
123456789101112131415161718192021222324252627282930{ "processingInformation": { "capture": true, "commerceIndicator": "internet" }, "orderInformation" : { "billTo" : { "country" : "US", "lastName" : "VDP", "address1" : "201 S. Division St.", "postalCode" : "48104-2201", "locality" : "Ann Arbor", "administrativeArea" : "MI", "firstName" : "RTS", "email" : "test@cybs.com" }, "amountDetails" : { "totalAmount" : "100.00", "currency" : "CNY" } }, "paymentInformation" : { "card" : { "expirationYear" : "2025", "number" : "62509470XXXXXXXX", "expirationMonth" : "12", "type" : "062" } } }
Response to a Successful Request
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ "_links" : { "void" : { "method" : "POST", "href" : "/pts/v2/payments/6485004068966546103093/voids" }, "self" : { "method" : "GET", "href" : "/pts/v2/payments/6485004068966546103093" } }, "clientReferenceInformation" : { "code" : "RTS-Auth" }, "id" : "6485004068966546103093", "orderInformation" : { "amountDetails" : { "totalAmount" : "100.00", "authorizedAmount" : "100.00", "currency" : "CNY" } }, "paymentAccountInformation" : { "card" : { "type" : "062" } }, "paymentInformation" : { "tokenizedCard" : { "type" : "062" }, "card" : { "type" : "062" } }, "processorInformation" : { "systemTraceAuditNumber" : "841109", "approvalCode" : "831000", "merchantAdvice" : { "code" : "01", "codeRaw" : "M001" }, "responseDetails" : "ABC", "networkTransactionId" : "016153570198200", "retrievalReferenceNumber" : "208720841109", "consumerAuthenticationResponse" : { "code" : "2", "codeRaw" : "2" }, "transactionId" : "016153570198200", "responseCode" : "00", "avs" : { "code" : "Y", "codeRaw" : "Y" } }, "reconciliationId" : "6485004068966546103093", "status" : "AUTHORIZED", "submitTimeUtc" : "2022-03-28T20:46:47Z" }