#preetham23

1 messages · Page 1 of 1 (latest)

late mothBOT
urban torrent
#

pls suggest

pine sky
#

I don't understand. What are you asking?

urban torrent
#

can i give an example pls

#

Currently i am creating a SubscriptionSchedule to bill the cusotmer in USA. The bill has two parts. one is product X which is 499$ and other is employee salary which is Y: 10000 INR ( curernt value: 121.76 USD). normally while setting up the schedule i am taking price of X and price of Y today and creating a subscription. but the problem comes if conversion rate changes. becoz at end of month. i need to again convert 10000INR to USD and bill the customer. But stripe is not allowing me to do it. How can i handle this usecase.???

pine sky
#

You would need to look up the conversion rate on your end at the time of charge. Currency conversion rates change sometimes by the minute, so they cannot be relied on ahead of time.

urban torrent
#

we have an api for conversion rate, but how can i update the subscription amount. is there is. a way to do that via api ?. so i can covert 10000inr on that day and update the subscription amount

#

how can i handle this ??

pine sky
#

If I understand your integration correctly, it sounds like you would want to update your Subscription Schedule, such that the phase that has the 10000 INR amount gets new Price data: https://stripe.com/docs/api/subscription_schedules/update#update_subscription_schedule-phases-items-price_data

urban torrent
#

yes @pine sky . so the employee amount stays same INR and if the converted rate changes, i will update the amount in USD.