简体   繁体   English

贝宝订阅API

[英]PayPal Subscription API

I want to setup a subscription based payment system via PayPal. 我想通过PayPal设置基于订阅的支付系统。 I currently am using PayPal's api for a few of my items and an IPN listener. 我目前正在使用PayPal的api来处理我的一些项目和IPN侦听器。 The code is as provided: 提供的代码如下:

<form name="_xclick" action="https://www.paypal.com/us/cgi-bin/webscr" class="form-horizontal" method="post" id="paypalformhidden">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sales@example.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" id="ppname" name="item_name" value='Large Brwon Teddy Bear' />
<input type="hidden" name="item_name1" value='Ted' />
<input type="hidden" name="notify_url" value="example.com/listener.php">
<input type="hidden" name="return" value="example.com"/>
<input type="hidden" id="ppamount" name="amount" value='39.00'>

I thought the subscription is as easy as this, but it seems unfriendly. 我认为订阅是如此简单,但是似乎并不友好。 I'd love some input! 我希望有一些输入!

The _xclick command is for "Buy Now" buttons. _xclick命令用于“立即购买”按钮。 There's a different command value for Subscription buttons. 订阅按钮有一个不同的命令值。 You can read more about setting up a Subscribe button here on PayPal's developer site: https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/subscribe_buttons/#id08ADF1008HS 您可以在PayPal的开发人员网站上了解有关设置“订阅”按钮的更多信息: https : //developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/subscribe_buttons/#id08ADF1008HS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM