#binod-sepa
1 messages ยท Page 1 of 1 (latest)
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
??
have you set the invoice_settings.default_payment_method on the customer?
yes
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
you mean invoice.status can take upto 14 days to be paid?
yes
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?
could you please share a subscription id so I could take a look at it?
sorry I'm still looking into it
it seems that the invoice is paid
did you explicitly invoke invoices.pay?
when are you setting this?
I was suggested by one of stripe staffs, call this API to charge immediately
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
Usually how long does it take to settle SEPA payment?
and what is the best approach? set explicitly or not?
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.payonly 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
is there in drawbacks of using invoice.pay?
no not really
ok
also, If I have setup SEPA and upgrade subscription with card, does it update default payment method as card?
could you send a request id?
req_D0q2N3ddm64aPL
Hey, taking over here. Let me catch-up
General recommendation is to not use this endpoint as it can't facilitate any required 3DS/auth flows
ok
Not really sure I understand this Q
The req_xxx you share doesn't have any pm_xxx attached
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" ] },
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Which actually credited the customer balance
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?
If you want to update the default PM on the subscription, you'll need to update the subscription to reflect that. It won't be handled automatically: https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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?
iDEAL recurring payments are facilitated via SEPA yes
yeah, to achieve that, I have attached default_payment to customer using an API.
you can check for this customer
cus_LblqomI7tppLs4
Yep. But I'm confused because you're mentioning a card, but nothing you've shared so far includes a card PM
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?
If I change subscription now with Card
What does this mean?
Is there an outstanding invoice?
okay
- My first subscription payment is using
SEPA - Second payment using
Card.
Now, my question is what will be my default_payment_method?
It won't have changed, it'll will be the SEPA PM
ok, so I should change explicitly?
Yep, as above โ๏ธ
wait, use subscription update API or customer update API?
because, Im using customer API to setup default pm
Ah ok, then yep: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Sorry wasn't sure which level you were setting default at
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
Not sure what you mean. You're attempting to pay an existing invoice with that call. Why would it create a new invoice?
What am I checking for?
this request didnt create any invoice
because Im calling subscriptions update API. It should create invoice right?
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
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
It'll be finalized and paid within ~1 hour
okay, thank you