PayFast URL必须有效

时间:2018-12-12 11:27:43

标签: asp.net-mvc

我正在尝试将PayFast实施到我的ASP.NET MVC网站中。在沙盒环境中进行测试期间。一切工作正常,我能够根据买家的操作将买家重定向到返回URL或取消URL。

使用实时PayFast网址后,我收到一条错误消息,提示我的返回,取消和通知URL必须有效。我的网址错了吗?还是我想念的东西?

这些是我在沙盒和实时环境中使用的URL:

<!-- Used in sandbox environment-->
<add key="ProcessUrl" value="https://sandbox.payfast.co.za/eng/process?" />
<add key="ValidateUrl" value="https://sandbox.payfast.co.za/eng/query/validate" />
<!-- Used in live environment-->
<add key="ProcessUrl" value="https://payfast.co.za/eng/process?" />
<add key="ValidateUrl" value="https://payfast.co.za/eng/query/validate" />
<!--Return, Cancel and Notify URLS-->
<add key="ReturnUrl" value="http://www.xxx.co.za/return" />
<add key="CancelUrl" value="http://www.xxx.co.za//cancel" />
<add key="NotifyUrl" value="http://www.xxx.co.za/notify" />

任何帮助将不胜感激。 预先感谢

1 个答案:

答案 0 :(得分:1)

您的实时PayFast付款页面的URL错误。根据{{​​3}},实时交易URL为: https://www.payfast.co.za/eng/process,请注意www

PayFast将执行来自以下位置的301重定向:

https://payfast.co.za/eng/process?

收件人:

https://www.payfast.co.za/eng/process

发生这种重定向时,发布的值将丢失,然后PayFast付款页面将引发错误。

相关问题