PayPal Sandbox托管订阅按钮(英国)

时间:2014-09-26 15:56:01

标签: paypal

PayPal沙箱中的非托管订阅按钮具有3,p3和t3隐藏字段。 LIVE托管按钮没有这些隐藏字段。我想创建一个Sandbox版本的LIVE托管订阅按钮,以便我可以在上线前测试托管订阅按钮。

因此我想要一个沙盒版本:

<form action="http://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="xxxxxxxxxxx">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

而不是:

<form action="http://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="xxx@xxx.com">
<input type="hidden" name="lc" value="GB">
    <input type="hidden" name="item_name" value="xxxxxxxxxx">
<input type="hidden" name="currency_code" value="GBP">
        <!-- Set the terms of the regular subscription. -->
    <input type="hidden" name="a3" value="19.95">
    <input type="hidden" name="p3" value="1">
    <input type="hidden" name="t3" value="Y">
    <!-- Set recurring payments until canceled. -->
    <input type="hidden" name="src" value="1">
    <!-- PayPal reattempts failed recurring payments. -->
    <input type="hidden" name="sra" value="1">
    <input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="notify_url" value="https://genial-diagram-711.appspot.com/guestbook" >
<input type="hidden" name="no_note" value="0">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/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.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>

1 个答案:

答案 0 :(得分:0)

与非托管按钮相比,托管按钮不会显示按钮详细信息。您将只拥有存储在PayPal服务器上的按钮ID,并包含所有信息,如a3,p3,t3。如果您正在寻找测试环境的托管按钮,那么您需要登录到您的沙箱帐户并从那里创建按钮。

您可以按照以下步骤创建&#34; _s-click&#34;从您的PayPal帐户输入按钮:

步骤1:

enter image description here

第2步:

enter image description here

第3步:

enter image description here

相关问题