Skip to main content
Version: 1.0.0

Charge a transaction using a saved token

Charge a transaction using a saved token

Request Body
  • recurring_init_trans_id uuid required

    Transaction ID of the primary transaction in the Payment Platform

  • recurring_token string required

    Recurring token

  • schedule_id uuid

    Schedule ID for recurring payments it s available when recurring_init = true

  • hash string required

    Special signature to validate your request to Payment Platform Addition in Signature section Must be SHA1 of MD5 encoded string

  • order object

    Information about an order

  • number string required

    Order ID

  • amount float required

    Possible values: <= 255 characters

    Pay attention that amount will be exponent so if you pass 1 it will be 1.00

  • currency ISO 4217 required

    Possible values: <= 3 characters

    Currency code in the ISO 4217 standard (e.g. 'SAR').

  • description string required

    Product name

Responses

OK


Schema
  • status string

    Possible values: [settled, pending, declined]

    Payment status

  • payment_id uuid

    Transaction ID (public)

  • reason string

    Decline reason translation for unsuccessful payment. It displays only if the transaction is unsuccessful

  • date ISO 8601

    Transaction date

  • schedule_id uuid

    Schedule ID for recurring payments

  • order object

    Information about an order

  • number string

    Order ID

  • amount float

    Possible values: <= 255 characters

    Pay attention that amount will be exponent so if you pass 1 it will be 1.00

  • currency ISO 4217

    Possible values: <= 3 characters

    Currency code in the ISO 4217 standard (e.g. 'SAR').

  • description string

    Product name

POST /api/v1/payment/reсurring

Request

Base URL
https://checkout.dineropay.com
Body
{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"order": {
"number": "order-1234",
"amount": "1.00",
"description": "gift"
},
"recurring_init_trans_id": "dc66cdd8-d702-11ea-9a2f-0242c0a87002",
"recurring_token": "9a2f-0242c0a87002",
"hash": "{{session_hash}}"
}
curl -L -X POST 'https://checkout.dineropay.com/api/v1/payment/reсurring' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"order": {
"number": "order-1234",
"amount": "1.00",
"description": "gift"
},
"recurring_init_trans_id": "dc66cdd8-d702-11ea-9a2f-0242c0a87002",
"recurring_token": "9a2f-0242c0a87002",
"hash": "{{session_hash}}"
}'