REST API | Visa Platform Connect

REST Example: Validating and Authorizing a Transaction

Production:
POST
https://api.cybersource.com
/pts/v2/payments
Test:
POST
https://apitest.cybersource.com
/pts/v2/payments
Request
{ "clientReferenceInformation": { "code": "TC50171_3" }, "processingInformation": { "commerceIndicator": "vbv" }, "paymentInformation": { "card": { "number": "41111111XXXXXXX1", "expirationMonth": "01", "expirationYear": "2026" } }, "orderInformation": { "amountDetails": { "totalAmount": "100", "currency": "USD" }, "billTo": { "firstName": "John", "lastName": "Smith", "address1": "201 S. Division St._1", "locality": "Foster City", "administrativeArea": "CA", "postalCode": "94404", "country": "US", "email": "accept@who.com", "phoneNumber": "6504327113" } }, "consumerAuthenticationInformation": { "cavv": "1234567890987654321ABCDEFabcdefABCDEF123", "xid": "1234567890987654321ABCDEFabcdefABCDEF123" } }
Response
{ "_links": { "authReversal": { "method": "POST", "href": "/pts/v2/payments/6758954108726900304951/reversals" }, "self": { "method": "GET", "href": "/pts/v2/payments/6758954108726900304951" }, "capture": { "method": "POST", "href": "/pts/v2/payments/6758954108726900304951/captures" } }, "clientReferenceInformation": { "code": "TC50171_3" }, "id": "6758954108726900304951", "orderInformation": { "amountDetails": { "authorizedAmount": "100.00", "currency": "USD" } }, "paymentAccountInformation": { "card": { "type": "001" } }, "paymentInformation": { "tokenizedCard": { "type": "001" }, "card": { "type": "001" } }, "pointOfSaleInformation": { "terminalId": "111111" }, "processorInformation": { "approvalCode": "888888", "networkTransactionId": "123456789619999", "transactionId": "123456789619999", "responseCode": "100", "avs": { "code": "X", "codeRaw": "I1" } }, "reconciliationId": "711764833DU1FCQD", "status": "AUTHORIZED", "submitTimeUtc": "2023-02-08T22:30:11Z" }