简体   繁体   中英

Paypal Recurring Payments

Here is what I need:

Let's say I have a hotel rooms rental website

People can come rent a room for some period and pay with paypal(first they pay, than thay get a room)

In some cases person might want to use some services when they are staying in hotel (like room service, mini bar, etc.) - So after person leaves I need to charge them with that extras..

How it works in paypal ? the only thing I found is subscribe options - but they are like per-month, per-day subscriptions.. And I need manually charge some amount from customer from my site

Does it possible ?

The standard way of doing that is to pre-authorize a charge for $200-$500 without completing the transaction. After person leaves you add up everything and finalize the transaction with the right amount. You can do that using PayPal API if you have Website Payments Pro ($30/month). Check "Authorization Payment Action" on page 93 in WPP Integration Guide:

https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_WPP_IntegrationGuide.pdf

Why don't you total up all amounts for all selected services and then pass that total amount to paypal.

Another option is to send a 'cart-overview' with multiple items to paypal. This way you can seperate the rental price from the extra options prices (like breakfast, full pension, etc). Some info about setting up a multiple-items cart can be found here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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