#ankit.sehgal
1 messages · Page 1 of 1 (latest)
HI there, you can retrieve the paymentMethodId from the SetupIntent. https://stripe.com/docs/api/setup_intents/object?lang=ruby#setup_intent_object-payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Also, is it possible to retrieve the card details for the purpose of displaying on the UI, even if it's just the last 4 digits?
Yes you can retrieve the last 4 digit, it's available in the payment_method object https://stripe.com/docs/api/payment_methods/object?lang=ruby#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.
thanks @frozen skiff