#sow - Default Payment Method

1 messages ยท Page 1 of 1 (latest)

hearty fern
#

Can you share a request ID where this isn't working? Would help me to look into this further

cinder grove
#

thanks for your quick response, where can I see the request id ?

hearty fern
cinder grove
#

thanks let me check and respond here

#

{<Stripe.StripeResponse status=200 Request-Id=req_PIF83FhgXmmpVi Date=2022-01-04T20:15:42>}

#

req_PIF83FhgXmmpVi

hearty fern
#

So your request body looked like this:

#

{
metadata: {
invoice_settings.default_payment_method: "pm_1KEJPECHSKMd2K1k5xbK3wLu"
}
}

#

It needs to be this:

#

{
invoice_settings: {
default_payment_method: "<the payment method>"
}
}

cinder grove
#

oops my bad ๐Ÿ™‚ thank you so much let me test it and confirm it works ๐Ÿ™‚

hearty fern
#

Sure, np

cinder grove
#

do u have any ref or sample code snippet for doing the same in c# ? var options = new CustomerUpdateOptions
{

         // how to set it up?
                
        };
#

for invoicesetting

#

never mind

#

got it ,

#

var options = new CustomerUpdateOptions
{

         InvoiceSettings = new CustomerInvoiceSettingsOptions
         {
             DefaultPaymentMethod = setupIntent.PaymentMethodId
         }
                
        };
#

let me test it to confirm

cinder grove
#

verified and it worked. thanks again for your prompt assistance. Apreciate it!

hearty fern
#

No problem! Glad I could help