#daniyal_11692
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- daniyal-pmd-validation, 1 day ago, 77 messages
- daniyal-applepay-domain, 2 days ago, 49 messages
You can listen to change event on the element
https://stripe.com/docs/js/element/events/on_change?type=paymentElement
value prop should have what you're looking for
https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler-value
is there a way to also know after the transaction in case of both success and failure that which payment method was used?
Hi. After transaction you should look at the payment intent: https://stripe.com/docs/api/payment_intents/object#payment_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.
That pm_ object attached to it will have the details
It should but might depend on your flow