#viraths-applepay
1 messages · Page 1 of 1 (latest)
Also I have done this part - https://example.com/.well-known/apple-developer-merchantid-domain-association
Apple Pay domain can only be added with live secret key [0]:
You must use your platform’s live secret key to register the domains; don’t add domains in test mode.
No problem! Happy to help 🙂
Does that mean you have to register the domain on live mode connect account.
Yes, with live mode account created using live secret key
Then do we want to add the domain on test mode for test connected account as well for testing.
Test mode connected account will not work for Apple Pay
Ahh how do I test the apple pay on test environment then?
I was able to test apple pay when I used the destination charge type on connected accounts. Now we realised we want to use direct charge type instead of destination charge type on connected accounts.
It's possible to test with test mode account only after you register domain with live mode API keys on live mode account. You can then create a PaymentIntent with your test mode API keys and then initialize Stripe.js on your webpage also with your test mode API keys
That's exactly what I have done now. But still I got following error.
Either you do not have a card saved to your Wallet or the current domain (My Domain) or stripeAccount parameter (acct_my_account_id) is not registered for Apple Pay. Visit https://dashboard.stripe.com/account/apple_pay to register this domain.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you share the request ID (req_xxx) that threw the error?
Ahh how do I get the request id?
Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Or can you share the connected account ID that you tried to register Apple Pay domain with?
acct_1KjGFE2X1kZsUyoD
My record showed that this account is a custom account and apple pay domain is registered under test mode. Direct charges is recommended for standard account, but not custom account. Apple Pay domain is also not registered under live mode and live account.
Ahh this is the domain id I got after I registered the domain on live mode with live connected account.
apwc_1L8GHP2Y844kHC6DSB2VYvXe
Btw I have created the domain on test mode on test connected account as well.
👋 stepping in for river. Gimme a few mins to catchup
No probs, thanks for that.
So to clarify, Is acct_1KjGFE2X1kZsUyoD the account you are trying to test Apple Pay with Direct Charge?
Correct
2 things:
- When you are going to use Direct Charge, you should recreate a Standard Connect Account first. Custom Account is not eligible.
- You would need to make sure you created a Standard Connect Account in Live mode, connect to your Platform by a Live mode connection
Changing Connect Account type (Custom -> Standard) is a set with changing fund flows (Destination Charge -> Direct Charge). I assume you have a thorough reason for doing that
Now we realised we want to use direct charge type instead of destination charge type on connected accounts
Yeah the reason was refunds where we don't want to get deduct refund from platform account. So that's why we thought we can do direct charges on Custom accounts (without changing the type to Standard)
Documentation didn't say anything like that we can't use direct charge on Custom connected accounts though.
Yes it's not mentioned because it's technically possible, however it comes with a lot of disadvantages later (that I can name a few) that mostly you will face. So our advice is always stick with the set
For example when refund happens and your Connected account doesn't have enough balance it goes to negative balance. You will be responsible for negative balance on Custom/Express and it comes nearly impossible when you have thousands of them
or Radar can't be set on Custom/Express, then Direct Charges on them won't be protected
And addressing Dispute gonna be increasingly difficult via your Dashboard
A lot more
Basically Direct Charges mean the Payments belongs to each Connected Account. And Express/Custom doesn't have the full fledge support like a Standard Account so it always comes with limitation in the long run
So if we go along this path are we able to test the apple pay on test mode on test connected account?
No it's the same that you will need a Live Connected Account. I just pointed out the disadvantage of Direct Charges + Express/Custom
Cool. Can you please help me to fix why apple pay button not showing for our testing environment.
I have already registered the domain on live mode with live test account. The id is apwc_1L8GHP2Y844kHC6DSB2VYvXe
But I have registered the domain on test mode with test connected account as well. If that's conflicting with the domain I created on live mode, can you please remove the domain I created on test mode.
We already have a live Custom connected account.
Which is the Connected account again? apwc_1L8GHP2Y844kHC6DSB2VYvXe I see acct_1L3YmF2Y844kHC6D, correct?
Correct
To double check, do you have the request Id when you add the domain to that Account?
Unfortunately I couldn't record it.
Ahh actually but I can find it I think.
apwc_1L8EVI2X1kZsUyoDVuOPuQKx
This is the one. Let me delete it.
Okay I have deleted the domain registered on test account now.
Okie, now when you initialize stripe.js, do you use your Platform publishable key with a Stripe account?
Yes
And you can't see ApplePay button? Would you mind share me a public URL so I can test on my own?
Yeah I tried to add items from Backend but it won't work.
Do you have a barcode handy?
I can add it to our system
Do I need to add the domain under platform payment methods as well?
No I am thinking your current setup should be working
Don't have a barcode...
Let's find something in the internet
Okay cool.
Just register a random barcode and tell me the link
I am using it right? It doesn't automatically scan for me
Ahh it should be. Can you try the barcode in here. It's the same barcode.
Free MSI Generator: This free online barcode generator creates all 1D and 2D barcodes. Download the generated barcode as bitmap or vector image.
Same :/ It stucks at "Ready to scan"
Can you try this url then please
This is our staging env.
With above same barcode
Same :/ Is it about device type? I am trying with iPhone 8 and iPHone Xs