this post was submitted on 20 Feb 2024
6 points (100.0% liked)
JavaScript
1982 readers
2 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Do you have more context? Are you actually trying to use apple_pay, or it that just an irrelevant error you're not expecting?
When you say "everything work flawlessly under Firefox" - Did you actually go through the entire process, and eventually received your payment? Or do you just "don't get any errors" there? Cause it would seem kinda weird as well if the Stripe dashboard says apple_pay is not enabled, but apple_pay does work...
Are you targetting the same Stripe account, and both in the same mode? "Test Mode" vs "Live Mode" - in both browsers? "Test Mode" might complain less about permissions or something - Just making sure
No, like I said, apple_pay is disabled ( willingly ) in the stripe dashboard, so I don't know why the error mention even apply_pay...
yes ! I mean under the testing environment, so with the test secret key etc.. The Strip API and dashboard show the related transaction as successful...
That why I'm surprised !
Of course I change nothing beside the visitor browser..
Well it wasn't clear whether you were trying to use apply_pay and it magically worked in firefox, but not in Chrome, or Chrome incorrectly things you're trying to use apply_pay...
Have you explicitly declared which payment methods are allowed to be used in your script? Maybe if you haven't declared anything the browser just infers it somehow, and Firefox and Chrome might have a difference in inferring default value
Indeed it's what I'm thinking too.
Actually I'm using the payment_intents with it's attributes automatic_payment_methods That state in it's description two contradictory thing
So maybe FireFox use the first one and chrome the second..
I've just found
payment_intents.payment_method_types
The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.Now I have to found the complete list of the accepted
string
ofpayment_method_types
if somebody know where they are laying , let me know, because I can't find them..So I have tried with
payment_method_types
and it works flawlessly under Firefoxbut still not working under chrome
So it might be because of the cross-site cookies ? Do I have to change something ? or Stripe ? Thanks.