On This Page
Endpoints for Services Supported with Apple Pay
This topic lists the
REST
API endpoints that you use to request the services supported with
Apple Pay.Authorizing a Payment
Production:
POST
https://api.cybersource.com
/pts/v2/paymentsProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/paymentsTest:
POST
https://apitest.cybersource.com
/pts/v2/paymentsProcessing a Sale
Production:
POST
https://api.cybersource.com
/pts/v2/paymentsProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/paymentsTest:
POST
https://apitest.cybersource.com
/pts/v2/paymentsMake sure to set the
processingInformation.capture
field to
true
.Reversing an Authorization
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}/reversalsProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/payments/{id}/reversalsTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}/reversalsReplace the
{id}
portion of the URL with the transaction ID of
the payment that you want to reverse. The transaction ID is returned in the
id
field of the
response to the authorization request. Example value: 7359642011156554503954Capturing a Payment
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}/capturesProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/payments/{id}/capturesTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}/capturesReplace the
{id}
portion of the URL with the transaction ID of
the payment that you want to capture. The transaction ID is returned in the
id
field of the
response to the authorization request. Example value: 7359642011156554503954Processing a Refund
Refund
Production:
POST
https://api.cybersource.com
/pts/v2/payments/{id}/refundsProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/payments/{id}/refundsTest:
POST
https://apitest.cybersource.com
/pts/v2/payments/{id}/refundsReplace the
{id}
portion of the URL with the transaction ID of
the capture request for the payment you are refunding. The transaction ID is
returned in the id
field of the
capture request. Example value: 7359642011156554503954Voiding a Capture
Production:
POST
https://api.cybersource.com
/v2/captures/{id}/voidsProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/payments/v2/captures/{id}/voidsTest:
POST
https://apitest.cybersource.com
/v2/captures/{id}/voidsReplace the
{id}
portion of the URL with the transaction ID of the
capture that you want to void. The transaction ID is returned in the id
field of the
response to the capture request. Example value: 7359642011156554503954Voiding a Credit
Production:
POST
https://api.cybersource.com
/pts/v2/credits/{id}/voidsProduction in India:
POST
https://api.in.cybersource.com
/pts/v2/credits/{id}/voidsTest:
POST
https://apitest.cybersource.com
/pts/v2/credits/{id}/voidsReplace the
{id}
portion of the URL with the transaction ID of the
credit you want to void. The transaction ID is returned in the id
field of the
response to the credit request. Example value: 7359642011156554503954