【问题标题】:Unable to redirect merchant site after successful payment支付成功后无法重定向商家网站
【发布时间】:2012-11-19 02:40:31
【问题描述】:

即使我在网站支付首选项下的沙盒中打开重定向网址,我也无法在支付成功后重定向商家网站。

请提供一个解决方案,以在付款成功后使用 Paypal 沙盒重定向到商家网站。我已经打开了重定向 url 选项,但我仍在继续“加载...”过程。

【问题讨论】:

  • 看不到你的代码就忍不住了,老兄。

标签: php paypal paypal-sandbox


【解决方案1】:

我假设您想要一个 PHP 答案,因为您将它发布在 PHP 标记下。 试试:

<?php
//http://www.php.net/manual/en/function.header.php
header("Location: http://www.example.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>

唯一的问题是在 header() 函数之前不能有任何打印输出(echo、print_r 或任何 html 输出)。否则它将无法正常工作。 如果您已经有一些东西但仍想重定向,请检查使用 javascript 的重定向。

【讨论】:

猜你喜欢
  • 2013-10-16
  • 2019-05-30
  • 1970-01-01
  • 1970-01-01
  • 2019-06-04
  • 2010-11-20
  • 2013-03-07
  • 2015-10-14
  • 1970-01-01
相关资源
最近更新 更多