我正在使用带有 amember-5.1.5 的 realexpayment 并使用 realexpayment 系统的测试帐户。
当我使用测试卡注册并付款时,我收到以下消息并且它不会重定向回我们的网站:
Your transaction has been successful but there was a problem connecting back to the merchant's web site. Please contact the merchant and advise them that you received this error message.
最佳答案
我最近遇到了这个问题,想澄清一下。 Realex 不会重定向到 MERCHANT_RESPONSE_URL
而是显示其内容。
它似乎接受基本的 HTML 响应,但不接受完整的 HTML 文档。
我所做的是在MERCHANT_RESPONSE_URL
上输出一小段JavaScript将客户重定向到包含我们的品牌和成功(或错误)消息的不同 URL 的页面:
<script>
window.location=https://example.com/success?msg=<?php echo urlencode( $msg ); ?>
</script>
关于payment-gateway - realexpayment-支付成功后收到错误信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40145829/