Payment Initiation
Note: this tutorial is only dedicated to point out which API methods should be used in order to correctly implement our Mobile SDK. Full API docs can be found at docs.kevin.eu

Initiating bank payment

We do support both authenticated and unauthenticated bank payments. Unauthenticated bank payments are easy to implement. However, the user will be asked to log in to his bank account each time he wants to make a payment.
Authenticated bank payments will skip login steps, but implementation requires an already authenticated bank account. Instructions on how to authenticate the user bank account can be found here:
API method structure can be found here.
Example using our PHP library:
1
$client = new Client($id, $secret, ['version' => '0.3', 'error' => 'array']);
2
$attrs = [
3
'Authorization' => 'account-bearer-token', // optional, will allow to skip login
4
'Redirect-URL' => 'https://your.callback.url', // must match SDK callback url
5
'description' => 'your-description',
6
'currencyCode' => 'EUR',
7
'amount' => '0.01',
8
'bankPaymentMethod' => [
9
'endToEndId' => '1',
10
'creditorName' => 'your-creditor-name',
11
'creditorAccount' => [
12
'iban' => 'your-creditor-iban',
13
],
14
],
15
];
16
$response = json_encode($client->payment()->initPayment($attrs));
Copied!
Received payment id should be passed to the SDK when attempting to perform the payment.

Initiating card payment

The Mobile SDK also supports card payments.
API method structure can be found here.
Example using our PHP library:
1
$client = new Client($id, $secret, ['version' => '0.3', 'error' => 'array']);
2
$attrs = [
3
'Redirect-URL' => 'https://your.callback.url', // must match SDK callback url
4
'description' => 'your-description',
5
'currencyCode' => 'EUR',
6
'amount' => 0.01,
7
'cardPaymentMethod' => [],
8
];
9
$response = json_encode($client->payment()->initPayment($attrs));
Copied!
Received payment id should be passed to the SDK when attempting to perform the payment.

Initiating hybrid payment

Hybrid payments are the card payments that might redirect the user to the bank flow if the entered card number belongs to the bank, which is supported by kevin. This payment type could be used when it's unknown whether the user has an EU/EEA bank and when companies want to save on the card processing fees.
API method structure can be found here.
Example using our PHP library:
1
$client = new Client($id, $secret, ['version' => '0.3', 'error' => 'array']);
2
$attrs = [
3
'Redirect-URL' => 'https://your.callback.url', // must match SDK callback url
4
'description' => 'your-description',
5
'currencyCode' => 'EUR',
6
'amount' => 0.01,
7
'cardPaymentMethod' => [],
8
'bankPaymentMethod' => [
9
'endToEndId' => '1',
10
'creditorName' => 'your-creditor-name',
11
'creditorAccount' => [
12
'iban' => 'your-creditor-iban',
13
],
14
],
15
];
16
$response = json_encode($client->payment()->initPayment($attrs));
Copied!
Received payment id should be passed to the SDK when attempting to perform the payment.