VT-Direct集成(Mandiri账单支付)在24小时内过期

时间:2017-01-16 11:31:21

标签: php node.js payment-gateway loopback

使用 VT-Direct集成(Mandiri账单支付)作为Indo中的网络应用程序,我面临的问题是24小时后交易过期,如果客户未能用 Mandiri账单付款,我想将此更改为48小时,任何一个与Veritans?回应赞赏。

这是api 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"
    }
};

1 个答案:

答案 0 :(得分: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,你很好!