#ocardenas
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
😁
Card Element is only for entering cards manually.
To use wallets like Apple/Google Pay, you can use one of three options:
- Payment Element - combines all payment methods, incl. wallets - https://stripe.com/docs/payments/payment-element
- Payment Request Button - element specifically for wallets - https://stripe.com/docs/stripe-js/elements/payment-request-button
- Stripe Checkout - hosted checkout page that supports all payment methods - https://stripe.com/docs/payments/checkout/how-checkout-works
Can I get the payment method from Payment-Element?
Or Can I create PaymentMethod from Payment Element?
What do you mean by "payment method"? What are you trying to do?
You can see here how to use the Payment Element: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
for example I would like create a new payment_method
with a Payment_Element I can do that?
or other question
I can confirmPaymentIntent from my server site
???
for example in Laravel I would like confirm payment intent from my controller
how I could do this?
I would like to use this funcition
but with payment element
not card element
I see.
If you want to use payment methods other than card, you will need to change your integration slightly.
The standard Stripe integration was redesigned to support all kinds of payment methods.
This article will guide you through the integration: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
There's an example in PHP as well.
ok, thanks
Happy to help. Let me know if you have any other questions.