#Ferb

1 messages · Page 1 of 1 (latest)

safe roostBOT
forest gazelle
#

Hi! Let me help you with this.

#

You need to send the key with an empty value: default_method: ''

spring fulcrum
#

so customer.modify(user.stripe_cx_customer_id, default_method='')

forest gazelle
#

No, I understood you want to delete the key from metadata no?

#

Sorry, if I misunderstood.

spring fulcrum
#

yes

#

customer.metadata['default_method'] = ''

#

doesnt work

#

this doesnt work either

        customer.modify(
            user.stripe_cx_customer_id,
            metadata={'default_method': ''},
        )
#

@forest gazelle

forest gazelle
spring fulcrum
#

req_MD7sIh8Y7rXUAQ

forest gazelle
#

There's no default_method key in the metadata now.

spring fulcrum
#

i still see it ?

forest gazelle
#

There seems to be multiple calls to update the Customer that add this key back.

#

Are you sure you don't have a background job that does this?

spring fulcrum
#

I had a worker running old code in tha background 🤦

#

thanks for the help

forest gazelle
#

Happy to help!