2017-01-16 6 views
0

Использование Интеграция VT-Direct (платеж по счету Mandiri) для веб-приложения в Индо, проблема, с которой я столкнулся, - это транзакция, истекшая через 24 часа, если клиент не оплатил деньги Платеж Mandiri Оплата, я хочу изменить это на 48 часов, любой с Veritans? ответ был оценен.VT-Direct Integration (Mandiri Bill Payment) Истекает через 24 часа

вот апи URL:

https://docs.midtrans.com/en/vtdirect/integration_mbill.html

transaction = { 
    payment_type: 'echannel', 
    transaction_details: { 
     order_id: id_order, 
     gross_amount: total_paid 
    }, 
    item_details: txn_products, 
    echannel: { 
     bill_info1: "Payment For: " + id_order, 
     bill_info2: "debt" 
    } 
}; 

ответ

0
transaction = { 
       payment_type: 'echannel', 
       transaction_details: { 
        order_id: id_order, 
        gross_amount: total_paid 
       }, 
       item_details: txn_products, 
       echannel: { 
        bill_info1: "Payment For: " + id_order, 
        bill_info2: "debt" 
       }, 
       custom_expiry: { 
        expiry_duration: 2, 
        unit: 'day' 
       } 
      }; 

добавить custom_expiry и вы хороши!