Plan unit price. Can not set 1600 usd

Hello there. I'm using your service and your api. I'm using create subscription for customer function(python ver.)

I'm trying to change default plan price using this attribute and it gives me an error - wrong format. 

I recieve a number from my site - for example 1600, it's not in cents, so i must make *100.

so finally it looks like :
How can i fix it? or there is limit for it?

subscription = chargebee.Subscription.create_for_customer(customer_id, {
"plan_id": plan_id,
"plan_unit_price": price * 100,

Hi there

Can you check the datatype of 'price' at your end? We tried using the same script and it worked for us.



which type it must be?

I'm discussing this with my Engineers and I'll update you tomorrow.

Can you try passing it like this "plan_unit_price": int(price) * 100,

ohh. Now it's good. Thank you for your reply. 

Login or Signup to post a comment