#ucjonathan-applepay-paymentrequest

1 messages · Page 1 of 1 (latest)

grand estuary
#

hello, so

#

it is expected that applePay: true is always returned in incognito mode

#

don't use incognito mode basically

#

do you see the Apple Pay button on that page

upper lion
grand estuary
#

gotcha so that means you are set up for Apple Pay

BUT it might be an integration issue on how Apple Pay was set up on your client's website

so let's start here

#

is Connect involved, for the client's website

upper lion
#

yes, it's our connect integration. let me provide some additional details. From out order logs, we can see that some customers are indeed seeing the apple pay button show up and are using it.

#

We've got a good number of merchants using Apple Pay and have never encountered this strange behavior.

grand estuary
#

what is the fund flow, is it Direct Charges?

#

(Apple Pay with Connect can be ... tricky, so narrowing down)

upper lion
#

How do I determine the accounts fund flow?

grand estuary
#

are the payments being created on the Connect account (Direct Charges), or whether the Platform is using "Destination Charges" aka payment created on Platform with a Transfer of funds to the Connect acct

upper lion
#

I'm guessing direct charge as we don't have any of the funds flow through us. Would them being a Canadian merchant cause issues if the customer's not in Canada?

#

Their default currency is USD though.

grand estuary
#

country and currency shouldn't matter for now

ok next two questions

i/ what is the account ID of that connected account
ii/ how do you initialize Stripe.js on your client's webpage?
(code snippet for how Stripe.js is initialized basically)

upper lion
#

acct_2Srwh4VHu6OrQv4u2uGU

#

{"country":"US","currency":"usd","total":{"label":"Total","amount":6999},"requestPayerName":true,"requestPayerEmail":true,"requestShipping":true,"displayItems":[{"label":"The VIPER™ Money Clip - NEW NASA Optical Gray Finish","amount":6999},{"label":"Subtotal","amount":6999}],"shippingOptions":[]}

#

that.paymentRequest = that.stripe.paymentRequest(paymentRequestParams);

#

lot of handlers....

#

that.paymentRequest.canMakePayment().then(function(result) {
console.log("paymentRequest.canMakePayment ", result);

grand estuary
#

the Stripe.js initialization for ii)
aka what (redacted) publishable key and/or Connect acct ID is passed on var stripe = Stripe('pk_123')

upper lion
#

pk_live_ZsqaPrfmdaBjXWqt9o2dRFxx00jLdyXKWM

#

that.stripe = Stripe('pk_live_ZsqaPrfmdaBjXWqt9o2dRFxx00jLdyXKWM', {
apiVersion: "2020-03-02",
stripeAccount: window.stripeAccountId
});

grand estuary
#

perfect

#

looking

#

ok think I know the issue

upper lion
#

I think the person has two buttons on the page!

#

Let me verify if that is the issue.

grand estuary
#

you're initializing Stripe.js as the Connect account which is great

BUT

the piece you're missing is that the Platform has to set up the Apple Pay domain on Stripe as well. Currently, the account itself set it up, not the Platform on behalf of the Connect acct.

So you need two things to fix this:
a/ delete the existing superiortitanium domain from the Connect acct
They can do it from their Dashboard
b/ you register the domain as the Platform by making this request with the Platform API key and the Stripe Account ID: (the second snippet here: https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect)

upper lion
#

Let me check on their domain validation. We do that automatically, but let me double check that.

#

Any harm in posting the validation of their apple pay domain?

#

It's got the id=apwc stuff.

grand estuary
#

you can paste just the ID

#

I can look internally

#

but remember to delete the existing domain first though

#

then add the same domain as the Platform on the Connect acct

upper lion
#

apwc_0AS4kbh4VHu6OrQvZz2SJVwi

grand estuary
#

that is the one you need to delete first

#

as that was (incorrectly) registered on the account itself, not by the Platform

upper lion
#

can I delete that from the web interface on his connected account?

grand estuary
#

from the Dashboard?

#

you can, if you're the connect account

upper lion
#

can you guide me where in the dashboard I go to find that apple pay domain and delete it?

grand estuary
upper lion
#

I'm going to do a Zoom with the merchant to remove the domain and then re-trigger it with an API call on our side.

#

Deleting and re-adding that domain appears to have done the trick. Thank you for your time and excellent advise!