#cheesus-hip-savedpm

1 messages ยท Page 1 of 1 (latest)

manic kiteBOT
rough breach
#

so they can use choose their saved payment method on the invoice payment page
@half timber are you referring to Stripe's own hosted Invoice page? Or something else?

half timber
#

Stripe's own hosted invoice page

rough breach
#

Then as far as I know that's impossible, we don't pre-fill with existing/saved PaymentMethods

#

cheesus-hip-savedpm

half timber
#

Is there any way to pay the invoice using the saved ACSS payment method?

#

Via direct API call?

rough breach
half timber
#

Can you advise on the actual way to pay an invoice with stored ACSS? Both of these calls give me the error:

You cannot provide both a mandate id and mandate information to payment_method_options.

Stripe::Invoice.pay('in_123', { payment_method: 'pm_111'}, { stripe_account: 'acct_2222' })
Stripe::Invoice.pay('in_123', { mandate: 'mandate_111'}, { stripe_account: 'acct_2222' })
rough breach
#

I'm going to need more than this like an exact API request. But really you should pass both payment_method: 'pm_123' and mandate: 'mandate_abc'

half timber
#

Stripe::Invoice.pay(invoice.stripe_invoice_id, { mandate: 'mandate_1NeOAPAyHIYmEn4OobW0vew1', payment_method: 'pm_1NeOAMAyHIYmEn4OzyGG9cAG'}, { stripe_account: invoice.stripe_account })

#

Does that have the info you need? req_YgkFool9rU3tQi

rough breach
#

looking

#

And you get the same error without mandate? I assume it's a limitation of Invoices. ACSS Debit is... extremely hard to use because it comes with extremely strict restrictions around what you are allowed to do

half timber
#

I was able to pay an invoice with a source_

#

But trying again in the same way with a mandate and payment_method on req_9w9G7oxw6EKAqa gives the same error:

You cannot provide both a mandate id and mandate information to payment_method_options.

rough breach
#

Then it looks like a bug with ACSS specifically unfortunately you'll have to report this to our support team so that they can investigate: https://support.stripe.com/contact

half timber
#

I've previously tried this whole integration with Checkout::Session and it also didn't work. I can store ACSS with the proper 'sporadic' mandate but never re-use it

#

I will contact support -- is there anything I should reference to them?

rough breach
#

Be crisp about the overall issue, provide details information, exact request ids, exact Invoice ids, etc.

half timber
#

And.... is there any known way to store an ACSS Debit PM on a customer and re-use it? I've tried Checkout::Session and now Invoices and neither have worked

rough breach
#

Try a PaymentIntent without anything else first, that's really step 1

manic kiteBOT
half timber
#

I was able to pay a basic payment intent using one of those same stored acss_debit PMs.

pi_3Nf5tYAyHIYmEn4O1Jb3U6sl

#

So does this seem like a glitch with invoices?

marble night
#

๐Ÿ‘‹ stepping in here as koopajah needed to step away

half timber
#

Thanks ๐Ÿ™‚

marble night
#

Hmm yeah this does seem like a bug to me.

#

Have you tried setting the PaymentMethod as the default on the Customer and then just hitting /pay ?

half timber
#

I was thinking that too but there is no option to set it as the default method via dashboard

marble night
half timber
#

Wild. Setting the default payment method to the acss_debit pm and paying the invoice with no other params worked!

req_jHbffk8aT9dHM4

marble night
#

Interesting

#

Thanks for testing

#

I'll certainly follow up internally as you should be able to use either method -- paying via the default or specifying the saved PM + mandate

#

Does this unblock you temporarily?

half timber
#

I'll have to investigate here a bit more to see if we can find a way to make this flow work. I would definitely prefer being able to specify pm + mandate to allow users to chose their payment method at the time of payment.

#

I can send this info to Stripe support and hand it to them if that's a better channel

#

?

marble night
#

Yes that would the proper way to file a bug report and then Support can keep you updated on when it has been fixed.

half timber
#

Will do. Thanks for helping me troubleshoot

marble night
#

Happy to help

half timber
#

Ciao - have a great day