0

我是 PHP 新手....我需要帮助才能触发 DIBS HTML 支付表单上的函数以进行 MD5 计算

为 DIBS 执行 mds 操作的 PHP 代码

$parameter_string= '';
$parameter_string.= 'merchant='. $yourMerchantID;
$parameter_string.= '&orderid='. $yourOrderID;
$parameter_string.= '&currency='. $yourCurrency;
$parameter_string.= '&amount='. $yourAmount;
$md5key= MD5($key2. MD5($key1. $parameter_string) );

这里是 HTML 代码

 < form id="payment-form" 
   action="https://payment.architrade.com/paymentweb/start.action" 
   method="post" name="payform" onsubmit="return onPaymentFormSubmit();">

 < input name="lang" type="hidden" value="en" />

 < input name="currency" type="hidden" value="123" />

 < input name="merchant" type="hidden" value="123456" />

 < input type="hidden" name="md5key" value=""> 

 < input id="amount-text" name="amount-text" type="text" value="" />

 < input id="amount" name="amount" type="hidden" />

 < input name="orderid" type="text" value="" />

 < input name="accepturl" type="hidden" value="http://www.example.com/payment-accepted/"/>

 < input type="submit" value="Pay" />
4

0 回答 0