PayPal _xclick-subscriptions无法使用沙箱

问题描述 投票:0回答:1

我尝试使用沙盒订阅实施和测试PayPal付款,但每次都会给“事情看起来没有工作。请稍后再试。”

我已经根据以下参考资料加密了网站付款:PayPal Error: We’re sorry things don’t appear to be working at the moment. please try again later

https://www.sandbox.paypal.com/cgi-bin/[email protected]&cmd=_xclick-subscriptions&no_shipping=1&amount=1.0&p3=1.0&t3=Y&src=1&custom=23@@@153&no_note=1&item_name=My+item+subscription&currency_code=USD&rm=2&address_override=1&first_name=rose&last_name=roja&address1=NY&address2=NY&city=New York&state=NY&zip=10001&country=US&return=http://new.xxxx.localhost/index.php?path=thankyou&cancel=http://new.xxx.localhost/index.php?path=signup&notify_url=http://new.xxx.localhost/index.php?path=ipn

这是我的表格:

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick-subscriptions">
    <input type="hidden" name="business" value="[email protected]">
    <input type="hidden" name="item_name" value="Prod 1 Subscription">
    <input type="hidden" name="item_number" value="1">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="a3" value="1">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="t3" value="Y">
    <input type="hidden" name="src" value="1">

    <input type="hidden" name="custom" value="26@@@156">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="rm" value="2">

    <!-- Enable override of buyers's address stored with PayPal . -->
    <input type="hidden" name="address_override" value="1">
    <!-- Set variables that override the address stored with PayPal. -->
    <input type="hidden" name="first_name" value="Rose">
    <input type="hidden" name="last_name" value="Roja">
    <input type="hidden" name="address1" value="aa">
    <input type="hidden" name="address2" value="">
    <input type="hidden" name="city" value="cc">
    <input type="hidden" name="state" value="New York">
    <input type="hidden" name="zip" value="10001">
    <input type="hidden" name="country" value="US">
    <input type="hidden" name="return" value="http://new.xxx.localhost/index.php?path=thankyou">
    <input type="hidden" name="cancel" value="http://new.xxx.localhost/index.php?path=signup">
    <input type="hidden" name="notify_url" value="http://new.xxx.localhost/index.php?path=ipn">
    <input type="image" name="submit" id="paypal-btn" border="0" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online">
</form>

请帮忙

php paypal paypal-sandbox paypal-subscriptions
1个回答
0
投票

这是因为传递的送货地址不正确。替换以下样品运输参数

<input type="hidden" name="city" value="Philadelphia">
<input type="hidden" name="state" value="PA">
<input type="hidden" name="zip" value="19108">
<input type="hidden" name="country" value="US">
© www.soinside.com 2019 - 2024. All rights reserved.