#Daniele-google-pay

1 messages · Page 1 of 1 (latest)

round ocean
novel turtle
#

chrome

#

safari

round ocean
#

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

#

(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

novel turtle
#

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

#

could send you a video but contains some private info, not sure if here is the best place

round ocean
#

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?

novel turtle
#

mh no not really sure, should we use the platform's everywhere?

round ocean
#

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

Learn how to add the right information to your API calls so you can make calls for your connected accounts.

novel turtle
#

so basically replacing the current publishable key with ours

round ocean
#

Yeah, you'd swap out the publishable key and also set Stripe-Account to the connect account ID

novel turtle
#

we'll try now, please keep this open

novel turtle
#

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

round ocean
#

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)

Collect payment and address information from customers who use Apple Pay, Google Pay, and browser-saved cards with Payment Request APIs such as Microsoft Pay on Edge.

novel turtle
#

yes, we have hundreds of domains registered through the api

#

however, no Apple Pay appearing

novel turtle
#

publishable key: our
stripe account id: the connected account

#

previous code - it appears
new code with new pk - it does not

round ocean
#

When you registered the domain through the API did you include the Stripe-Account header as well?

novel turtle
#

ah, that probably not

#

let me see

#

also, is there a way to quickly delete apple pay domains from the stripe dashboard?

round ocean
#

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

novel turtle
#

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

round ocean
#

Yes, you should be able to list and delete apple pay web domains thruogh the API

novel turtle
#

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?

round ocean
#

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?

novel turtle
#
$domains = \Stripe\ApplePayDomain::all(["limit" => 100]);

foreach ($domains as $domain) {
\Stripe\ApplePayDomain::delete($domain, []);
}
#

like this

heady marsh
#

Hi there 👋 please bear with me a moment while I get caught up here.

novel turtle
#

in the meantime i'm adding the apple pay domains to our connected accounts, might take a while as we have a few thousands

heady marsh
#

Could you try this:

  $domain->delete(); 
}```
novel turtle
#

trying

#

apple pay fix seems to be working, will finish adding domains and keep you posted

heady marsh
#

Awesome, thrilled to hear that!