#Nadiya
1 messages · Page 1 of 1 (latest)
No, you can just update via the API
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
exp_month and exp_year
okay, so a normal form elements right?
Yep, after displaying some information to your Customer for them to make sure that's their card
like last4
ok, understood
Thank you
sorry, a follow-up question,
is it possible to check whether a card is user's default card from "List a Customer's PaymentMethods"
the customer's default payment method is found in this parameter : invoice_settings.default_payment_method [0]
[0] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
it's defined on the Customer object, not on the PaymentMethod object
then, is it safe to store these data's in our database
yep, that's safe to store if you want to