#remi.lapierre
1 messages · Page 1 of 1 (latest)
You can retrieve parts of it, such as the last 4 digits and expiry, in the payment method object:
https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-last4
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
What are you trying to do?
Im trying to display the part of the cc number on the form
Yep, then the last4 there should offer that
Amazing thanks
NP!
No, that's not possible, though you might want to look into Link to allow your customer to save and reuse payment details:
https://stripe.com/docs/payments/link
So i can't prefill the card part with lets say **** ** + 4digites?
Right over here
Unfortunately not. You can display the last 4 digits outside of the form though and provide that card's PaymentMethod ID (pm_123...) if the user selects that
Cool, thanks so much