php - 如何在 php 中设置第一个月不同初始金额的 paypal 标准定期付款?

标签 php paypal payment-gateway paypal-subscriptions

我找到了使用 Paypal 标准创建定期付款配置文件的代码,但我想在第一个月向用户收取不同金额的费用,然后想从下个月开始创建不同金额的定期付款配置文件。这可能吗?我搜索了很多但无法得到想要的结果。请指导我。

这是我现在的代码:

<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/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="a3" value="5.00">
<input type="hidden" name="p3" value="1">
<input type="hidden" name="t3" value="M">
<input type="hidden" name="src" value="1">
<input type="hidden" name="sra" value="1">
</form>

如有任何帮助,我们将不胜感激。

谢谢 掠夺者

最佳答案

您需要做的就是使用 a1, p1, t1 以及您已经在使用的变量。以下将收取第一个月的 5.00。

<input type="hidden" name="a1" value="5.00">
<input type="hidden" name="p1" value="1">
<input type="hidden" name="t1" value="M">

关于php - 如何在 php 中设置第一个月不同初始金额的 paypal 标准定期付款?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16789778/

相关文章:

payment-gateway - 支付整合

android - 在 Android 中集成 Dibs 支付网关

php - 通过代理服务器的 SSL 连接

javascript - 将变量保留在 while 循环的最后一次迭代中

php - ajax 形式处理数组

rest - PayPal 使用 REST API 从商家向用户汇款

paypal - 如何检查 Paypal Express Checkout 的付款失败

payment-gateway - 信用卡交易中批处理的意义是什么

PHP true & 'true' 区别

jquery - bootstrap contact_me 从另一个按钮提交