#supriya
1 messages · Page 1 of 1 (latest)
In the frontend code, you can call stripe.retrievePaymentIntent() to retrieve the PaymentIntent object and get its payment_method
Okay
i will try other than that is there any other way
one more thing if i want to hide the payment element in particular situation is there way to control my side
Yes you can control the visibility of PaymentElement. You can use css property to hide it, or you can simply unmount it https://stripe.com/docs/js/element/other_methods/unmount