#j-_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1268217752024387625
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
@hollow solar Hello ๐
Hello, do you see apple and google pay in the express checkout element on this page? https://docs.stripe.com/elements/express-checkout-element
I'm here
When users doesnt have apple pay, i think stripe should provide a message telling the user that he needs to activate apple pay or google pay, but it just doesnt show anything
By default the button just does not show up if Apple Pay is not set up. If you set applePay and googlePay to always in the ECE settings they should show up as long as the user is using a compatible browser.
https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-paymentMethods-applePay
And you are saying that both apple and google pay show up on that page for you on the same device where you are not seeing those wallets on your site?
Well, if the user access via andorid device, and have google pay activated on their phone, then the google pay button shows up. But if its not activated then it doesnt show the button at all
Same on iphone or safari
Gotcha, then it sounds like you need to set those two settings to always
Im sorry to bother you, where i shoudl define that? im using react and importing the checkout element:
import { ExpressCheckoutElement, useElements, useStripe } from '@stripe/react-stripe-js'
or in the <Elements/>?
No bother, I think you would pass this in as options when initiating the Express Checkout Element:
options={{
paymentMethods: {
applePay: 'always',
googlePay: 'always',
}
}}
/>```
still doesnt show ๐
๐ฆ
const options: any = {
layout: 'auto',
buttonTheme: {
applePay: 'black',
},
buttonType: {
applePay: 'check-out',
},
buttonHeight: 50,
borderRadius: '2px',
paymentMethods: { link: 'never', googlePay: 'always', applePay: 'always' },
}
Hmm not immediately sure what that may be. Do you have a public test site where I can try to see this for myself?
It should say something like 'activate apple pay' or something that the user knows ๐
yes
but, if you are on browser it will show up
Also did you register your site as a payment method domain? https://docs.stripe.com/payments/payment-methods/pmd-registration
you should test on a mobile phone which u dont have activated apple pay
Yes, as i told you
It shows when you have activated apple pay
Click on "Pagar o dividir la cuenta" > "Pagar cuenta completa" > Select "Si" > then Google pay or apple pay
Let me know
When I inspect the code on your site, I don't see the apple Pay and google pay always settings. Is it possible that the updated version of your code is not on your site yet?
layout: "auto",
buttonTheme: {
applePay: "black"
},
buttonType: {
applePay: "check-out"
},
buttonHeight: 50,
borderRadius: "2px",
paymentMethods: {
link: "never"
}```
Oh, sorry, let me deploy the changes, im testing in local dev
Sorry
its deploying, please when i tell you hard refresh the browser
done
it doesnt appear anything
It should appear at the bottom
let me show you an example when it showz
It is actually working for me now
On the same machine wehre that was not appearing before
Yes, but in this device
oh finally, yes!
i think only works on production
there is any way we can show oinly apple pay on safari and apple devices?
sorry apple devices*
and on google devices only google
Yes, for layout you would set max rows and columns to 1 and overflow to never https://docs.stripe.com/js/elements_object/create_express_checkout_element#express_checkout_element_create-options-layout
ok perfect
other question
itspossible that a user can pay less than $10mxn?
its an issue when users cant pay less than 10
If you talk to our support team they may be able to help with that though I am not sure what they can make this change for you but it would be worth asking https://support.stripe.com/?contact=true
This is definitely a support question. There isn't a setting that you can turn on yourself or set via the API that would allow you to do this. It is something support would have to enable