Processing a Sale
Processing a sale requires you to use information from the API
response message to redirect the customer to their bank's website to complete the
checkout. Follow these steps to process a sale.
- Send aPOSTrequest to thehttps://ics2ws.ic3.com/commerce/1.x/transactionProcessorendpoint and include these required fields:
- Set toPBB.
- Set to the URL to which the customer is redirected after cancelling the Pay by Bank payment.
- Set to the URL to which the customer is redirected after the Pay by Bank payment fails.
- Set totrue.
- Set to the URL to which the customer is redirected after successfully completing the Pay by Bank payment.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Set to eitherGBPorEUR.
- Choose from these optional fields to include additional information in your request:
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Replace the#character with the number0for the first item and consecutive numbers for any additional items.
- Redirect the customer to the URL in theapSaleReply_merchantURLresponse field.<merchantURL>https://checkout.b.banked.com/75ca2d53-58bd-434f-a889-bc92d2902dd4</merchantURL>
- When the customer validates the purchase on their bank's website, the customer is redirected to the merchant's website that you provided in theapSaleService_successURLrequest field.<successURL>https://www.merchant.redirect.url.from.request.html?actionsuccess</successURL>
AFTER COMPLETING THE TASK
When the sale is successfully processed,
Cybersource
sends a SETTLED
webhook notification. For information about how to set
up webhook subscriptions, see Webhook Subscriptions. If you do not
receive a webhook notification, send a check status request. For information about how
to send a check status request, see Check Status.