Payment by the Saved Card
This method allows businesses to enable customers to make payments on the bank's webpage without entering their card details again. This feature is useful when a customer has previously saved their card information during a successful card payment transaction for future use.
This method allows the business to charge the user without requiring them to re-enter card details on the bank's payment page. It is intended for use when the user previously saved a card during a successful card or BOG Authorization (bog_p2p) payment for future charges. The recurring payment will be executed using the same method (card or bog_p2p) with which the card was saved.
Path parameters
parent_order_idrequiredstring
The Header, Body and Response parameters for this method are the same as those used for the order request method.
- CURL
curl -X POST 'https://api.bog.ge/payments/v1/ecommerce/orders/:parent_order_id' \
-H 'Accept-Language: ka' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
--data-raw '{
"callback_url": "https://example.com/callback",
"purchase_units": {
"total_amount": 1,
"basket": [
{
"quantity": 1,
"unit_price": 1,
"product_id": "product123"
}
]
}
}'
If the saved card has expired, the request will return a 400 Bad Request response.
- RESPONSE – Expired card
{
"message": "Payment declined because the card has expired"
}