#commento

1 messages · Page 1 of 1 (latest)

crystal marshBOT
knotty cedar
#

Hello, is the field not getting set at all? Or are you setting the field but it isn't getting used as the default PM for one-time payments?

#

That field only applies to subscription payments, so it would be expected for it to not work for one-time payments (you need to specify the PM ID for those each time)

midnight flare
#

I get an error: TypeError: update() got an unexpected keyword argument 'invoice_settings'

#

it is for invoice

#

that's why I am adding it: to be used for off-session future invoices

#

I tried to update the python module but without success

knotty cedar
#

Oh in python you want to use stripe.Customer.modify

midnight flare
#

ah ok sorry

#

I didn't know

knotty cedar
#

I'm not sure why but the update function is something different. modify is the function name for what we otherwise call updating in our docs and other client-libraries

#

No worries, this still trips me up and I code in our python library all the time