#danielncr - Apple Pay
1 messages · Page 1 of 1 (latest)
Apple Pay buttons will actually always show up in private mode. Apple Pay actually isn't supported at all in private mode but they make the button appear to mess with certain kinds of malicious testing
So, it sounds like something about the apple pay setup for your site is off. Happy to help troubleshoot
Thanks. I've done all the setup as far as I know.
As a quick test, can you see the ApplePay button on this site in Safari in non-private mode https://stripe.com/docs/stripe-js/elements/payment-request-button
Here's the page: https://newsrevenuehub.fundjournalism.org
Yes, I can see the apple pay button on the link you provided.
Here's the domain registration:
"created": 1659501762,
"domain_name": "newsrevenuehub.fundjournalism.org",
"id": "apwc_1LSZPqCx6MKztsJaaTDrziwb",
"livemode": true,
"object": "apple_pay_domain"
},```
I actually don't see that button on that page at all all, even in private mode.
And I don't see the google pay button either in Chrome.
Weird, I can see it in private Safari now but not with Chrome. So you are using our payment request code but your own custom button
That shouldn't affect this, just noting it
It does look like the apple pay domain is set up correctly from what I can see
Yeah, that confuses me. Do I have cookies that you don't have? I can clear those and see if the buttons stop appearing for me.
This page is working directly with your main account, correct? You aren't using connected accounts?
This is a connected account.
Can you send me the account ID?
Here's the connected account: acct_1KPCZOCx6MKztsJa
Thank you
And here's the Connect account (what do you call that?): acct_1ASCSHBMAMOLTEak
Ah there we go, the domain isn't set up for connect. This can be especially precise. Looking in to your setup here
This is the code I ran for that: stripe.ApplePayDomain.create(domain_name='newsrevenuehub.fundjournalism.org', stripe_account='acct_1KPCZOCx6MKztsJa')
Using the live Stripe key from the Connect account.
Thanks, still looking in to this. Things are set up correctly in the first few places that I know to look but I am still looking
👍
I need to step away from the keyboard for a bit. Is it okay if I check in here in a little while?
Sounds good to me. Apologies this is taking a bit, I got busy with other threads.
If you want to move this off of discord, you can write in to our support team with this info. I can grab the ticket and respond to you there https://support.stripe.com/?contact=true
I created a ticket yesterday.
Can you DM me your email? I can check in to it and grab it if a colleague hasn't
Ah I think I might see what it is
cool
I think you need to initialize Stripe.js as you are now but you need to pass this account when initializing Stripe.js so that we initialize our code as your connected account https://stripe.com/docs/js/initializing#init_stripe_js-options-stripeAccount
var stripe = Stripe('pk_test_123', {stripeAccount: 'acct_1KPCZOCx6MKztsJa'});
Would that only affect Apple/Google Pay? Because regular card payments are working fine.
It affects what account your API calls are being executed on. So actually all of the payments going through this page so far have been happening directly on your platform instead of on your connected account
Actually, taking a quick step back, is your end goal for your connected account to take payments itself, or for your platform to take payments and then transfer funds to the connected account
I
The reason apple pay is currently not showing up is that your connected account has this domain registered but not your platform account. If you want the platform to take these payments, you will need to register this domain on the platform account. If you want the connected account to take payments, you will want to add that param when initializing stripe.js
I'm not sure I understand the distinction, but what we want is for us to use a single Connect API key to take payments for all of our connected accounts.
You can do that in either scenario, the distinction is how you want the funds to flow. Do you want the payments to be made to your platform which sends money to the connected account, or for the payments to be made to your connected account and your platform takes a fee?
We don't want to take a fee.
I guess I don't understand Connect well. As it is now when we take a regular credit card payment the payment shows up in the connected account. How would it be different if we were using the other method?
It affects how the payment shows up to the user and how refunds work, etc. Here because you want the payment to go directly to the connected account, your setup is correct, you just need to add that stripeAccount code when initializing stripe on the client