SwitchPay provides a powerful API and client libraries provides access to variety of payment options with a single integration.
Check our Demo Checkout Page to see what SwitchPay is capable of doing.
Following diagram depicts from a high level the SwitchPay’s payment flow. General steps are common regardles of selected payment option or PSP however specifics may vary.
Each payment would include following steps:
Creating a payment using Payments API.
Rendering the checkout view using SwitchPay JS SDK. The SwitchPay JS SDK will collect payment information and
Payment Method object that should be used to confirm the
Confirming the payment using the identifier of a payment method provided via the SwitchPay JS callback.
status property of the confirmed
Payment to verify whether it doesn’t require additional action.
In case of additional action is required following the redirect to the URL provided in details.
If no actions were required or whenever user returned from the external page payment is being concluded and depending on the result success or failed message can be shown to the buyer.
SwitchPay may request redirecting buyer to an external page in one of following scenarios:
When 3D Secure authentication is required.
When PSP requires buyer to confirm a transaction on PSP’s side.
In any case you’d need to provide a
return_url when confirming the payment. User will be redirected back to that
URL after finalising tasks on the external page. Depending on the PSP and use case when returned back additional
information like payment status may be attached to the return URL in query string.
It’s up to the client to properly handle buyer redirection to and from extrenal web page. SwitchPay JS does not perform redirects.
Select a guide that matches your use case to learn how to use SwitchPay to accept online payments.
Select a guide below to learn how to process credit card payments with SwitchPay.
Select a guide below to learn how to process wallet payments with SwitchPay.
Select a guide below to learn how to process SEPA direct debit payment with SwitchPay.