【问题标题】:Instamojo Payment IssueInstamojo 付款问题
【发布时间】:2018-07-04 09:11:04
【问题描述】:

我可以从 Instamojo API 成功获得付款响应,但我找不到任何提及 instrument_type 的文档。我想知道 CARD 以外的 instrument_types。有没有办法找出来?

我还需要知道,如何限制通过 BHIMWallet 选项完成的付款?

请帮我解决这个问题。

谢谢。

【问题讨论】:

    标签: laravel payment-gateway payment instamojo


    【解决方案1】:

    试试这个函数从你的回复中提取仪器类型

    public function check(){
        try {
            $response = $this->api->paymentRequestPaymentStatus('Payment_request_id', 'Payment_id');
            dump($response);
            dump($response['payment']['instrument_type']);
        }
        catch (Exception $e) {
            print('Error: ' . $e->getMessage());
        }
    }
    

    【讨论】:

    • $data = json_decode($response, true); $data['payment_request']['instrument_type']
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-06-27
    • 2013-03-09
    • 2015-08-08
    • 2013-02-26
    • 1970-01-01
    • 2015-11-07
    • 2015-02-27
    相关资源
    最近更新 更多