Untitled

Anonymous
Plain Text
06/10/2021 5:59 PM
415 B
20
Indexable
Never
# Set the default payment method on the customer
        stripe.Customer.modify(
            data['customerId'],
            invoice_settings={
                'default_payment_method': data['paymentMethodId'],
            },
            name = data['name'],
            phone = data['phone'],
            address = {
                'line1': data['address'],
                'country': 'ES'
            }
        )
Editor is loading...