On This Page
Creating a Session
Follow these steps to successfully create a session.
- Send aPOSTrequest to theendpoint and include these required fields:https://api.cybersource.com/pts/v2/payments
- Include any of these optional fields in the request:
- orderInformation.lineItems[].productDescription
- orderInformation.lineItems[].taxAmount
- Redirect the customer to the returned URL in theprocessorInformation.paymentUrlresponse field.
- When the customer completes the checkout using their Oney credentials, the customer is redirected to the merchant site based on the URL that you included in themerchantInformation.successURLfield.
- Save the returned pre-approval token contained in theprocessorInformation.tokenresponse field. Include the pre-approval token in the authorization request to link the authorization to the session.