On This Page
Process a Sale
Send a sale request to authorize and capture a payment in the same request. A successful
sale response includes a redirect URL and a pending status. Redirect the customer to the
URL to allow the customer to complete the checkout using Alipay+. When the customer
completes the checkout, the customer is redirected to your merchant website based on the
success URL you include in the
merchantInformation.successUrl
request field.Supported Digital Wallets
This table lists the supported digital wallet types and the relevant digital wallet
code, country code, and currency code for each country. When sending a sale request,
set these fields to the specified values listed in the table:
Country | Digital Wallet | Digital Wallet Code | Country Code | Currency Code |
|---|---|---|---|---|
China | Alipay | ALO | CN | CNY |
Hong Kong (CN) | Alipay+ | ALP | HK | HKD |
Indonesia | Akulaku PayLater | APL | ID | IDR |
Indonesia | Dana | DNA | ID | IDR |
Korea, Republic of (South) | KakaoPay | KPT | KR | KRW |
Malaysia | Boost | BST | MY | MYR |
Malaysia | Touch'n'GO | TNG | MY | MYR |
Philippines | Bank of Philippines | BPI | PH | PHP |
Philippines | Gcash | GCH | PH | PHP |
Thailand | Rabbit Line Pay | RPL | TH | THB |
Thailand | TrueMoney | TMY | TH | THB |
Line Items
Line items are included in a request in the
lineItem[]
array.For more information about how to properly format line items in your request, see
Using Line Items.
Tax Amounts
You can include the tax amount for every type of purchased product
in the
orderInformation.lineItems[].taxAmount
field when you request the
sale service.Calculating the Grand Total
Include the grand total in the request by using the
orderInformation.amountDetails.totalAmount
field. Endpoints
Production:
POST
https://api.cybersource.com
/pts/v2/paymentsTest:
POST
https://apitest.cybersource.com
/pts/v2/paymentsResponse Statuses
Cybersource
responds to your sale request with one of these statuses in the status
field:- Sale Status
- FAILED: The sale cannot be completed.
- PENDING: The sale request is accepted but is not completed. Request the check status service every 60 minutes to retrieve status updates. See Check a Request Status.
When you send a check status request to retrieve an updated sale status, these are
the possible responses:
- Check Status for a Sale
- ABANDONED: The customer did not complete the payment using the redirect URL.
- FAILED: The sale cannot be completed.
- FUNDED: The settled amount is funded to the merchant bank account.
- PENDING: The sale request is accepted but is not complete. Continue sending the check status request every 60 minutes.
- SETTLED: The sale request is settled for the requested amount. You cannot receive a settled status until the customer has completed checking out.