#luciano-subscription-sepadebit

1 messages · Page 1 of 1 (latest)

proud ingotBOT
ashen canopy
#

Hey @late flicker I can try though I need to get a lot more details first (best to share that from the start in your question)

late flicker
#

in practice I create a connected account, an identical client and have it make a subscription but I always get incomplete statuses

#

the subscription is whit sepa debit

ashen canopy
#

Okay sorry this is super vague. Please try and collect information clearly first, write a clean summary, all in one message with all the relevant details, developer to developer, so that I can help you

late flicker
#

sorry for my english 😅 I need to create a connect custom account and have it subscribe to sepa debit but it goes to me in incomplete status. I'll share the code now.

ashen canopy
#

All good, please share detailed code, exact object ids, exact error message if any, etc.

late flicker
#

id sub : sub_1ObhegLgNVR2NB8DEg9cKmOL

#

Do I need the code I use?

ashen canopy
#

Sorry to be annoying but Discord is extremely busy right now with 15+ people in parallel. Try to write clear and detailed questions all in one message. Not really short sentences with limited info

late flicker
#

this is the code. in practice I create a connected account, an identical client and have it make a subscription but I always get incomplete statuses
the subscription is whit sepa debit. Is it normal for it to go to incomplete status?

ashen canopy
#

oh boy

#

Okay so you seem to be doing a lot of things that I don't really understand right now. For example your code starts by creating a Custom account and then a Person, but immediately jump in and create a PaymentMethod and Customer all in one really short sequence, which doesn't really make sense to me

#

So let's take a step back: what is that connected account all about? Which doc(s) are your following? Is that account fully active and verified?
It doesn't seem to have anything related to the rest of the code about the Subscription so I'm quite lost about what you are really trying to do

#

Ignoring most of that: the problem is that you don't have any Mandate for your SEPA Debit PaymentMethod, so the Subscription will be incomplete as there's no way for it to be paid.

late flicker
#

ok

ashen canopy
#

yeah that's still quite backwards, the connected account should be created separately. You don't even use it in that Subscription so you should simplify your code and solely focus on SEPA Debit + Subscription first

#

luciano-subscription-sepadebit

late flicker
#

Where should the mandate be added in my case?

ashen canopy
#

Please carefully read the doc I shared which explains it all and how to collect it. You need client-side confirmation and you can't just pass raw bank account details server-side like this

late flicker
#

obviously, for now I'm limiting myself first to understanding what to go through, just for testing

#

anyway ok, thanks for the help

ashen canopy
#
  1. Create the Subscription
  2. Complete the Subscription client-side with PaymentElement
#

if you do that it will fill out the Mandate for you as expected