CyberSource
URL: http://www.cybersource.com
Default Currency: USD
Developer Documentation: https://developer.cybersource.com/api-reference-assets/index.html
Supported Parameters:
* denotes a required field
Field Name | Type | CyberSource Mapping | Notes |
---|---|---|---|
gateway | string | N/A | CyberSource |
merchantId* | string | MerchantId | Your Cybersource merchant Id |
publicKey* | string | MerchantKeyId | API Key Id |
privateKey* | string | MerchantSecretKey | Shared Secret Key associated with API Key for HTTP Signature Authentication |
referenceInformationCode | string | Ptsv2paymentsClientReferenceInformation.Code | Merchant-generated order reference or tracking number. |
amount | numeric | Ptsv2PaymentsOrderInformationAmountDetails.TotalAmount | Transaction amount in cents. Example: $10.00 should be sent as 1000 |
currencyCode | string | Ptsv2PaymentsOrderInformationAmountDetails.Currency | Currency of the transaction. Alpha-3 ISO currency code Use the ISO 4217 three-letter alphabetic code for the currency. |
creditCard.Number | string | Ptsv2paymentsPaymentInformationCard.Number | Card number or TokenEx Token - TokenEx will replace the Token with the Detokenized number |
creditCard.ExpMonth | numeric | Ptsv2paymentsPaymentInformationCard.ExpirationMonth | The customer’s credit card expiration month. 1 or 2 digit value. Example: 11 |
creditCard.ExpYear | numeric | Ptsv2paymentsPaymentInformationCard.ExpirationYear | The customer’s credit card expiration year. 4 digit value. Example: 2025 |
creditCard.Cvv | string | Ptsv2paymentsPaymentInformationCard.SecurityCode | Card verification value Please refer to Tokenization, Detokenization and CVV Retrieval. |
creditCard.Brand | string | Ptsv2paymentsPaymentInformationCard.Type | Optional Parameter. If not passed, will match pattern with the following cards and assign value. Currently supported: visa - 001 , mastercard - 002, americanexpress - 003, discover - 004, diners club - 005, jcb - 007 |
threeDSecure.AuthenticationTransactionId | string | ConsumerAuthenticationInformation.AuthenticationTransactionId | Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages. |
threeDSecure.CAVV | string | ConsumerAuthenticationInformation.Cavv | Cardholder authentication verification value (CAVV). |
threeDSecure.ECI | string | ConsumerAuthenticationInformation.EciRaw | Raw electronic commerce indicator (ECI). |
threeDSecure.Xid | string | ConsumerAuthenticationInformation.Xid | Transaction identifier. |
threeDSecure.DSTransId | string | ConsumerAuthenticationInformation.DirectoryServerTransactionId | The Directory Server Transaction ID is generated by the Mastercard Directory Server during the authentication transaction and passed back to the merchant with the authentication results. |
threeDSecure.ProgramProtocol | string | ConsumerAuthenticationInformation.PaSpecificationVersion | 1 (Legacy 3DS 1.0.2) or 2 (EMVCo 3DS 2.0.0 +). |
ignoreAvsResult | boolean | AuthorizationOptions.IgnoreAvsResult | Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives an AVS decline. |
ignoreCvvResult | boolean | AuthorizationOptions.IgnoreCvResult | Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives a CVN decline |
declineAvsFlags | list | AuthorizationOptions.DeclineAvsFlags | Comma-separated list of AVS flags that cause the reply flag |
recurring | boolean | AuthorizationOptions.Initiator.CredentialStoredOnFile | true means merchant will use this transaction to store payment credentials for follow-up merchant-initiated transactions. false means merchant will not use this transaction to store payment credentials for follow-up merchant-initiated transactions. |
commerceIndicator | string | Ptsv2paymentsProcessingInformation.CommerceIndicator | Type of transaction. Only internet , moto , install , recurring , and recurring_internet are valid values. |
previousTransactionId | string | MerchantInitiatedTransaction.PreviousTransactionId | Network transaction identifier that was returned in the payment response field processorInformation.transactionID in the reply message for either the original merchant-initiated payment in the series or the previous merchant-initiated payment in the series. |
driversLicenseNumber | string | Ptsv2paymentsBuyerInformationPersonalIdentification.Id | Type will be supplied by TokenEx as driver license |
driversLicenseState | string | Ptsv2paymentsBuyerInformationPersonalIdentification.IssuedBy | This is the State or province where the customer’s driver’s license was issued |
check.AccountNumber | string | Ptsv2paymentsPaymentInformationBankAccount.Number | ACH account number or TokenEx Token - Tokenex will replace the Token with the Detokenized number |
check.RoutingNumber | string | Ptsv2paymentsPaymentInformationBank.RoutingNumber | The ABA routing number. |
check.CheckNumber | string | Ptsv2paymentsPaymentInformationBank.CheckNumber | The number of the check. |
check.AccountType | string | Ptsv2paymentsPaymentInformationBankAccount.Type | Represents the account type such as Checking, Savings, General Ledger, Corporate Checking |
secCode | string | BankTransferOptions.SecCode | Specifies the authorization method for the transaction. Valid values are ARC , CCD , POP , PPD , TEL , WEB . |
orderInfo.PurchaseOrderNumber | string | Ptsv2paymentsOrderInformationInvoiceDetails.PurchaseOrderNumber | Purchase Order Number |
orderInfo.InvoiceNumber | string | Ptsv2paymentsOrderInformationInvoiceDetails.InvoiceNumber | An identifier for the Invoice in Merchant's system |
tax.Amount | numeric | Ptsv2paymentsOrderInformationAmountDetails.TaxAmount | Tax amount in cents. Example: $10.00 should be sent as 1000 |
shippingAddress.FirstName | string | Ptsv2paymentsOrderInformationShipTo.FirstName | First name associated with customer’s shipping address. |
shippingAddress.LastName | string | Ptsv2paymentsOrderInformationShipTo.LastName | Last name associated with customer’s shipping address. |
shippingAddress.Address1 | string | Ptsv2paymentsOrderInformationShipTo.Address1 | First line of the shipping address |
shippingAddress.Address2 | string | Ptsv2paymentsOrderInformationShipTo.Address2 | Second line of the shipping address |
shippingAddress.City | string | Ptsv2paymentsOrderInformationShipTo.Locality | City of the shipping address |
shippingAddress.State | string | Ptsv2paymentsOrderInformationShipTo.AdministrativeArea | State or province of the shipping address |
shippingAddress.Zip | string | Ptsv2paymentsOrderInformationShipTo.PostalCode | Postal code for the shipping address |
shippingAddress.Country | string | Ptsv2paymentsOrderInformationShipTo.Country | Country of the shipping address. Alpha-2 ISO country code. |
shippingAddress.Phone | string | Ptsv2paymentsOrderInformationShipTo.PhoneNumber | Phone number associated with the shipping address |
billingAddress.FirstName | string | Ptsv2paymentsOrderInformationBillTo.FirstName | First name associated with customer’s billing address. |
billingAddress.LastName | string | Ptsv2paymentsOrderInformationBillTo.LastName | Last name associated with customer’s billing address. |
billingAddress.Address1 | string | Ptsv2paymentsOrderInformationBillTo.Address1 | Payment card billing street address as it appears on the credit card issuer’s records |
billingAddress.Address2 | string | Ptsv2paymentsOrderInformationBillTo.Address2 | Payment card billing street address as it appears on the credit card issuer’s records |
billingAddress.City | string | Ptsv2paymentsOrderInformationBillTo.Locality | Payment card billing city |
billingAddress.State | string | Ptsv2paymentsOrderInformationBillTo.AdministrativeArea | State or province of the billing address |
billingAddress.Zip | string | Ptsv2paymentsOrderInformationBillTo.PostalCode | The postal code of customer’s billing address. |
billingAddress.Country | string | Ptsv2paymentsOrderInformationBillTo.Country | Country of customer’s billing address. Alpha-2 ISO country code. |
billingAddress.Email | string | Ptsv2paymentsOrderInformationBillTo.Email | Email associated with customer’s billing address. |
billingAddress.Phone | string | Ptsv2paymentsOrderInformationBillTo.PhoneNumber | Phone number associated with customer’s billing address. |
Example Payloads:
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"ignoreAvsResult": false,
"ignoreCvvResult": false,
"declineAvsFlags": null,
"shippingAddress": null,
"driversLicenseNumber": null,
"driversLicenseState": null,
"commerceIndicator": null,
"previousTransactionId": null,
"creditCard": {
"brand": "Visa",
"number": "4242424242424242",
"expMonth": 10,
"expYear": 2021,
"firstName": "John",
"lastName": "Doe",
"cvv": "123"
},
"billingAddress": {
"phone": "555-555-5555",
"fax": "555-555-6666",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"name": "John Doe",
"company": "Test Co.",
"address1": "123 Someplace Lane",
"address2": "Some Place",
"city": "Tulsa",
"state": "OK",
"zip": "74111",
"country": "USA"
},
"tax": null,
"orderInfo": null,
"threeDSecure": null,
"amount": 123,
"use3DS": false,
"recurring": false,
"gateway": "CyberSource",
"testMode": true,
"currencyCode": "USD"
}
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"tokenExTransactionCode": "<TokenExTransactionCode provided by Authorize call>",
"amount": 123,
"gateway": "CyberSource",
"testMode": true,
"tax": null,
"orderInfo": null,
"currencyCode": "USD"
}
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"tokenExTransactionCode": "<TokenExTransactionCode provided by Purchase/Capture call>",
"amount": 123,
"gateway": "CyberSource",
"testMode": true,
"currencyCode": "USD"
}
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"tokenExTransactionCode": "<TokenExTransactionCode provided by Purchase/Capture/Refund call>",
"gateway": "CyberSource",
"testMode": true,
"currencyCode": "USD"
}
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"secCode": null,
"ignoreAvsResult": false,
"ignoreCvvResult": false,
"declineAvsFlags": null,
"shippingAddress": null,
"driversLicenseNumber": null,
"driversLicenseState": null,
"check": {
"accountNumber": "4101",
"routingNumber": "071923284",
"checkNumber": "123456789",
"firstName": "Maureen",
"lastName": "Heller",
"accountType": "Savings"
},
"billingAddress": {
"phone": "555-555-5555",
"fax": "555-555-6666",
"email": "[email protected]",
"firstName": "John",
"lastName": "Doe",
"name": "John Doe",
"company": "Test Co.",
"address1": "123 Someplace Lane",
"address2": "Some Place",
"city": "Tulsa",
"state": "OK",
"zip": "74111",
"country": "USA"
},
"amount": 12025,
"recurring": false,
"gateway": "CyberSource",
"testMode": true,
"currencyCode": "USD"
}
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"tokenExTransactionCode": "<TokenExTransactionCode provided by ACH Purchase call>",
"amount": 123,
"gateway": "CyberSource",
"testMode": true,
"currencyCode": "USD"
}
{
"merchantId": "<Your Merchant Id>",
"publicKey": "<Your API Key>",
"privateKey": "<Your shared secret key>",
"referenceInformationCode": "<Your reference information code>",
"tokenExTransactionCode": "<TokenExTransactionCode provided by ACH Purchase call>",
"gateway": "CyberSource",
"testMode": true
}
Gateway Response Fields:
Field Name | Type | TokenEx Mapping | Notes |
---|---|---|---|
approvalCode | string | ProcessorInformation.ApprovalCode | CyberSource approval code |
providerTransactionCode | string | PtsV2PaymentsPost201Response.Id | CyberSource generated Id for the request |
Updated over 1 year ago