Paying with Gift Card
A Wallet gift card can be used as payment option in a standalone payment system.
For using with Dintero Checkout, see Paying with Dintero Gift Cards in Checkout
The process is:
- Check the balance of the gift card
- Pay the order partially or fully with the funds available
- Let payer pay the remaining amount with card/cash in the payment system.
Check balance
Use the info endpoint to get available funds that can be used in a sale transaction
POST https://api.dintero.com/v1/accounts/{aid}/wallets/info
Authorization: Bearer <token>
Content-Type: application/json
{
"token": "{card_token}"
}
Create capture (sale transaction)
Use the
card_id
included in the info response
POST https://api.dintero.com/v1/accounts/{aid}/wallets/transactions
Authorization: Bearer <token>
Content-Type: application/json
{
"token": "{card_token}",
"card_id": "string",
"metadata": {
"order_id": "xk39592f"
},
"ref_id": "string",
"amount": 50000,
"currency": "NOK",
"type": "drawdown",
"pending": false
}
info
See related API documentation for more information about balance and transaction