On This Page
Processing a Sale Workflow
This workflow describes the sequence of events that comprises processing a successful
payment using the sale request.
Figure:
Sale Workflow
- The customer begins to check out on the merchant's website and chooses one of these payment methods:
- PayPal
- PayPal Pay Later
- Venmo
- You send a create order API request toCybersourceand set theprocessingInformation.authorizationOptions.authTyperequest field toCAPTURE. For more information, see Create a PayPal Order.
- Cybersourceresponds with this information in the response message:
- PAYER_ACTION_REQUIREDstatus
- PayPal checkout redirect URL or a Venmo checkout QR code
- Order ID
- Order request ID
- 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.
- The customer uses their PayPal or Venmo account to complete the payment and is redirected to the merchant's checkout page.
- You request a check status with the order transaction ID. For more information, see Check Status for a Transaction.
- Cybersourceresponds with anAPPROVEDstatus.
- You display the order confirmation to the customer.
- You request a sale with the order ID. For more information, see Process a Sale.
- Cybersourceresponds with aPENDINGstatus and a sale request ID.
- You request a check status with the sale request ID. For more information, see Check Status for a Transaction.
- Cybersourceresponds with aCOMPLETEDstatus.
- You display a payment confirmation to the customer.