#reikoBooop

1 messages · Page 1 of 1 (latest)

drifting forumBOT
junior cave
#

👋 let me know how I can help!

rigid breach
#

yes that is the only way to add items from

#

And yes that is the domain we are testing from 👍

junior cave
#

Hm, I'm not quite sure how to test this. What exactly do I have to scan first to add an item to my cart?

drifting forumBOT
rigid breach
#

oh, there is two way to do it, go to the website and scan the QR code or try and scan the QR code with your phone camera, second way is easier

winged quarry
#

👋 Taking over this thread

#

As per checking, the apple pay domain was added in test mode. Have you tried adding the apple pay domain with live mode key?

rigid breach
#

yes so on Monday, we tested with live mode key and did it from our backend, while we were testing we removed domain from Stripe dashboard

winged quarry
#

I can't see Apple Pay domain registering with live mode key in our system. Could you try that again?

#

Why did you remove domain from Stripe Dashboard? Apple Pay will only work if the domain is registered

rigid breach
#

Okay so from the Stripe documentation it seems like we either register domain with Stripe dashboard OR register the domain from backend so initially we had it on Stripe dashboard and didnt work so we removed it from dashboard and register the domain from backend with live mode key which did not work either

#

So we basically put everything back to initial state currently domain is set in Dashboard

winged quarry
#

I see! At current state, the Apple Pay domain is only registered in test mode which will not work. For direct charges, Apple Pay domain has to be registered live mode key in order for it to work in test mode

#

Could you add the Apple Pay domain with live mode key again, so that I can have a test if Apple Pay works?

rigid breach
#

So add Apple pay domain with live mode key from backend ? Do we need to remove domain from Stripe dashboard too?

winged quarry
#

I'd recommend deleting the one from the Dashboard first, then add Apple Pay domain with live mode key

rigid breach
#

okay, let me get back to you shortly

rigid breach
#

Hi there, we have deleted domain from dashboard and added apple pay domain with live mode key but only on local environment, If we need to push it to dev environment for you to check it further, please let me know

#

And this is the backend code

winged quarry
#

Can you share which connected account ID this request you performed on, so that I can double check?

rigid breach
#

Quick question, if we registered the domain with a manual script to separate current stripe test keys, would that be used in application environment

winged quarry
#

Stripe will use the domain registration with live mode key on the account that's set. If your application uses the same account, then domain will be applied

rigid breach
#

this is the connected account ID "acct_1Lr9llFvggaxfzrX"

winged quarry
#

acct_1Lr9llFvggaxfzrX still only has Apple Pay domain in the test mode. From your code, it looks like you register Apple Pay domain on the platform, not connected account. You should use Stripe-Account header as connected account ID to register the Apple Pay domain on the connected account [0].

For example,

var stripe = require("stripe")("sk_live_••••••••••••••••••••••••");

const domain = await stripe.applePayDomains.create({
  domain_name: 'example.com',
},{
  stripe_account: '{{CONNECTED_ACCOUNT_ID}}',
});

[0] https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-using-with-connect

rigid breach
#

let me test that

#

Okay we tried your solution with connected account acct_1Lr9llFvggaxfzrX and get this error

#

the connected account Id doesn’t behave with live keys since it was created with test keys

winged quarry
#

Both connected account creation and domain registration should be performed with live mode key

#

Prior to testing the PaymentRequest button, ensure the following requirements are met:

  • Ensure your connected account is in Live mode.
  • The Apple domain for the connected account must be registered by you (the platform) using your Live mode key.
rigid breach
#

Wait but on the frontend when we run loadStripe function, we need to use test key right? otherwise the payment will be charged to the user on testing environment?

winged quarry
#

Only connected account creation and apple pay domain requires live mode key. Payment integration can remain in test mode key for testing purpose

rigid breach
#

Cool, so we already made few connected accounts made with testing key, do we need to erase all existing and create new connected account with live key or is there simpler way?

winged quarry
#

I'm afraid there is no simpler way other than testing Apple Pay with direct charges on connected account created with live mode key. I'd recommend creating one connected account with live mode key for Apple Pay testing purpose. For testing on other payment methods, you may still use the existing connected accounts

rigid breach
#

another question for you, once we create connected account using live keys, can we access that connected account using test keys for testing?

winged quarry
#

yes!