On This Page
Save an Order
After the customer completes the purchase using the Paypal or Venmo redirect URL from the
create order response, you can save the customer's order by requesting a save order.
Saving a customer's order enables you to retain an order even after you have authorized
the payment. This is necessary for situations where you must reverse the authorization
but plan to authorize the same order again. When the order is authorized and captured,
you can longer authorize the saved order.
If you decide that you no longer need to retain a saved order, you can cancel the saved
order by sending a void order request. For more information, see Void an Order.
IMPORTANT
The customer must give you consent to saving their payment
credentials in an order before you save their information.
- Prerequisite
- Before sending the save order request, you must ensure that the create order request included theprocessingInformation.processingInstructionfield set to theORDER_SAVED_EXPLICITLYvalue.
Endpoints
Production:
PATCH
https://api.cybersource.com
/pts/v2/intents/{id}
Test:
PATCH
https://apitest.cybersource.com
/pts/v2/intents/{id}
Set the to the order ID
contained in the create order response.
{id}
Required Fields for Saving an Order
- Set to one of these values:
- payPal: the PayPal payment method.
- venmo: the Venmo payment method.
- Set toeWallet.
- Set toAP_EXTENDED_ORDER.
Example: Saving an Order
Request
{ "paymentInformation": { "paymentType": { "method": { "name": "payPal" }, "name": "eWallet" } }, "processingInformation": { "actionList": [ "AP_EXTEND_ORDER" ] } }
Response to a Successful Request
{ "processorInformation": { "networkTransactionId": "O-0PJ044907K025064E", "transactionId": "15280613LP005810C" }, "message": "Successful", "status": "COMPLETED", "id": "7259829628396022101991", "submitTimeUtc": "2024-09-10T15:42:42Z" }
Response Statuses for Saving an Order
Cybersource
responds to your request with one of these statuses in
the status
response field:- COMPLETED: The request was successful and the customer's payment information from the order is saved for future transactions.
- INVALID_REQUEST: The request was not successful. Send a new save order request.