#jamie_97274
1 messages · Page 1 of 1 (latest)
hi, do you have an example of this happening like the SetupIntent ID ?
pi_3OKMuZLjYDcRA6KW2eDfywGm
this PI was made through this setup intent:
seti_1OKMtkLjYDcRA6KW3f54hcW6
and the concern is that the PatymentIntent is status:processing?
that's normal, the payment is processed as SEPA Debit, and that takes a few days to process (https://stripe.com/docs/payments/sepa-debit#:~:text=SEPA Direct Debit is a reusable%2C delayed notification payment method. This means that it can take up to 14 business days to receive notification on the success or failure of a payment after you initiate a debit from the customer’s account%2C though the average is five business days.)
Is there a way to make a setup intent and payment intent in once? Or use a payment intent as a setup intent for recurring payments?
For example if we use a iDeal setup intent to create recurring payments for a subscription, the initial cost is also 0.01 cents displayed by the bank
when really we are trying to immideately make the first payment of 9.99
Is there a way to make a setup intent and payment intent in once?
that's what thesetup_future_usageparameter is for. If you're using Subscriptions that is set on the PaymentIntent of the first Invoice already, automatically.
then why not just create a Subscription for a recurring 9.99 Price and use the standard guide https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements ? it just works really.
the first payment is processed as iDEAL, and then recurring payments process as SEPA Debits against the customers' bank account that is automatically saved in the first payment
So you're saying not use a setupIntent at all?
so the flow is not creating a setupIntent but instead:
- Create a subscription
- Get the first paymentIntent intent client secret from the subscription data
- Make the first payment with the actual payment intent, starting the subscription
yes ^^
I have a feeling I tried this, but as we create a customer and a subscription at the same time as confirming the payment this was an issue
as opposed to having a customer first
well you need a Customer object in order to create a Subscription object yes; the flow is you have an incomplete Subscription and then activate it on the frontend
and sure that can lead to some extra objects for customers that don't convert which is definitely a concern we hear/are aware of, but right now that's just how the API works overall
to be clear all this is unrelated to your initial question I think. Regardless of what you do, the recurring payments do take a few days each to process, since they're SEPA(which you mentioned as believing they were stuck)
This is good information either way, thanks!
@radiant bloom I am working on this, and the payment intent from the subscription back into the payment form, but I get this error back from stripe:
"
"The PaymentMethod provided (ideal) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: card, paypal, sepa_debit. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "ideal"
Card/GoogleWallet/ApplePay do work, and I am not adding any payment_method_types, as the payment intent is automatically created via the subscription? I don't see anything about it on the page you sent along either
make sure iDEAL is turned on in the 'default payment terms' on https://dashboard.stripe.com/settings/billing/invoice?tab=general
It is on there
do you have the request ID req_xx from the error, or the sub ID sub_xxx?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ah. Hmm, I might have been wrong , damn
I tried to add the payment_method_types to my subscription, but then the collection_method is only allowed to be send_invoice
that is not automatic recurring payments I don't think
it doesn't include iDEAL because iDEAL doesn't support charge_automatically collection method yeah
I thought we just handled this automatically, but we don't.
But Checkout does! https://stripe.com/docs/billing/subscriptions/ideal
We can not use Checkout unfortunately, we have to add it to our existing payment form
but yeah I think we never made this work for the direct integration unfortuantely, it's coming back to me now as I remember.
so yeah you are just supposed to use a manual PaymentIntent for iDEAL for the amount of the first payment, then create the Subscription using a trial period to skip the first payment, and set the generated SEPA Debit PaymentMethod as the default PM for the subscription, I think.
probably similair to what you already had
No I was using setupIntents
because of the verification for recurring payments, I don't think the method you just told me allows me to charge recurring payments either, if the sepa_debit even comes through
you can create a PaymentIntent using ideal as the payment_method_type, and setting setup_future_usage ; then the SEPA Debit PM is available via https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-ideal-generated_sepa_debit after the PI succeeds
sorry, we definitely had guides on all this at one point, which I'm trying to find but I think they got replaced by the Checkout-specific ones
So many doc pages it's hard to find the right one sometimes!
yeah so the idea is you use that ^^ to process the first payment, then you have a generated SEPA PaymentMethod. That can be set as the default_payment_method on a Subscription; and also you need to use trial_end to skip payment until the start of the next cycle(since you already charged the first month using your manual PaymentIntent).
But yeah this integration path fell into a crack unfortunately
so you think the correct method is not
- Create a subscription
- Get the first paymentIntent intent client secret from the subscription data
- Make the first payment with the actual payment intent, starting the subscription
but instead
- Create a regular payment intent with setup_future_usage = off_session
- get the sepa debit payment method from this
- create subscription with this payment method that starts 1 month on basically (or however long your period is)
yes
top, thank you so far I will try that and see what happens 🙂