我一直在对我组织的捐款页面进行一些测试(https://www.livingmiraclescenter.org/donations.html)。目前为我们提供付款选项的服务是First Data;这家公司正在改变他们的工作方式,为了让我们继续使用它,我们需要彻底检查我们网站上的捐款页面。因此,我们正在研究多功能和可定制的PayPal按钮的用途。如果您检查链接,您会看到我们通过First Data的当前选项是多方面的。在一个简单的交易中,人们可以选择预设金额捐赠,选择他们自己的金额,并选择他们选择的捐赠金额的经常性付款选项或选择不使用该选项。因此,在一种付款方式中,我们可以提供一次性捐款以及经常性捐款。
我想知道PayPal按钮是否有任何方式可以提供相同的多功能性。我们一直在考虑完全切换到PayPal并取消First Data,但是让我们退缩的一件事就是在制作PayPal按钮时提供的小定制。
我使用不同的付款按钮代码,但是每次实际尝试时都会收到错误消息(“无效的常规时段。您必须为订阅指定A3,P3和T3参数的有效值”)网站上新创建的按钮。我用过的代码是:
<form action="https://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="SACSLVL35UTAS">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Donate to My Organization">
<input type="hidden" name="item_number" value="1234">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="src" value="1">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHosted">
<table>
<tr><td>When would you like this to Recur?</td></tr><tr><td><select name="t3">
<option value="D">Daily</option>
<option value="M">Monthly</option>
<option value="Y">Yearly</option>
</select> </td></tr>
<tr><td>How many times would you like this to recur? (including this payment)</td></tr><tr><td><select name="srt">
<option value="0">Never End</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select> </td></tr>
<tr><td>Enter Your Donation Amount</td></tr>
<tr><td><input type="text" name="a3" size="4" maxlength="60"></td></tr>
</table>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to
pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
和两个:
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<!-- <input type="hidden" name="redirect_cmd" value="_xclick-subscriptions"> -->
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Fund Donation">
<input type="hidden" name="item_number" value="WFD-1002">
<input type="hidden" name="no_note" value="1">
<!-- no_shipping value 2 needed to send the free gift -->
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<!-- -->
Enter the amount you would like to donate:
<!-- a3, Required, Regular Subscription Price -->
<input type="text" name="a3" size="4" maxlength="7">
<br><br>
<!-- src, Optional, Recurring Payments, 0 no recur, 1 payments recur -->
<input type="hidden" name="src" value="1">
<!-- -->
Select the length of the desired Billing Cycle:
<!-- p3, Required, Duration based on the value of t3 -->
<select name="p3">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="15">15</option>
<option value="30">30</option>
</select>
<br><br>
<!-- -->
Select how often you would like to Donate:
<!-- t3, Required, Subscription Units D W M Y, -->
<select name="t3">
<option value="D">Day(s)</option>
<option value="W">Week(s)</option>
<option value="M">Month(s)</option>
<option value="Y">Year(s)</option>
</select>
<br><br>
<!-- -->
Select the number of Donation Payments you would like to make:
<br><br>
<!-- srt, Optional, Recurring Times, must be used with src -->
<select name="srt">
<option value="">Until Canceled</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="6">6</option>
<option value="12">12</option>
<option value="18">18</option>
<option value="24">24</option>
<option value="36">36</option>
</select>
<!-- sra, Optional, Reattempt on failure 2 more time, value 0 or 1, if 0 no reattempt -->
<input type="hidden" name="sra" value="1">
<br><br><br>
Thank you for your Donation,
<br><br>
Please Select your Free Gift:
<input type="hidden" name="on0" value="Free Gift Choice">
<select name="os0">
<option value="Solar Calculator">Solar Calculator</option>
<option value="Key Chain Light">Key Chain Light</option>
</select>
<br><br><br>
<!-- -->
<input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_donateCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_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_US/i/scr/pixel.gif" width="1" height="1">
</form>
感谢您提供的任何见解,技术帮助和智慧。
谢谢, 尤塔