#Daniele-google-pay
1 messages · Page 1 of 1 (latest)
When I visit that page Google Pay does show up for me, so that means you haven't added a card to your google pay wallet
Can you make sure to add one here: https://pay.google.com/gp/w/u/0/home/paymentmethods
(I deleted that message since the screenshot had your email in it and I just wanted to be safe)
It is odd that it's not working though... let me think what else could be the issue
ahh was a test email, thank you anyway
yeah seems pretty strange
tried with adblockers disabled as well, doesn't seem to be the issue
also, on safari, https://daniele.sellix.io/invoice/e55d45-f1677a0661-a7639e
when i click on pay with apple pay, the popup appears but then disappears after a few seconds without letting me actually pay
could send you a video but contains some private info, not sure if here is the best place
I can reproduce it on my end, so no need to send anything yet - let me look into it a bit more
If there a reason you're using your connect account publishable key, and not your platform's publishable key with the Stripe-Account header set?
mh no not really sure, should we use the platform's everywhere?
Yes, the Payment Intent that you're site is trying to confirm was created by the platform on behalf of your connect account using the Stripe-Account header, so you should be doing the same thing client-side. You can see an example of how to do this client-side here: https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
so basically replacing the current publishable key with ours
Yeah, you'd swap out the publishable key and also set Stripe-Account to the connect account ID
we'll try now, please keep this open
following your suggestion, now apple pay does not appear at all - https://daniele.sellix.gg/invoice/e55d45-f1677a0661-a7639e
the domain is added to the configuration
the previous solution enabled us to verify the domain on our Stripe account
now i believe the clients will have to do it? but that doesn't make any sense
previously everything was working
How did you register your Apple pay web domain? Did you do it through the API, like we recommend for connect accounts (see https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect)? (you would still be able to register it as the platform, your clients won't have to do this)
yes, we have hundreds of domains registered through the api
daniele.sellix.gg is one of them
however, no Apple Pay appearing
using this
publishable key: our
stripe account id: the connected account
previous code - it appears
new code with new pk - it does not
When you registered the domain through the API did you include the Stripe-Account header as well?
ah, that probably not
let me see
also, is there a way to quickly delete apple pay domains from the stripe dashboard?
There isn't really a quicker way through the dashboard - if you want, you can write a one-off script to delete them through the API which would be quicker if you have a lot of domains to delete
yeah that would be an option, do the same methods (e.g. list etc) exist for applepay?
i can't find them on the stripe api docs
Yes, you should be able to list and delete apple pay web domains thruogh the API
You must pass an array as the first argument to Stripe API method calls. (HINT: an example call to create a charge would be: "Stripe\Charge::create(['amount' => 100, 'currency' => 'usd', 'source' => 'tok_1234'])")
receiving this error when trying to delete the domain, how exactly should i pass the object on ApplePay delete?
I need to head out, but @heady marsh should be able to help you - what does your code look like that's deleting the domain?
$domains = \Stripe\ApplePayDomain::all(["limit" => 100]);
foreach ($domains as $domain) {
\Stripe\ApplePayDomain::delete($domain, []);
}
like this
Hi there 👋 please bear with me a moment while I get caught up here.
in the meantime i'm adding the apple pay domains to our connected accounts, might take a while as we have a few thousands
Could you try this:
$domain->delete();
}```
trying
apple pay fix seems to be working, will finish adding domains and keep you posted
Awesome, thrilled to hear that!