Subscriptions: Set "quantities" in a Billing Agreement?

CornerCosmos
New Community Member

Hello,

I am currently using the Subscriptions API to create a Billing Plan and Billing Agreements.

 

Question: Is there anyway to set the amount of quantities chose by the customer and set it in the Billing Agreement so that PayPal would calculate the total price by itself? The formula would be like this: total price = price in Billing Plan * quantity set in Billing Agreement.

 

For my products, a user can subscribe to the product and they can choose the amount of licenses for the product. However, using PayPal's Billing Plan and Billing Agreement API, I have not found a way to set the price in Billing Plan and then set the amount of quantity through Billing Agreement. The only other way that I found is to create a Billing Plan every time a customer makes a purchase and set the `price = product price * quantity` in the Plan itself.

 

The problem with this method is when we decide to change the price, we would have to patch every single Billing Plan that has been made with the new price calculation (price = new product price * quantity). It's very impractical to do like this.

 

So, what we want to do now is to create a Billing Plan when setting up a product and only create a Billing Agreement when a customer makes the purchase. However, I have not found a way to set something like "quantity" in the Billing Agreement.

 

Does anyone know how to do this? Thank you!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.