Paypal沙箱帐户显示“此付款尝试已处理”错误

时间:2013-09-13 11:33:11

标签: php paypal

我一直在使用PayPal沙盒帐户来测试我的电子商务网站的结帐程序。它一直在完善至今。出于某种原因,每次我尝试交易并且页面被重定向到沙盒帐户时,一旦我点击立即付款,我会收到消息“此付款尝试已被处理”。一旦发生这种情况,PayPal(显然)不会将我重定向回我的网站!自昨天以来PayPal网站上发生了哪些变化?我正在使用PayPal的简单Checkout按钮。我还注意到Sandbox帐户主页已更改,现在找到相应帐户设置的位置有点困难。所以我的问题主要是要弄清楚是否有其他人有同样的问题可以解释这一点。谢谢!

这是将购物车项目发送到PayPal的表单 - 过去几个月一直没有问题:

<form target="_self" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">

<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="xxx-seller@gmail.com">
<input type="hidden" name="currency_code" value="USD">

<?php       
$customerCart = array();                        
$customerid = $_SESSION['customerid'];
$customerCart = getCartArray($customerid);
$idx_row = 1;

foreach ($customerCart as $elems1) {

?>

<!-- we start from idx=1 as Paypal requests -->
<input type="hidden" name="item_name_<?php echo $idx_row?>" value="<?php echo $elems1['Item_name']; ?>">
<input type="hidden" name="quantity_<?php echo $idx_row?>" value="<?php echo $elems1['Quantity']; ?>">
<input type="hidden" name="amount_<?php echo $idx_row?>" value="<?php echo $elems1['Price']; ?>">

<?php

$idx_row++;

}
?>

<br><strong>Checkout & Pay:</strong>&nbsp&nbsp&nbsp
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<br>

</form>

1 个答案:

答案 0 :(得分:0)

今天早上我遇到了同样的问题,然后注意到了实时付款的一些问题。尽管如此,一切似乎对我来说都很好。我确实清除了所有的缓存和cookie。这可能有所帮助,但我怀疑这是PayPal问题。