#reikoBooop
1 messages · Page 1 of 1 (latest)
👋 let me know how I can help!
Is there any way to add items to https://consumer.dev.booop.it without having to scan a barcode? Is this still the domain you're testing from?
yes that is the only way to add items from
And yes that is the domain we are testing from 👍
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?
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
👋 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?
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
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
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
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?
So add Apple pay domain with live mode key from backend ? Do we need to remove domain from Stripe dashboard too?
I'd recommend deleting the one from the Dashboard first, then add Apple Pay domain with live mode key
okay, let me get back to you shortly
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
Can you share which connected account ID this request you performed on, so that I can double check?
Quick question, if we registered the domain with a manual script to separate current stripe test keys, would that be used in application environment
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
this is the connected account ID "acct_1Lr9llFvggaxfzrX"
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}}',
});
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
Ah right! In order to test Apple Pay with Direct Charges in test mode, the connected account has to be created with live mode key as well: https://support.stripe.com/questions/setting-up-apple-pay-for-direct-charges-on-standard-connected-accounts
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.
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?
Only connected account creation and apple pay domain requires live mode key. Payment integration can remain in test mode key for testing purpose
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?
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
another question for you, once we create connected account using live keys, can we access that connected account using test keys for testing?
yes!