#chalmagean
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
would you mind sharing the request ID? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
one example would be req_h0JMh78fAUjoB1
taking a look
it looks like the las one I tried went through... so I'm confused
req_59BhCgx8S5pXlh
I'm missing something and I don't know what ๐
these are totally different requests
the 1st one:
- collection_method: "charge_automatically"
- payment_behavior: "default_incomplete",
the 2nd one - collection_method: "send_invoice"
- payment_behavior: "allow_incomplete",
so it's normal to see a different behavior
with charge_automatically why do I get the error?
my goal is to charge for the subscription right away, without sending invoices
and I'm getting that error even though I fill in the card details
and the card payment method is configured
if I look at the customer object (req_h0JMh78fAUjoB1), I can see that there's a ACH Credit Transfer payment method configured
I don't know where that's coming from
Hi, I'm taking over my colleague, please let me catch up
sure, thank you
For your case, you need to add payment_behavior: 'default_incomplete', and collection_method: 'charge_automatically'
Why is it not working?
I mean if I set the payment behavior to error_if_incomplete, I get that missing payment method error message
which I don't get with default_incomplete
Because, as the name suggests, it throws an error if it is not possible to complete the payment.
and why is it not able to complete the payment? I'm providing the card details for it
Can you share the request ID req_xxx?
req_3XeR3yiMvvyEPw
What are you expecting to happen?
Do you want to charge the Customer's default_payment_method? Or collect the Payment Method afterwards?
I want to charge the customer immediately after submitting the checkout form (using the card they used on the form)
I understand.
You need to create a subscription with payment_behavior: 'default_incomplete' and then use the Client Secret to collect the payment details on the frontend.
yes, I noticed that one works, but I was wondering why error_if_incomplete does not work
Because when you create the subscription there is no working default payment method available.
even though I'm providing one? via the form
What form?
the checkout session form
Have you created a SetupIntent?
I'm creating a subscription on the callback from this ๐๐ป form
so I'm providing a payment method
So, are you creating a Checkout Session with type "subscription"?
yes
Okay, so what's the problem?
I don't see why I need to go through the incomplete status
since I have the payment method right there
so it could either charge the card, or fail
if successful, I create the subscription, and if not, I won't create the subscription
Because the Subscription is created in the incomplete state when the Checkout Session is created, and we don't have the Payment Method at that time
Ok, I see... thank you
Happy to help. Let me know if you have any other questions.