#viraths-applepay

1 messages · Page 1 of 1 (latest)

gusty cliff
#

👋 Happy to help

unborn violet
gusty cliff
unborn violet
#

Ahh okay. Let me try with live key then.

#

Thanks for the info.

gusty cliff
#

No problem! Happy to help 🙂

unborn violet
#

Does that mean you have to register the domain on live mode connect account.

gusty cliff
#

Yes, with live mode account created using live secret key

unborn violet
#

Then do we want to add the domain on test mode for test connected account as well for testing.

gusty cliff
#

Test mode connected account will not work for Apple Pay

unborn violet
#

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.

gusty cliff
#

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

unborn violet
#

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.

gusty cliff
#

Can you share the request ID (req_xxx) that threw the error?

unborn violet
#

Ahh how do I get the request id?

gusty cliff
#

Or can you share the connected account ID that you tried to register Apple Pay domain with?

unborn violet
#

acct_1KjGFE2X1kZsUyoD

gusty cliff
#

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.

unborn violet
#

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.

neat robin
#

👋 stepping in for river. Gimme a few mins to catchup

unborn violet
#

No probs, thanks for that.

neat robin
#

So to clarify, Is acct_1KjGFE2X1kZsUyoD the account you are trying to test Apple Pay with Direct Charge?

unborn violet
#

Correct

neat robin
#

2 things:

  1. When you are going to use Direct Charge, you should recreate a Standard Connect Account first. Custom Account is not eligible.
  2. 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

unborn violet
#

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.

neat robin
#

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

unborn violet
#

So if we go along this path are we able to test the apple pay on test mode on test connected account?

neat robin
#

No it's the same that you will need a Live Connected Account. I just pointed out the disadvantage of Direct Charges + Express/Custom

unborn violet
#

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.

neat robin
#

Which is the Connected account again? apwc_1L8GHP2Y844kHC6DSB2VYvXe I see acct_1L3YmF2Y844kHC6D, correct?

unborn violet
#

Correct

neat robin
#

To double check, do you have the request Id when you add the domain to that Account?

unborn violet
#

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.

neat robin
#

Okie, now when you initialize stripe.js, do you use your Platform publishable key with a Stripe account?

unborn violet
#

Yes

neat robin
#

And you can't see ApplePay button? Would you mind share me a public URL so I can test on my own?

unborn violet
#

Try this on safari on iphone

neat robin
#

It tells me to scan barcode

#

How do I reach the Payment page?

unborn violet
#

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?

neat robin
#

No I am thinking your current setup should be working

#

Don't have a barcode...

#

Let's find something in the internet

unborn violet
#

Okay cool.

neat robin
#

Just register a random barcode and tell me the link

unborn violet
#

Try this

#

or this one

neat robin
#

I am using it right? It doesn't automatically scan for me

unborn violet
#

Ahh it should be. Can you try the barcode in here. It's the same barcode.

neat robin
#

Same :/ It stucks at "Ready to scan"

unborn violet
#

This is our staging env.

#

With above same barcode

neat robin
#

Same :/ Is it about device type? I am trying with iPhone 8 and iPHone Xs

unborn violet
#

Hmm may be that barcode is not working.

#

Try this pelase

#

Sorry I should have checked the previous barcode on my end.

neat robin
#

I do see an Apple Pay button

#

and tap into it display the Apple UI

unborn violet
#

Ahh okay. That's weird I can't see it on my end.

#

Okay thanks for your help.

neat robin
#

Hope that helps! I do see the button but when I click on it, the Apple UI is displayed but auto-closed while it's still "processing"

#

So I think the domain setup is correct but the logic to process has something off

#

If you have further questions feel free to ask in the channel!