#mikael.r
1 messages · Page 1 of 1 (latest)
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?
destination charges
I create the payment intent with this
and im using stripe web elements on client side
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?
no, this stripe_account_id is from my client, I get this value from stripe connected accounts dashboard
What type of connected accounts are you using?
standard
Okay, so you should be creating direct charges.
What you're doing is correct.
Can you answer my other questions from above?
yep
I will record a video showing whats happen
no
Is this on the web?
yes
Have you verified the Apple Pay domain name on the connected account in live mode?
yes, i have added the apple pay certify file
To clarify, you've validated it on the connected account in live mode? Meaning you've done the steps here, but with the Stripe-Account header? https://stripe.com/docs/elements/express-checkout-element/accept-a-payment#verify-domain
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?
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.
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.
how i do it?
You need a live mode connected account.
with this account will work?
acct_1K4AusBEohQKy0xx
its necessary add this code?
\Stripe\Stripe::setApiKey("sk_live_••••••••••••••••••••••••");
\Stripe\ApplePayDomain::create([
'domain_name' => 'example.com'
]);
That account is connected to your platform in live mode, so that part will work. The code above needs to have the stripe_account added as documented here: https://stripe.com/docs/connect/authentication#stripe-account-header
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', []);
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.
so i need add it on this code?
\Stripe\Stripe::setApiKey("sk_live_••••••••••••••••••••••••");
\Stripe\ApplePayDomain::create([
'domain_name' => 'example.com'
]);
Yes.
I got it
thanks dude
God bless you
Please change the docs and add it more explicit
Glad you got it working!