我正在做 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>
我已经尝试了很多网站上的很多虚拟信用卡号码。但没有一个对我有用。 我每次都会收到此错误或更多错误,例如
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/