我正在使用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>';
发生此错误的可能性有多大?