#Mosh-ApplePay-GooglePay
1 messages · Page 1 of 1 (latest)
Hi there, Card element doesn't support ApplePay or GooglePay, please use Payment Element instead.
Please find the comparison table here https://stripe.com/docs/payments/payment-card-element-comparison
In documentation it says extra code can support apple/Google pay
can you send me the doc link?
Anyway Payment element support Connect as well. Did you encounter any problem when integrating the payment element?
Sorry for the delay
In the comparison here it says not support for application fee.
No problem, this doc is for card element only.
Ah, this doc says payment element doesn't allow you to change a different app_fee based on the card details, but you can still specify a app_fee when creating the paymentIntent and then pass the client secret to the payment element
The different between card element and payment element is we can't determine card brand / country / payment method upfront on payment element
That okay, I update application fee in out webhook call when capturing the order. So in that case I assume I can use the payment element
Yup, you can adjust the application_fee when the payment Intent status is requires_capture . Please note that you can't adjus the amount when the status is requires_capture .
Noted, Thank you
Ill give it a try.
Its saying
Unrecognized request URL
when doing the payment
can you share the request id where you're getting this error?
{
"error": {
"message": "Unrecognized request URL (GET: /v1/payment_intents/pi_3KmAgGDOglbCzaHn2kotcjqz/confirm). Please see https://stripe.com/docs or we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}
}
you mean Payment intent ID
yoyu're passing this in return_url: "/Payment/PaymentSuccess"
this isn't a valid URL schema
it should look something like https://something....
Got it
Thanks
With payment elements, Do we need to add any code for apple/Google pay?
Or is it automatically pickit up?
you don't need to add additional code for Google Pay, but for Apple Pay, you need to verify your domain for Apple Pay though : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay