簡體   English   中英

錯誤代碼:21002 貨幣:使用 codeigniter 缺少必需的參數(CCAvenue)

[英]Error Code: 21002 currency: Required parameter missing (CCAvenue) using codeigniter

我已經安裝了插件並成功設置了它,但是當我嘗試用它付款時,它顯示錯誤:

“錯誤代碼:21002 無效的貨幣參數。”

在代碼審查之后,我開始知道查詢字符串, currency參數被更改為“ ¤cy=INR ”,因為“ ¤ ”正在作為 html 特殊字符執行。

這是查詢得到...

Merchant_id=123456789&order_id=xxxxxxxx&amount=1.00¤cy=INR&language=EN&billing_name=gfgh ghfhgfgh&billing_address=abc&billing_city=abc

根據 html 實體, ¤ 屬於 ¤,當您在 URL 中使用 &currency 時,它會自動轉換為 ¤cy。 即使最后一個分號 (;) 不在 &curren 中,它仍然會創建 ¤ html 實體。 這個問題的解決方法是

  1. 要么使用urlencode urlencode(merchant_id=123456789&order_id=xxxxxxxx&amount=1.00&currency=INR&language=EN&billing_name=gfghghfhgfgh&billing_address=abc&billing_city=abc)要么
  2. 將 html 實體用於 & 字符,如amount=1.00&currency=INR

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM