#michael-fiil-charge-to-sub
1 messages · Page 1 of 1 (latest)
hey there, can you describe this some more, or provide an example of what you're trying to do?
i'm afraid i dont understand your goal here
Sorry i missed the code - hope you understand better now (Michael C# newbie)
can you explain in words what you're trying to achieve, and what's not clear or working like you expect?
OK it looks like this is a handler for accepting tokens to attach to customers, and you want to create a subscription
You will need to use the subscription API yes, its not something accomplished purely with the customer API
See our guide here: https://stripe.com/docs/billing/subscriptions/elements
Learn how to offer multiple pricing options to your customers and charge them a fixed amount each month.
thank you - but please explain if i need to call api.subscription or just miss a parameter in the api creating the new customer
should I just call //api.stripe.com/v1/subscription with customer_id (recieved) and a valid product_id created via stripe / dashboard before finishing with //api.stripe.com/v1/charges ??
What is the goal of the charges call?
You would create a subscription for that customer yes, and specifying the card/pm to be used
the present code charge the invoice amount. What i need is to charge the first month of subscription - now - and have stripe to take care of future payments acording to the subscription. Thank you in advance (i am newbie in C#)
ah then yes you'd want to create the subscription then, taking a look at the guide i sent
unless you add a trial period, if you're using automatic charges the first month will be paid immediately when you create the sub. there's no need to do a separate charge request
note also that we have a dotnet client that will make it a bit easier than building many HTTP requests like you've got here:
Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class library for stripe.com. - GitHub - stripe/stripe-dotnet: Stripe.net is a sync/async .NET 4.6.1+ client, and a portable class libr...