FILTER BY TAG

Processing a Sale Workflow

This workflow describes the sequence of events that comprises processing a successful payment using the sale request.

Figure:

Sale 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 send a create order API request to
    Cybersource
    and set the
    processingInformation.authorizationOptions.authType
    request field to
    CAPTURE
    . 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. You request a check status with the order transaction ID. For more information, see Check Status for a Transaction.
  7. Cybersource
    responds with an
    APPROVED
    status.
  8. You display the order confirmation to the customer.
  9. You request a sale with the order ID. For more information, see Process a Sale.
  10. Cybersource
    responds with a
    PENDING
    status and a sale request ID.
  11. You request a check status with the sale request ID. For more information, see Check Status for a Transaction.
  12. Cybersource
    responds with a
    COMPLETED
    status.
  13. You display a payment confirmation to the customer.