在mcpayment网关中生成令牌时,会话超时错误

时间:2019-01-02 05:45:19

标签: php session session-variables payment-gateway mcpayment

我正在使用MC Payment gateway进行马来西亚交易。 所以在这里我根据卡的详细信息生成令牌

所以所有详细信息都是正确的,但是我遇到了类似的错误

  

您的付款会话已超时

以下是我的代码

$request = array(
        'mid' => $merchant_id,
        'txntype' => 'SALE',
        'ref' => $ref,
        'cur' => $cur,
        'amt' => $amt,
        'shop' => 'MCP Shop',
        'buyer' => 'MCP Buyer',
        'tel' => '',
        'email' => 'mcpayment@mcpayment.net',
        'product' => 'MCP Product',
        'lang' => 'en',
        'tokenize' => 'Y',
        'returnurl' => 'http://192.168.1.131/myserve/libraries/assets/myserve/return_gatewayhosted.php',
        'statusurl' => 'https://localhost/StatusURL.php',
        'fgkey' => $fgkey
        );

$hidden_fields = '';
foreach($request as $key=>$value){
    $hidden_fields .= '<input type="hidden" name="'.$key.'" value="'.$value.'" />';
}

$gateway_url = "https://map.uat.mcpayment.net/payment/dopayment";

echo '<form action="'.$gateway_url.'" method="post" id="mcpayment_form" target="_top">'.$hidden_fields.'
            <input type="submit" class="button alt" id="submit_mcpayment_payment_form" value="Pay via MCPayment GatewayHost" /> 
    </form>';
  • 我正在本地服务器上进行测试。
  • 启用Cookie
  • 没有太多可用的文档

发生此错误的可能性有多大?

0 个答案:

没有答案