#binod-sepa

1 messages ยท Page 1 of 1 (latest)

cobalt fable
#

๐Ÿ‘‹ happy to help

grim ore
#

I am using iDeal and card for subscription payment and also setting up SEPA. I have written all the code but the problem is, after setting up SEPA invoice is not charged immediately

#

invoice is created with open status and turns infto paid only after few moments

#

??

cobalt fable
#

have you set the invoice_settings.default_payment_method on the customer?

grim ore
#

yes

cobalt fable
#

could you please share your subscription id?

#

and one thing to note before I check everything is that SEPA Direct Debit is a reusable, delayed notification payment method, it will take up to 14 business days to receive the success/failure notification which explains the open status

grim ore
#

you mean invoice.status can take upto 14 days to be paid?

cobalt fable
#

yes

grim ore
#

okay so my code is working? because status is open for a while and automatically updated to paid

#

Im alson using stripe.invoices.pay(updated.latest_invoice.id) in case of SEPA. is it wise to call this API?

cobalt fable
#

could you please share a subscription id so I could take a look at it?

grim ore
#

sure

#

sub_1LIpvLHsW9ET26Jg6wcceVxd

#

??

cobalt fable
#

sorry I'm still looking into it

#

it seems that the invoice is paid

#

did you explicitly invoke invoices.pay?

grim ore
#

yes

#

is it good approach?

cobalt fable
#

when are you setting this?

grim ore
#

I was suggested by one of stripe staffs, call this API to charge immediately

cobalt fable
#

yes this is to force an immediate collection of the invoice

#

but since it is SEPA it can take some time to change the invoice status

#

but in test mode it's fast

grim ore
#

Usually how long does it take to settle SEPA payment?

#

and what is the best approach? set explicitly or not?

cobalt fable
#

Usually how long does it take to settle SEPA payment?
up to 14 business days
and what is the best approach? set explicitly or not?
invoices.pay only makes the attempt for the payment now instead of waiting the normal delay

#

and by the normal delay I'm talking about Stripe attempting the payment after an hour AFAICR

grim ore
#

is there in drawbacks of using invoice.pay?

cobalt fable
#

no not really

grim ore
#

ok

#

also, If I have setup SEPA and upgrade subscription with card, does it update default payment method as card?

cobalt fable
#

could you send a request id?

grim ore
#

req_D0q2N3ddm64aPL

grim ore
#

did you check?

#

??

pine oriole
#

Hey, taking over here. Let me catch-up

pine oriole
grim ore
#

ok

pine oriole
#

The req_xxx you share doesn't have any pm_xxx attached

grim ore
#

First I pay with iDeal and setup SEPA as default payment method. Now, if I pay using card to upgrade/downgrade subscription, will default payment method be updated to card?

#

It has if you see at line number 334 "payment_settings": { "payment_method_options": null, "payment_method_types": [ "sepa_debit" ] },

pine oriole
#

Where have you paid with a card during upgrade/downgrade?
This request: https://dashboard.stripe.com/test/logs/req_D0q2N3ddm64aPL
Created this prorated invoice: https://dashboard.stripe.com/test/invoices/in_1LIrFKHsW9ET26JgijwqCjIN

#

Which actually credited the customer balance

grim ore
#

Didnt get it. I am attaching default_payment_method to customer ID

#

which is working fine with SEPA. im just not sure, If again I upgrade/downgrade subscription with card , will it change to card or remain SEPA?

pine oriole
grim ore
#

I just want to setup SEPA for iDeal autopayment

#

and following this doc. where it says to attach default_payment_method with customer

#

what am assuming is, If I attach SEPA with customer, subscriptions associated with customer will be paid by SEPA instead of iDeal right?

pine oriole
#

iDEAL recurring payments are facilitated via SEPA yes

grim ore
#

yeah, to achieve that, I have attached default_payment to customer using an API.

#

you can check for this customer

#

cus_LblqomI7tppLs4

pine oriole
#

Yep. But I'm confused because you're mentioning a card, but nothing you've shared so far includes a card PM

grim ore
#

So, immediate SEPA payment is working. I wanted to know, If I change subscription now with Card. What will be my default payment method? SEPA or Card?

pine oriole
#

If I change subscription now with Card
What does this mean?

#

Is there an outstanding invoice?

grim ore
#

okay

  1. My first subscription payment is using SEPA
  2. Second payment using Card.

Now, my question is what will be my default_payment_method?

pine oriole
#

It won't have changed, it'll will be the SEPA PM

grim ore
#

ok, so I should change explicitly?

grim ore
#

wait, use subscription update API or customer update API?

#

because, Im using customer API to setup default pm

pine oriole
#

Sorry wasn't sure which level you were setting default at

grim ore
#

okay. also if I don't use this API stripe.invoices.pay(updated.latest_invoice.id)

#

it wont create any invoice

#

can you check this request req_R0rNno62nxJZ7F

pine oriole
pine oriole
grim ore
#

this request didnt create any invoice

#

because Im calling subscriptions update API. It should create invoice right?

pine oriole
#

Only if there's a payment due. In this instance you've passed the same price_xxx object that's already on the subscription

#

So I'm not sure what you expect to trigger an invoice

grim ore
#

okay my bad.

#

right now it's creating invoice with open status

#

how does it changes to paid? I mean is there any manual process or automatic?

#

in case of SEPA

pine oriole
#

It'll be finalized and paid within ~1 hour

grim ore
#

okay, thank you