我想通过 PayPal 设置一个基于订阅的支付系统。我目前正在将 PayPal 的 api 用于我的一些项目和一个 IPN 监听器。代码如下:
<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'>
本以为订阅就是这么简单,但似乎不太友好。我想要一些输入!
最佳答案
请检查这里是我用过的最好的例子:
https://github.com/thenbrent/paypal-digital-goods/blob/master/paypal-subscription.class.php
关于javascript - Paypal 订阅 API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36146095/