#denciopal

1 messages · Page 1 of 1 (latest)

median sorrelBOT
cinder lake
#

stripe.error.InvalidRequestError: Request req_NmGebZHWzQ1HZT: No such PaymentMethod: 'paynow'

dusty stream
#

Hi there

#

Looking

#

So you set a PaymentMethod ID as the default_payment_method

#

To set that specific PaymentMethod to be used for Subscriptions/Invoices for that Customer

#

I think you are misunderstanding how default_payment_method works?

#

Can you tell me what you are trying to do?

cinder lake
#

in our application, the customer can set the default payment method so they wont be selecting it again during payment process.

and during this setting of payment method default payment, we call this api command to set for the customer. However, we just added paynow as part of the new payment method and seems I cannot set it with our existing call

dusty stream
#

Hmm doesn't look like you are using Invoices/Subscriptions though so this wouldn't really do anything

#

Are you just using this as a property to help you track what the default would be?

cinder lake
#

exactly.

#

just for tracking so they wont have to select it during payment

dusty stream
#

Ah okay. Well you set the PaymentMethod ID (pm_xxx) there

#

Not the PaymentMethodType

cinder lake
#

pm_xxx => xxx means anything I want right?

dusty stream
#

No, you would have created the PaymentMethod ahead of time

#

Also, PayNow is not a recurring PaymentMethod so I don't think this is possible

#

You'll need to track this yourself, not use the invoice_settings.default_payment_method parameter for this

cinder lake
#

I see

#

got it... thanks!!