【问题标题】:Payfort Error code: 00002 Invalid parameter formatPayfort 错误代码:00002 参数格式无效
【发布时间】:2018-05-31 00:40:44
【问题描述】:

我正在尝试将 payfort 作为支付网关添加到网站的新部分。相同的代码在另一部分中正常工作。我总是得到“错误代码:00002 无效的参数格式”

<form method="post" action="https://checkout.payfort.com/FortAPI/paymentPage" class="pay_form" name="form1">
<input type="hidden" name="access_code" value="access_code">
<input type="hidden" name="amount" value="1000.00">
<input type="hidden" name="command" value="PURCHASE">
<input type="hidden" name="currency" value="USD">
<input type="hidden" name="customer_email" value="user@mail.com">
<input type="hidden" name="customer_name" value="customer name">
<input type="hidden" name="language" value="en">
<input type="hidden" name="merchant_identifier" value="identifier_code">
<input type="hidden" name="merchant_reference" value="order_id">
<input type="hidden" name="return_url" value="my_return_url">
<input type="hidden" name="signature" value="form_signature">
</form>

我将此表单与其他部分中的另一个表单进行了比较,它们彼此相似,但订单 ID、返回 url 和金额不同,但第一个表单可以正常工作。有什么想法吗?

【问题讨论】:

  • 陷入同样的​​问题

标签: forms payfort


【解决方案1】:

这是因为 payfort 只接受整数作为金额。您需要将实际金额乘以 100,然后在向 payfort 发送请求之前确保其整数。

【讨论】:

    猜你喜欢
    • 2020-06-26
    • 1970-01-01
    • 2021-01-30
    • 2018-12-31
    • 2018-03-30
    • 1970-01-01
    • 1970-01-01
    • 2022-12-12
    • 1970-01-01
    相关资源
    最近更新 更多