On This Page
Create a Session
Creating a session is mandatory for processing a payment. To create a session, you must
include shipping fields in your request. The shipping field values are included in the
invoice Afterpay and Clearpay send to the customer.
A successful session response includes an Afterpay or Clearpay redirect URL and a token.
Send the customer to the redirect URL to approve the payment using their Afterpay or
Clearpay account. Use the token in the authorization request to link the authorization
to the session.
Endpoints
Set the
apSessionsService_run
field to
true
, and send the request to one of these
endpoints:Production:
https://ics2ws.ic3.com/commerce/1.x/transactionProcessor
Test:
https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor
Response Status
The session service responds with this status as the
apSessionReply_status
field value:- PENDING: The Afterpay or Clearpay redirect URL is generated. Redirect the customer to the Afterpay or Clearpay URL.
The session service also responds with a reason code as the
apSessionReply_reasonCode
field value. For more information about reason
codes, see the Reason Codes for the Simple Order
API.