尝试从电话间隙生成混合.apk。并使用PHP语言生成paytm“校验和”。
在服务器端PHP页面:
// Create an array having all required parameters for creating checksum.
$paramList["ENVIRONMENT"] = "staging";
$paramList["MID"] = PAYTM_MERCHANT_MID;
$paramList["ORDER_ID"] = $ORDER_ID;
$paramList["CUST_ID"] = $CUST_ID;
$paramList["INDUSTRY_TYPE_ID"] = $INDUSTRY_TYPE_ID;
$paramList["CHANNEL_ID"] = $CHANNEL_ID;
$paramList["TXN_AMOUNT"] = $TXN_AMOUNT;
$paramList["WEBSITE"] = "APPSTAGING";
//Here checksum string will return by getChecksumFromArray() function.
$checkSum = getChecksumFromArray($paramList,PAYTM_MERCHANT_KEY);
获得校验和值后; checkSum用于交易。
var options = {
ENVIRONMENT: "staging",
MID: "XXXXXXXXXXXXX",
ORDER_ID: "ORDER0000000001",
CUST_ID: "10000988111",
INDUSTRY_TYPE_ID: "Retail",
CHANNEL_ID: "WAP",
TXN_AMOUNT: "1.50",
WEBSITE: "APPSTAGING",
CALLBACK_URL: "https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID=ORDER0000000001",
CHECKSUMHASH: checkSum // php code generated checksum.
};
paytm.startPayment(options, app.successCallPayTm, app.failureCallPayTm);
为同一应用创建应用时;它始终显示“错误代码:330; PayTm校验和不匹配”的问题。
请任何人指导。