#Vincent_92-payment-element
1 messages · Page 1 of 1 (latest)
Hi 👋 can you tell us a bit more about your flow? Since you're showing the payment element on mobile I'm assuming you're building a web flow to be accessed from a mobile device?
yes
this is for mobile
when user click on a button, there is a popup that open to invite the user to enter his card information or select google / apple pay
I listen the recommendation of stripe by puttin
<meta name="viewport" content="width=device-width, initial-scale=1" />
for good display
but as you can see on the screenshot , this is too big
That's ok , I find, I had "min-width: 500px;" in the global.css
solved, thank you, by the way I have another question, I test my mobile app with apple iphone, and in the developer tool, I see a message telling that my domain is not registered with apple and stripe
but I already registered the domain on stripe
so what can cause the issue please ?
Apologies for the delay. Glad to hear you found the cause of your initial concern!
Can you share your account number and the domain you're using?
@wispy relic Are you using Connect in your integration?
It's near the top right of this dashboard page:
https://dashboard.stripe.com/settings/account
acct_1HsdD0LpthC0ShbP
Im using this website to test my mobile app on Iphone : https://live.browserstack.com/
the screenshot is from this site
But if you look into my account you see that I have registered the domain
You need to have a card saved in your apple pay wallet for the button to appear
This might not be possible on browserstack, i''m not sure
Yes I know, but read the message up right
The best test is to visit our example in the docs here to see if the button appears: https://stripe.com/docs/stripe-js/elements/payment-request-button
It says that whether i have card or not in apple wallet
the domain is not registered
Does the docs page show the apple pay button that you can click?
Please read the yellow message
I've read it
Ok I m gonna enter this url in browser stack
and see if button apple appear, correct ?
This is an Iphone 11 + safari
Right, so it looks like the browser/device doesnt support apple pay via brwoserstack then, you'll need to ask browser stack about that
You should test with a real device or a local simulator configured with your own account
Ok, so it has nothing to do with my registered domain, I mean its not a pb about that
well, if you say your domain is already registered successfully in your dashboard then likley not
the error message tells you it could be that or no saved card
I don't have real Iphone as I'm android user, but I guess I can find on internet a local simulator or something like this to test ?
The message on your url
You can test this with xcode and the ios simulator
says that I have to have a payment card configured inside apple pay wallet, so it is normal that nothing appear no ?
ok so I have to user xcode or ios simulator AND I have to enter a real card inside the appel wallet to try, thats correct ?
Thank you I will
I have another question
I m trying to configure a card with setup intent
and when the user have put his card, I don't want to redirect him
so on the javascript side I write something like this, but when I confirm I get an error
else // Setup card only
{
const {error} = await stripe.confirmSetup({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {},
redirect: "if_required",
});
}
I used redirect: "if_required" to bypass the redirect url because I don't want to redirect the user
Is is well typed, or something wrong here ?
The card is succefully added to strip, but I get that error
Any clue ?
You need to check if error is defined, first
In the success case, error is null/undefined so error.type is invalid
note we show using if(error) { ...}
Yes but in the screenshot I sent you
the "error" object is not defined
And I don't know why it is not defined
Because there was no error
you said the card was setup successfully
If the authorization fails, the Promise will resolve with an {error} object that describes the failure.
Understood, so in this case, I have to test first if error is defined, and if it is not, I bypass the if/else error block
Correct!
Why not just use if(error)?
I already try "if(error)" but still the same error : The browser tell me that "error" is not definied
defined
ah, you're outside the scope of where error is defined
you need to move that code inside the else block
Holy S... thank you !
NP!
Do you know why I have a lot of error, I think that come from stripe js
Everythings work, but If I can get rid of there error, it will be more clean
Most of them are from inpage-content.js
Is this related to google pay maybe ?
Maybe because Im in test mode with stripe ?
never seen this but they don't all look like Stripe errors, not sure what the webassembly thing is, must depend on your overall stack/set up here
Was an chrome plugin, no more message now
awesome!
Recently I have noticied here that in europe, google pay modal was in $ dollar currency when setup a card
karllekko tell me that they will update to have the good currency, and now this is good
but there is still one sentence that has has not been translated
in yellow on the screenshot
can you tell them about that please ?
looking
ok
yeah it looks like a Chrome bug, not ours. It's their UI here and we don't control it unfortunately so you can't really do anything other than wait for it to be fixed by google in future version. We'll report it to them but those things take time