#michael-fill-missing-payment-method
1 messages · Page 1 of 1 (latest)
Hello! can you share an example request id where you hit this error? eg req_1234
https://stripe.com/docs/api/request_ids
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah so this customer doesnt look to have any payment methods attached -- you need to collect some payment details and specify how you want the subscription to be paid
I do not know how the customer pays before the stripe returns? can the new customer be created with some kind of default?
Well you're creating a subscription, not a customer
What's your goal here?
What are you trying to achieve?
yes, but before i have created the new customer!! from our website, the customer enters name and email and selects a subscription.
Then we send name and email to stripe via https://api.stripe.com/v1/customers
which return the new customer's customerid which we then send to stripe via https://api.stripe.com/v1/subscriptions together with price_id.
Then I expect stripe to create the subscription and lead customers to the form of payment, where card information can be entered ??
That's not how the integration works the way you've implemented it
Are you trying to use Checkout and have them direct to the Stripe-hosted payment page?
If you want to use a custom payment flow, you need to collect the payment details on your application:
https://stripe.com/docs/billing/subscriptions/elements#collect-payment
If you wish to have Stripe handle this for you, you should take a look at this guide for using Checkout to create subscriptions:
https://stripe.com/docs/billing/subscriptions/checkout#create-session