如何实现每季度订阅PayPal按钮 [英] How to implement a quarterly subscription PayPal button

查看:335
本文介绍了如何实现每季度订阅PayPal按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要做的是对我的网站贝宝预订按钮,与一季报rebilling选项。

What I want to do is to have a PayPal subscription button on my website, with a quarterly rebilling option.

我知道有一种方法与非托管按钮code要做到这一点,但我想知道是否有任何的方式来实现这个使用贝宝托管预订按钮(安全性)。我想,以避免不必使用unhosted按钮code加密和所有引起该脚本的工作。

I know there is a way to do this with non-hosted button code, but I am wondering if there is any way to implement this using PayPal hosted subscription buttons (for security). I'd like to avoid having to use an unhosted button code with encryption and all the script work that entails.

推荐答案

贝宝拥有的高级的集成一些额外的隐藏字段自定义计费周期和频率。预订按钮

Paypal has an Advanced Subscription Button that integrates a few additional hidden fields to customize the billing period and frequency.

样品code

<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="1">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="50.00">
<input type="hidden" name="p3" value="3">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</form>

以上code将创建$ 50.00每3个月(每季度)一个定期付款。以下字段会影响开票金额,时间和频率。

The above code will create a recurring payment of $50.00 every 3 months (quarterly). The following fields affect the billing amount, period and frequency.


  • A3 - 量计费每个复发

  • P3 - 每次复发之间的时间周期数

  • T3 - 一段时间(的 D =日,W =周,M =月,Y =年的)

  • a3 - amount to billed each recurrence
  • p3 - number of time periods between each recurrence
  • t3 - time period (D=days, W=weeks, M=months, Y=years)

这篇关于如何实现每季度订阅PayPal按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆