【问题标题】:Error Code: 21002 currency: Required parameter missing (CCAvenue) using codeigniter错误代码:21002 货币:使用 codeigniter 缺少必需参数(CCAvenue)
【发布时间】:2017-01-29 07:41:08
【问题描述】:

我已经安装插件并设置成功,但是当我尝试用这个付款时,它显示错误:

“错误代码: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

【问题讨论】:

  • 您好,我也遇到了同样的问题。如果这个问题已经解决,请告诉我。

标签: php codeigniter ccavenue


【解决方案1】:

根据 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

【讨论】:

  • 如果我使用 urlencode 而不是错误编码。并使用 &然后显示相同的错误。
  • 找到解决方案!保持请求和取消重定向 URL 相同。如果您的重定向网址与 ccavRequest 相同,则它再次重定向到具有 ¤cy=INR html 内容的同一页面。
猜你喜欢
  • 2022-01-01
  • 2021-05-09
  • 1970-01-01
  • 1970-01-01
  • 2018-04-04
  • 2021-05-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多