#Giriraj

1 messages · Page 1 of 1 (latest)

devout moonBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sand karma
#

hi, not sure what you mean, could you elaborate please?

left harbor
#

i have one product and i have set one time intead of recursive. so, how can i subscribe with that product?

#

i need to use for toppup. suppose someone enter the amount $100. it will subscribe with $100

#

and will manage that balance based on my requirement. if that balace is $0. then again will add balance around $50

#

Ui is like this

sand karma
#

hmm. Maybe don't use Stripe Subscriptions then and instead have all that logic in your own system.
You can charge an end-customer and add the amount to some database table in your system to indicate that customer has a certain balance, and then if they want to make a purchase in future, you can decrement your database table instead of calling Stripe again to process a payment, for example.
You can call the API to process payments on the saved card when needed.

https://stripe.com/docs/payments/save-during-payment

left harbor
#

hm correct. but can i go ahead using this?

#

right now i m calling above. but it's return me this error

sand karma
#

Like the error says, you can not use a non-recurring Price for a Subscription.

left harbor
#

recursive is mendatory?

sand karma
#

if the question is "are recurring Prices mandatory for creating a Subscription" the answer is yes.

left harbor
#

ok wait checking

#

can you show me how can i setup?

#

will pass customerID, priceId and price amont. how can i subscibe it?

sand karma
#

Not sure what you're asking. You can't subscribe to a one-time Price.

sand karma
left harbor
#

ok