#danmatthews
1 messages ยท Page 1 of 1 (latest)
๐
Hello
Pasting your account ID so I don't have to keep typing it out: acct_1MIBtME4QxDnuq3v
sorry i should have done that, never know if it's sensitive info or not though
I think that's the connected account ID of our customer
IDs are safe to share, users cant do things without your secret key
๐
Sorry, don't know if you're off investigating or helping other folks! Just wondering if you know why this might be?
Sorry, server is busy so I have been bouncing around a bit.
No problem at all!
Quick question, is this in test mode or live mode?
Oh are you initiating this as the platform in that Screenshot?
This is me pinging the API to make sure it'd registered the domain
ooh sorry not sure i know what you mean there
we're using test keys yeah
this.stripe = Stripe("{{config('services.stripe.public_key')}}", {stripeAccount: '{{$stripe_account_id}}'});
We're initiating it as a connect account like this
Ah thank you
Exactly what I meant! Thanks
i'm slow today apologies
Gotcha
No worries, not at all
So apple pay domain registration is very specific in how you have to do this here at the moment
One sec finding the doc
But basically you have to register the domain from the platform account as the connected account via the API
Registering directly on the connected account doesn't work at the moment
I think we are doing that
This is our handler function in our whitelisting queued job
public function handle()
{
Stripe::setApiKey(config('services.stripe.secret_key'));
ApplePayDomain::create([
'domain_name' => config("app.domain"),
], [
'stripe_account' => $this->stripeAccountId,
]);
}
Interesting, that should be what is required to register it properly here
Though on our side it does look like the domain is registered directly on the account
Would you mind removing this domain from the connected account and re-registering it like that?
We do have it on both! Would that affect it?
I'd say do it on just the test domain at the moment though from what I can see you would have to do this too with the live mode domain if this works
I just mean is having it set up on our main domain AND whitelisted for the connected account - could it be a clash?
There shouldn't be a clash, you should be able to register it on however many accounts
Yeah we're still not sure what's going on!
This is our form, we've disconnected the other stripe account and just connected a test one using the test keys we're using.
and submitted another whitelisting request for that test account
acct_1MTS15Ckw5TkWYh5
no worries at all i know you're all busy
you need to make that API call with a livemode secret key, not test mode.
the ApplePayDomain::create call. Looks like you registered in test mode, which won't work(the Apple Pay button will only appear if you're looking at the page in a device that uses Apple's sandbox testing feature).
The issue is that you only have test mode access to that connected account(so making a call with a livemode key will fail); in general it can sometimes be impossible to test Apple Pay+Connect because the registration has to be done in live mode. If you have a live mode connected account connected to your platform you could register the domain in live mode on that.
We have a live mode connected account, but we're using dev/test keys on our dev domain
so we wouldn't be able to make payments with those, would we?
through apple pay, i mean.
So our best bet might just be to push it to live and it should work?
well to be clear, if you have livemode access to the account and can make the domain registration API call in livemode, then both live or test mode payments would work
it's the registration that has to be in livemode, which is so that we can register it on Apple's side in their 'production' registry that normal devices check(otherwise it's only done in their sandbox registry ). In this case acct_1MTS15Ckw5TkWYh5 is entirely a test mode account with no ability to use live mode(which is normal enough, you're not doing anything wrong there). In that scenario it's unfortunately impossible to properly test Apple Pay + Connect