Creating a Session
Follow these steps to successfully complete a session request.
- Send aPOSTrequest to thehttps://ics2ws.ic3.com/commerce/1.x/transactionProcessorendpoint and include these required fields:
ADDITIONAL INFORMATION
- Set toafp.
- Set totrue.
- Set toN.
- Include any of these optional fields in the request:
ADDITIONAL INFORMATION
- apSessionService_paymentMethod_name
- Set toN.
- billTo_street2
- Replace the#character with a sequential number starting from0.
- Replace the#character with a sequential number starting from0.
- Replace the#character with a sequential number starting from0.
- Replace the#character with a sequential number starting from0.
- Replace the#character with a sequential number starting from0.
- Replace the#character with a sequential number starting from0.
- When this field is included in the request, thepurchaseTotals_grandTotalAmountfield is no longer required.
- Replace the#character with a sequential number starting from0.
- Store the value in theprocessorTokenfield from the session response. You must include this value in the follow-on authorization request.
ADDITIONAL INFORMATION
<processorToken>5f97d636-85d1-486b-a1de-96111938ec61</processorToken> - Redirect the customer to the returned Afterpay or Clearpay URL contained in themerchantURLresponse field.
ADDITIONAL INFORMATION
<merchantURL>https://portal.afterpay.com/us/checkout/?token=002.suuh2tq1gfvthg0180il0928fjkhg1p4ufg4savhihcvm9uj</merchantURL> - When the customer completes the checkout using their Afterpay or Clearpay credentials, Afterpay or Clearpay redirects the customer to the success URL specified in the session request. You can now send an authorization request.
- When you send the authorization request, set theapAuthService_preapprovalTokenfield to theprocessorTokenfield value you stored from the session response.