[英]Error Code: 21002 currency: Required parameter missing (CCAvenue) using codeigniter
I have installed the plugin and set it up successfully, but when I tried to pay with this, it's showing error:我已经安装了插件并成功设置了它,但是当我尝试用它付款时,它显示错误:
"Error Code: 21002 Invalid Currency Parameter."
“错误代码:21002 无效的货币参数。”
After code review I came to know that query string, the currency
parameter getting changed to " ¤cy=INR
" as " ¤
" is getting executed as html special character.在代码审查之后,我开始知道查询字符串,
currency
参数被更改为“ ¤cy=INR
”,因为“ ¤
”正在作为 html 特殊字符执行。
This is query getting...这是查询得到...
merchant_id=123456789&order_id=xxxxxxxx&amount=1.00¤cy=INR&language=EN&billing_name=gfgh ghfhgfgh&billing_address=abc&billing_city=abc
Merchant_id=123456789&order_id=xxxxxxxx&amount=1.00¤cy=INR&language=EN&billing_name=gfgh ghfhgfgh&billing_address=abc&billing_city=abc
As per the html entities, ¤根据 html 实体, ¤ belongs to ¤, when you use ¤cy in the URL, it automatically gets converted to ¤cy.
属于 ¤,当您在 URL 中使用 ¤cy 时,它会自动转换为 ¤cy。 Even last semicolon (;) is not there in the ¤, it still creates ¤ html entity.
即使最后一个分号 (;) 不在 ¤ 中,它仍然会创建 ¤ html 实体。 Solution to this problem is
这个问题的解决方法是
urlencode(merchant_id=123456789&order_id=xxxxxxxx&amount=1.00¤cy=INR&language=EN&billing_name=gfghghfhgfgh&billing_address=abc&billing_city=abc)
orurlencode(merchant_id=123456789&order_id=xxxxxxxx&amount=1.00¤cy=INR&language=EN&billing_name=gfghghfhgfgh&billing_address=abc&billing_city=abc)
要么amount=1.00&currency=INR
amount=1.00&currency=INR
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.