FILTER BY TAG

Saving and Voiding an Order Workflow

This workflow illustrates the process of saving and then voiding an order. Voiding an order is optional.

Figure:

Save and Void an Order Workflow
  1. The customer begins to check out on the merchant's website and chooses one of these payment methods:
    • PayPal
    • PayPal Pay Later
    • Venmo
  2. You request a create order. For more information, see Create a PayPal Order.
  3. Cybersource
    responds with this information in the response message:
    • PAYER_ACTION_REQUIRED
      status
    • PayPal checkout redirect URL or a Venmo checkout QR code
    • Order ID
    • Order request ID
  4. You redirect the customer to the PayPal checkout URL or display the Venmo QR code. The Venmo QR code is generated by setting the transaction ID in the Venmo Java SDK.
  5. The customer uses their PayPal or Venmo account to complete the payment and is redirected to the merchant's checkout page.
  6. The customer gives the merchant consent to save the customer's payment credentials in the order.
  7. You send a save order API request with the order ID to
    Cybersource
    . For more information, see Save an Order.
  8. Cybersource
    responds with a
    COMPLETED
    status.
  9. You can now authorize the order as many times as needed until the payment is captured.
  10. (Optional) The customer or merchant decides to delete the saved order with their payment credentials.
  11. You send a void order API request to
    Cybersource
    . For more information, see Void an Order.
  12. Cybersource
    responds with the
    VOIDED
    status.
  13. You display a confirmation that the order and the customer's payment credentials are no longer saved on the merchant's website.