$post_url = "https://sandbox.jazzcash.com.pk/ApplicationAPI/API/Purchase/PAY";; <p>我的吞吐量如下:</p>
$data_array = array( “pp_IsRegisteredCustomer”=> “是”, “pp_ShouldTokenizeCardNumber”=> “是”, “pp_CustomerID”=> “25352”, “pp_CustomerEmail”=> “abc@abc.com”, “pp_CustomerMobile”=> “03331234567”, “pp_Version”=> “2.0”, “pp_TxnType”=> “支付”, “pp_TxnRefNo”=> "T".date('YmdHisu'), “pp_MerchantID”=> “我的商家ID”, “pp_Password”=> “我的密碼”, “pp_Amount”=> “20000”, “pp_TxnCurrency”=> “PKR”, “pp_TxnDateTime”=>日期('YmdHis'), “pp_TxnExpiryDateTime”=> date('YmdHis',strtotime("1 小時")), “pp_BillReference”=> “帳單參考”, “pp_描述”=> “交易描述”, “pp_CustomerCardNumber”=> “512345000000008”, “pp_CustomerCardCVV”=> “100”, “pp_CustomerCardExpiry”=> “01/39”, “pp_SecureHash”=> ””, “pp_DiscountedAmount”=> ””, “pp_DiscountBank”=> ””, “pp_UsageMode”=> “API” );</前> <p>當我運行curl時,我得到以下輸出:</p>{"responseCode":"110","responseMessage":"請為 pp_ Txn Ref No. 提供有效值"," “status”:null ,「pp_RetreivalReferenceNo」:null,「secureHash」:「9DE9F8E571F29CBD1316DFB2F0388E3FBE1CA9BC26FB9C284DF900DCCBA0C301」}<p>接下來我可以嘗試什麼?</p>
P粉0601123962023-09-03 18:00:08
可能是因為pp_TxnDateTime和pp_TxnRefNo的日期格式改變了
在您的陣列中,"pp_TxnRefNo"=> "T".date('YmdHisu')
和 "pp_TxnDateTime"=> date('YmdHis')
#確保格式相同,因此,請更改以下內容:
"pp_TxnRefNo"=> "T".date('YmdHisu')
進入 "pp_TxnRefNo"=> "T".date('YmdHis')
希望它能起作用。