Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
415 B
2
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'
            }
        )