How it works
The big picture in one diagram. What happens during a split payment, the four steps you control, and everything the components handle.
Payplug Elements let the payer settle one order in several tranches, using several payment methods, until the total is covered. Each tranche is held as an authorization, and nothing is actually charged until the order is paid for in full. Nobody ever pays for a fraction of an order.
As an integrator, your work comes down to four tasks. This page shows what each task is before you start implementing it.
The dots represent your integration.
The rest is taken care of: the Payplug Elements collect what the payer intends, and the orchestrator turns those intentions into transactions.
Your four tasks
Section titled “Your four tasks”- Authenticate. Your server exchanges your credentials for a short-lived access token. One single call for the whole lifetime of that access token.
- Create the session. Still on your server: you declare the order (its total, its currency, the methods you accept…) and you receive an opaque token for the elements.
- Show the elements. Your page loads one script, composes the components where you want them, and hands them that token. From there the checkout runs itself.
- Handle the notification. When the session ends, we call a notification URL you declared. That is how you learn the order is paid.
Dig deeper with the documentation
Section titled “Dig deeper with the documentation”Tasks 1 and 2 live together on Create a session, task 3 on Show the elements, and task 4 has its own page: webhooks.