payment-gateway - realexpayment-支付成功后收到错误信息

标签 payment-gateway payment realex-payments-api amember

我正在使用带有 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/

相关文章:

wordpress - 当用户选择 Paypal 付款方式时,在结帐表单中禁用 WooCommerce 中的账单地址

c# - 在 Realex 支付中创建哈希

java - IPG Payment Gateway.javax.net.ssl.SSLHandshakeException : sun. security.validator.ValidatorException:找不到可信证书

php - 在网站上接受付款

iphone - 应用内以外的 iOS 支付网关

ruby-on-rails - 将 Stripe 与 Devise 结合使用?

php - 使用 PayPal 的多商户支付系统

ruby-on-rails - rails : Using Eval to call another action

javascript - onclick 验证不会停止 POST 到 MVC Controller

php - 如何从 woocommerce 自定义支付网关中的 process_payment 函数进行 POST 重定向?