Retry payments

In case the charge failed (after a successful prenotification), the merchant can retry the payment up to 48hrs before the following charge date.

To do so, the payment request is the same as in the Recurring Payment, but with prenotify = FALSE.

For UPI payments, a renewal can be retried a maximum of 2 times.

Retry Payment Flow

35383538

Example request

curl -X POST \
   -H 'X-Date: 2018-02-20T15:44:42.310Z' \
   -H 'X-Login: sak223k2wdksdl2' \
   -H 'X-Trans-Key: fm12O7G9' \
   -H 'Content-Type: application/json' \
   -H 'X-Version: 2.1' \
   -H 'User-Agent: MerchantTest / 1.0 ' \
   -H 'Authorization: V2-HMAC-SHA256, Signature: 1bd227f9d892a7f4581b998c21e353b1686a6bdad5940e7bb6aa596c96e0a6ec' \
   -d '{body}'
   https://api.dlocal.com/payments
   
   {
   "amount": 750,
   "currency": "INR",
   "country": "IN",
   "payment_method_id": "IR",
   "payment_method_flow": "DIRECT",
   "payer": {
       "name": "Ram Devi",
       "email": "[email protected]",
       "phone": "+919000123456",
       "document": "HSECT4378A"
   },
   "wallet": {
       "token": "W-yu23y4ibnyiu23y4",
       "recurring_info": {
        "prenotify": FALSE
       }
   },
   "order_id": "5346523565",
   "notification_url": "http://merchant.com/notifications"
}

Asynchronous notifications

When there is a change of status for the payment, we will send you a notification to confirm the transaction.

{
   "id": "D-4-75c7473a-ab86-4e43-bd39-c840268747d3",
   "amount": 750.00,
   "currency": "INR",
   "payment_method_id": "IR",
   "payment_method_type": "WALLET",
   "payment_method_flow": "DIRECT",
   "country": "IN",
   "created_date": "2018-12-26T20:37:20.000+0000",
   "status": "PAID",
   "status_detail": "The payment was paid",
   "status_code": "200",
   "order_id": "5346523565",
   "notification_url": "http://merchant.com/notifications",
}

Did this page help you?