如何为不同的月份费用整合Paypal? [英] How to Integrate Paypal for month charges that varies?

查看:91
本文介绍了如何为不同的月份费用整合Paypal?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Paypal集成到我当前的服务站点中.我能够从数据库中生成详细信息,并检索用户的费用,以便用户费用将使用此Forumla:

I would like to integrate paypal into my current servicing site. I am able to generate the details from database, and retrieve the users' charges, such that a user charges would be using this forumla:

Amount payable = no. of hrs service used within the month x $5 per hr

  1. 我想根据用户每月使用情况以及从他们的信用卡中自动计费/扣除向用户收费.我应该根据自己的情况使用订阅或立即购买设置吗?

  1. I would like to charge users based on their usage on per month basis, and automatic billing/deduction from their credit cards. Should I be using a subscribe or buy now settings for my situation?

由于不同的用户将根据其使用量而收取不同的费用.我应该如何编程/编码,以便将指定用户的付款按钮设置为收取用户应付款的金额?

As different users will have different chargeable amount, based on their usage. How should I program/code it in such a way that the payment button for a specify user is set to charge the amount that user is payable for?

谢谢.

推荐答案

任何时候,您都无法使用Paypal等公司提供的开箱即用的解决方案,因为它们仅针对固定金额而设计.这意味着您需要在到期时管理付款.

Anytime there is a varying amount you can't use out-of-the-box solutions from companies like Paypal because they're only designed for fixed amounts. This means you'll need to manage the payments when they are due.

我不像Authorize.Net那样对Paypal熟悉,但是您似乎需要每个月生成新的Buy Now按钮并让用户以这种方式付款.由于时间段是固定的,并且只有数量是可变的但可以计算,因此此操作应该是简单且自动化的.进行cron作业,创建新的立即购买"按钮,并找到用户访问该页面的页面.然后,cron作业还可以向用户发送电子邮件,以使他们知道应付款项,并向他们提供该页面的链接.您可以使用Paypal IPN确认付款,甚至可以删除付款页面,以确保用户再也不会意外使用它.

I'm not as familiar with Paypal as I am Authorize.Net but it looks like you'll need to generate new buy now buttons each month and have the user make a payment that way. Doing this should be simple and automated since the time periods are fixed and only the amount is variable but it is calculable. Have a cron job create the new buy now button and the page the user to reach it. The cron job then can also send out an email to the user to let them know their payment is due and provide them with the link to that page. You can use the Paypal IPN to confirm payment and even delete the payment page to ensure the user never accidentally uses it again.

这篇关于如何为不同的月份费用整合Paypal?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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