#nerder-ideal-enabled

1 messages · Page 1 of 1 (latest)

cold coyote
#

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?

thin rune
#

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;
cold coyote
#

looking

thin rune
#

Ideal seems active in the billing default settings

cold coyote
#

Are you looking in your account though or the connected account?

thin rune
#

let me try to add ideal

#

the connected account account

#

but even in the my account is active

cold coyote
#

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?

thin rune
#

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

cold coyote
#

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

thin rune
#

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

proven sorrel
#

catching up here, give me a sec to read

thin rune
#

Hey! Thank you @proven sorrel

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

thin rune
#

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

#

sorry to rubber duck this with you

proven sorrel
#

for recurring payments, you need to charge the SEPA Direct Debit PaymentMethod that backs the IDEAL PaymentMethod

thin rune
#

Ok that is clear!

#

So the first invoice I use ideal, then from there I continue to bill using SEPA DD

proven sorrel
thin rune
#

We already suppport that