How to subscribe to multiple recurring payment plans with PayPal? - paypal

For instance there are 100 houses and I want to set the same subscribed rent plan of $50 for all houses at once.

PayPal Subscriptions allows you to create a plan with quantity_supported: true. See the Plans API reference here: https://developer.paypal.com/docs/api/subscriptions/v1/#plans
Then when creating a Subscription with that Plan, pass 100 (for your example) as the quantity.

Related

PayPal Subscription API integration. When do I need to create a Product?

I have to manage the recurring payment for our online service, but there is an aspect not very clear to me.
From what I understand, to manage a subscription I need to:
Create the product
Create the subscription plan
Create the subscription
I have done some tests and everything works correctly.
What I don't understand is whether the product and the respective subscription plan need to be created for each transaction or if I first need to create a product list with their associated subscription plans and always use the same items when creating the subscription.
You need to create the product and subscription plan for the first time. If any person has subscribed to your product, the money will be automatically deducted at the onset of the next billing cycle. It will use the same product and plan for which the person has subscribed for.
For more detail, you can go through https://medium.com/analytics-vidhya/paypal-subscription-in-react-1121c39b26be.
Create new Products and Plans when you have new Products, or are offering new or additional Plans.
Otherwise, use existing items for new Subscriptions.

PayPal Recurring Payments - Are Billing Plans meant to have multiple Billing Agreements?

Let's say I have a service where a user can subscribe for:
$10/Month
$25/Month
$50/Year
Am I correct that to set this up properly with PayPal's API, I should:
Create three Billing Plans - one Billing Plan for each payment tier
Activate each Billing Plan
When a customer subscribes, they create a Billing Agreement under one of the preexisting Billing Plans and go through the authorization process? Thus, multiple customers would have agreements under say the $10/Month Billing Plan?
I'm further confused because, astonishingly, there is no way to use the API to list all of the Agreements: https://github.com/paypal/PayPal-REST-API-issues/issues/5
When a customer subscribes, they create a Billing Agreement under one of the preexisting Billing Plans and go through the authorization process? Thus, multiple customers would have agreements under say the $10/Month Billing Plan?
Yeah, that's right.
Because there is no API to list all of the agreements, so you could create a billing plan every time a customer subscribes. Then you would be able to list all of the billing plans you created.
GET /v1/payments/billing-plans
https://developer.paypal.com/docs/api/payments.billing-plans/v1/#billing-plans_list

Regular payment in Paypal using billing plans

I would like to ask you about regular payment in paypal using billing plans. I use the PHP library from paypal (REST API) to create billing plans and agreement for users but I have some problems:
I have two plans: STANDARD and PRO. What when the user buys a standard plan and after some time will be want to switch to another? What with the old subscription? I don't see the option to cancel subscription via REST API. Should I create a personal billing plan for every user and in this case update this changes?
My plans include some additional parameters like: ,,How many people can use one account" - and this parameter influences on the final price. I don't know what I should do to get regular payments with flexible parameters.
Should I create a billing plan for every user and then create an agreement for this personal billing plan? What if user paid for 12 months and after 9 months will want to change some parameters - then I should upgrade price in the billing price (for stability in the next billing cycle) and to get this difference in plan costs I should create the normal payment by http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/CreatePaymentUsingPayPal.html?
Cheers!

How do we create and release hold manually in paypal?

I'm new to paypal i had used balanced payments in past.
consider the following scenario
I'm running a business of renting vehicles when a customer registers
to rent i have to deduct the rent amount(no of days * rent amount per day) from his account and have a
hold for the deposit amount of the vehicle which will be returned to
customer when he returns vehicle
i went through paypal documentation but could not find how to create this hold manually
I'm looking for something equivalent to CREATE HOLD and RELEASE HOLD of balanced in PAYPAL
I believe the most appropriate mechanism in PayPal for the functionality you describe is authorization/capture.
You can let user authorize payment using PayPal Express Checkout API for the deposit amount and for the rent eamount. When customer returns the vehicle, you can capture the payment using DoCapture API call.
This model also supports multiple captures for the same authorization. Using that feature you can, for example, capture rent payments daily.

PayPal Subscription IPN and other

I am wondering is this even possible or is there a simple way to do this. I am building a file-sharing site like Droplr or CloudApp and by fun chance unlike those two sites I do not offer fixed pricing, instead I offer pay-per-use billing on the amount of storage the customer uses up. But there is a small yearly fee for plans.
So lets say customer selects Tier 1 - Basic Plan. The plan allows for 5GB max file size, $5/yr fee and $1.00/gb
How would I go about charging the customer for this? Sure the first $5/yr can processed fairly easy and added to PayPal subscription and recurring payments, but should there be 2nd subscription for the storage?
I would recommend taking a look at the Adaptive Payments API, specifically Preapproval and Pay.
That will allow people to setup preapproved payments with you based on criteria set when the profile is created. Then you can charge them at any time with variable amounts as long as they fall within the profile's criteria.
Another option would be to utilize Reference Transactions (DoReferenceTransaction) after running an original Auth or Sale through Express Checkout or Payments Pro.