Skip to content

Direct payments

Martin Mladenov edited this page Apr 2, 2019 · 5 revisions

Direct payments are a way to securely pay on websites directly through a bank account without the need to provide card details.

Note: Direct payments require the CentralApi to be set up and running

An example implementation of direct payments can be found in the included DemoShop project.


Making direct payments

When the user chooses to use this option, the merchant website generates and digitally signs a payment request containing the amount, a description of the payment, and the details of the destination bank account.

The user is then redirected to the CentralApi, where all supported banks are listed and the user has to select theirs.

Bank selection page

After the user selects a bank, the CentralApi includes the bank's private key in the payment request generated by the merchant, signs it, and redirects the user to their bank, where, after logging in, they can choose a source account and complete their payment.

Payment confirmation page

The user is then redirected back to the merchant website, where the signatures of the payment are verified and the order is marked as completed.

Completed order

Clone this wiki locally