#nerder-ideal-enabled
1 messages · Page 1 of 1 (latest)
Hey @thin rune! Can you say a bit more about the context? Like what is your code doing, what objects are you touching like do you have a req_123 for the error or a pi_123 for me to look at?
yes let me give you that
You can see the logs from there
specifically this one
i'm creating the subscription in the following way:
const stripeSub: Stripe.Subscription = await
this.stripe.subscriptions.create(
{
customer: customerId,
items: [
{
price: priceId,
},
],
application_fee_percent: feePercentage,
payment_behavior: 'default_incomplete',
expand: ['latest_invoice.payment_intent', 'pending_setup_intent'],
trial_period_days: trialDays,
},
{
stripeAccount: accountId.getValue,
},
);
instead the secret for the client is retrieved in this way
let clientSecret = ((stripeSub.latest_invoice as Stripe.Invoice).payment_intent as Stripe.PaymentIntent)
?.client_secret;
looking
What happens if you put ideal in https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-payment_method_types too?
alternatively what do you see on https://dashboard.stripe.com/settings/billing/invoice where you can configure the default?
Are you looking in your account though or the connected account?
let me try to add ideal
the connected account account
but even in the my account is active
Sorry I'll be honest this is a pain and it takes my team hours to figure out the right incantation
But let's take a step back:
1/ Does it work if you use that account's API key and do the request yourself in your own account, no connect
2/ Does it work if you set the parameter I said explicitly?
2/ i've just tried to add ideal inside the payment_settings.payment_method_types when trying to create a subscription, but I receive an exception (that I was expecting actually): Exception: Request failed with code [500], Reason: [{"error":"error creating subscription {\"customerId\":\"cus_MIbywPsMzuANmq\",\"priceId\":\"price_1HFQDFLAVB3C1lDIpZD4uRuC\",\"gymId\":\"test\"}","cause":"The payment method type `ideal` cannot be used with subscriptions that have the `collection_method` set to `charge_automatically`."}]
1/ i'm not sure on how easily do that test, because the entire integration is built with connect in mind. So it's quite a lot of work to do that test
okay so that answers the question overall. iDEAL doesn't work with collection_method: 'charge_automatically'
If you switch to collection_method: 'send_invoice' it will just work
let me try
Actually in this way it created the invoice in draft
but it does not makes much sense in my integration like this :S
catching up here, give me a sec to read
Hey! Thank you @proven sorrel
that's just a limitation right now, IDEAL just won't work with what you're trying to do with charge_automatically unfortunately
umm ok, but how it will work an iDeal integration for recurring payments?
Recurring payments Supported through Stripe via SEPA Direct Debit
actually seems like is this
this is trough checkout
Ok it seems like I've found something here: https://stripe.com/docs/payments/ideal/set-up-payment?platform=web
Learn how to save bank details from an iDEAL payment and charge your customers later with SEPA Direct Debit.
sorry to rubber duck this with you
for recurring payments, you need to charge the SEPA Direct Debit PaymentMethod that backs the IDEAL PaymentMethod
Ok that is clear!
So the first invoice I use ideal, then from there I continue to bill using SEPA DD
basically you follow this guide: https://stripe.com/docs/billing/subscriptions/sepa-debit
so you "set up" a Sepa Debit" PaymentMethod and use it to create a Subscription
We already suppport that