php - Paypal 沙盒测试不起作用

标签 php mysql paypal

我正在做 Paypal 沙盒测试,但我做不到。 我使用的是虚拟信用卡号码,但每次都会出错。 我附上了错误的图片。

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="frmPayPal1">
    <input type="hidden" name="business" value="abc-facilitator@ratufa.com">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="item_name" value="PHPGang Payment">
    <input type="hidden" name="item_number" value="1">
    <input type="hidden" name="credits" value="510">
    <input type="hidden" name="userid" value="1">
    <input type="hidden" name="amount" value="10">
    <input type="hidden" name="cpp_header_image" value="http://www.phpgang.com/wp-content/uploads/gang.jpg">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="handling" value="0">
    <input type="hidden" name="cancel_return" value="http://localhost/paypal/cancel.php">
    <input type="hidden" name="return" value="http://localhost/paypal/success.php">
    <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form> 

enter image description here

enter image description here 我已经尝试了很多网站上的很多虚拟信用卡号码。但没有一个对我有用。 我每次都会收到此错误或更多错误,例如

this credit card is linked with some other email address.

我也更改了电子邮件地址。 我正在使用像 abc-facilitator@gmail.com 这样的 Paypal 企业帐户

最佳答案

您需要使用标准的 PayPal 支付按钮而不是沙盒测试订阅。这将向您展示插件的工作原理。

关于php - Paypal 沙盒测试不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33141358/

相关文章:

java - 试图从带有 JSON 的 PHP 返回数据到 Android.....

javascript内联如果变量赋值像php

php - 向客户销售网站时如何保护我的 PHP 源代码?

MySQL查询返回多个求和列

mysql - 打印两个表的数据

php - 图片上传 PHP

PayPal退款交易授权问题

php - GAE - 如何从 php 获取谷歌云存储对象的上次修改/重命名日期时间

php - 如何使用 php 自动取消订阅用户的 paypal(当他们升级到不同的订阅时)

php - Paypal 订阅 : cost not shown at checkout?