Saving cards
Payment with saved card is also called recurring payment
Recurring payment is executed in 2 steps
Step 1: save card and obtain card token¶
Before executing recurring payments, rectoken
must be received.
rectoken
is a token which references card data, securely stored on the payment gateway side.
To obtain rectoken
, the parameter required_rectoken=Y
must be sent during create order request.
There are two options to obtain token:
Option 1. During card verification.
Send parameter verification=Y
among with required_rectoken=Y
during create order request with small amount value (for example amount = 100).
In this case, amount value will be held on the card, and will be reversed.
rectoken
will be returned in response to response_url
and in server callback response to server_callback_url
Option 2. During the first purchase.
During create order request send amount value of the actual purchase value.
In this case, amount value will be charged from the card, and rectoken
will be returned in response to response_url
and in server callback response to server_callback_url
.
Step 2: execute recurring payment without customer participation¶
Create payment with saved card passing recurring token in rectoken
parameter