#danmatthews

1 messages ยท Page 1 of 1 (latest)

glacial stratusBOT
spare peak
#

๐Ÿ‘‹

quasi cipher
#

Hello

#

Pasting your account ID so I don't have to keep typing it out: acct_1MIBtME4QxDnuq3v

spare peak
#

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

quasi cipher
#

IDs are safe to share, users cant do things without your secret key

spare peak
#

๐Ÿ‘

#

Sorry, don't know if you're off investigating or helping other folks! Just wondering if you know why this might be?

quasi cipher
#

Sorry, server is busy so I have been bouncing around a bit.

spare peak
#

No problem at all!

quasi cipher
#

Quick question, is this in test mode or live mode?

spare peak
#

It's in test mode

quasi cipher
#

Oh are you initiating this as the platform in that Screenshot?

spare peak
#

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

quasi cipher
#

Ah thank you

spare peak
#

if that's what you meant

#

ah good it was ๐Ÿ˜†

quasi cipher
#

Exactly what I meant! Thanks

spare peak
#

i'm slow today apologies

quasi cipher
#

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

spare peak
#

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,
        ]);
    }

quasi cipher
#

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?

spare peak
#

We do have it on both! Would that affect it?

quasi cipher
#

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

spare peak
#

I just mean is having it set up on our main domain AND whitelisted for the connected account - could it be a clash?

quasi cipher
#

There shouldn't be a clash, you should be able to register it on however many accounts

spare peak
#

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

ember osprey
#

Hello ๐Ÿ‘‹
Apologies for the delay

#

Let me grab a teammate to assist you with this

spare peak
#

no worries at all i know you're all busy

elder torrent
#

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.

spare peak
#

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?

elder torrent
#

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

spare peak
#

oh ok

#

I'll try that now, thank you!

elder torrent
#

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

spare peak
#

Gotcha, thanks for the explanation, really really helpful

#

That's worked! Thanks so much, makes a lot of sense now you've explained it.