#mikael.r

1 messages · Page 1 of 1 (latest)

ancient sigilBOT
honest edge
#

Hello! Not sure I understand, can you provide more details? Is this on the web? Are you using direct or destination charges? Are there errors in the console?

prime arch
#

destination charges

#

I create the payment intent with this

#

and im using stripe web elements on client side

honest edge
#

That's not a destination charge.

#

You're creating that Payment Intent on the connected account, so it's a direct charge.

#

Is that what you want to happen?

prime arch
#

no, this stripe_account_id is from my client, I get this value from stripe connected accounts dashboard

honest edge
#

What type of connected accounts are you using?

prime arch
#

standard

honest edge
#

Okay, so you should be creating direct charges.

#

What you're doing is correct.

#

Can you answer my other questions from above?

prime arch
#

I will record a video showing whats happen

honest edge
#

I don't need a video.

#

Can you tell me if there are errors in the console?

prime arch
#

no

honest edge
#

Is this on the web?

prime arch
#

yes

honest edge
#

Have you verified the Apple Pay domain name on the connected account in live mode?

prime arch
#

yes, i have added the apple pay certify file

honest edge
prime arch
#

This error is on test mode

#

And in live mode too

honest edge
#

Yep, but Apple Pay domains need to be added in live mode to make them work in both live and test mode.

#

Can you give me the connected account's ID?

prime arch
#

yes, sure

#

acct_1JykZvBlJT2mPkr4

honest edge
#

You only added the domain in test mode, and you're only connected to this account in test mode, so you won't be able to test Apple Pay.

#

You need a connected account where you're connected in live mode so you can validate the Apple Pay domain in live mode.

prime arch
#

I will try in live mode

#

Just a minute

honest edge
#

You won't be able to do it in live mode because you're not connected to this account in live mode. You need to establish a live mode connection first, then validate the Apple Pay domain.

prime arch
#

how i do it?

honest edge
#

You need a live mode connected account.

prime arch
#

with this account will work?

#

acct_1K4AusBEohQKy0xx

#

its necessary add this code?

#

\Stripe\Stripe::setApiKey("sk_live_••••••••••••••••••••••••");
\Stripe\ApplePayDomain::create([
  'domain_name' => 'example.com'
]);
honest edge
prime arch
#

so I need add this code too?


// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
$stripe = new \Stripe\StripeClient(
');

$stripe->accounts->retrieve('acct_xxxxxxxxx', []);
honest edge
#

You should probably roll your test key, this is a public server.

#

That code is not really relevant.

#

You need to specify the stripe_account you want to validate the Apple Pay domain on in your request to validate the Apple Pay domain.

prime arch
#

so i need add it on this code?


\Stripe\Stripe::setApiKey("sk_live_••••••••••••••••••••••••");
\Stripe\ApplePayDomain::create([
  'domain_name' => 'example.com'
]);
honest edge
#

Yes.

prime arch
#

I got it

#

thanks dude

#

God bless you

#

Please change the docs and add it more explicit

honest edge
#

Glad you got it working!