#hudarsono
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
What do you mean by "custom UI and checkout flow" exactly?
You can use the Express Checkout Element if you just want the Google Pay button: https://stripe.com/docs/elements/express-checkout-element
You will need to set googlePay: "always": https://stripe.com/docs/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-wallets-googlePay
we have our own checkout UI, so we can't use Express checkout. could we just use our own UI, and use stripe only to render the "google pay" button
I just need a bit of context, at what point are you using Stripe? Are you sending card info directly to API?
for other payment type such as affirm we also use stripe by creating payment intent first. however we dont see any way to do the same for google pay.
Express Checkout Element can do the same as what you do with Affirm. What's the issue?
You can follow this guide for this: https://stripe.com/docs/elements/express-checkout-element/accept-a-payment
for affirm, we dont use express checkout element, we use direct API integration. so the UI is from us
How are you using the direct API integration with affirm? What are you sending to the API? Could you please share an example PaymentIntent ID?
I am just trying to understand how your integration looks so I can suggest the best solution.
we are using this for affirm : https://stripe.com/docs/payments/affirm/accept-a-payment?platform=web
I see, thanks.
Now, what I don't understand, you asked how can you use Stripe to display the Google Pay button. And my answer to that is to use the Express Checkout Element. The rest of the flow is the same. The difference with Affirm is that you don't need to display anything for it to work. So I don't understand why the ECE solution doesn't fit you. What do you expect the solution to be?
btw with express checkout, could we just show a single button without anything else? on stripe web, it looks like we have to shows checkout box
I shared the options you can provide to the element in the message above ☝️
You can disable Link and PayPal on your Dashboard, if you disable Apple Pay you will be left with just Google Pay. https://dashboard.stripe.com/settings/payment_methods
if we want to support both apple pay and google pay, however for web, we only show google pay button, is that possible?
Yes, you can just tweak the settings on the element depending on your platform.
another one, if we want to show both paypal and google pay button, but on different place (not together), is that possible with express checkout?
You can probably show 2 separate elements.
I am not sure, it's better to check for yourself. But I don't see why it wouldn't work.
Thanks for now, we will see express checkout
Happy to help!