#ajay bhalke-checkout-wallets

1 messages ยท Page 1 of 1 (latest)

real bolt
#

Hey. Checkout supports Apple Pay & Google Pay out of the box. Are those payment methods enabled on your account?

next pulsar
#

yes I see both ON here

real bolt
next pulsar
#

yes
I see only 1 option

#

ie. Turn on link with stripe

real bolt
#

Can you share your Stripe account ID please? (acct_xxx)

next pulsar
#

acct_1JjRQsBXPc1EmRGH

real bolt
#

Thanks, taking a look

next pulsar
#

any update?

real bolt
#

Sorry for the delay!

next pulsar
#

no issue
but got something?

real bolt
#

One moment

real bolt
#

Can you create a Checkout Session for me real quick?

next pulsar
#

I dont know what exactly you expecting

#

My code looks like this

$session = $this->stripe->checkout->sessions->create([
'success_url' => $base_app_url.'/payment/receive/status?session_id={CHECKOUT_SESSION_ID}',
'cancel_url' => $base_app_url.'/subscription-cancel',
'payment_method_types' => ['card'],
'line_items' => [
[
'price' => $request->subscription_package_id,
'quantity' => 1,
],
],
'mode' => 'subscription',
]);

real bolt
#

Yep, can you make that API call please

next pulsar
#

done

real bolt
#

Checking ๐Ÿ‘€

#

I see Google Pay

#

Do you have payment methods in your Google/Apple wallet?

next pulsar
#

I cant see

next pulsar
real bolt
#

Right, but you need to have a card in your Google Wallet

#

Same applies for Apple Pay

next pulsar
real bolt
#

No, in your actual Apple Wallet

next pulsar
#

oh
and how do we can link those to stripe?

near pecan
#

๐Ÿ‘‹ Jumping in for ynnoj here. Once they're in your wallet (whether Google or Apple), they'll appear as options when you try to checkout with Stripe Checkout (assuming that your Stripe account is set to allow those payment method types and configured properly). They're separate and you don't need to manually add individual cards on Stripe's side.

#

(they just need to be in the wallet on the client side)

next pulsar
#

I read it wont work on localhost with http
Needs https

And how can I use test details for testing Apple Pay and Google Pay?
Just like strip have demo test cards?

near pecan
#

Apple Pay and Google Pay don't support test cards so you add a real card to your wallet and then use your Stripe test mode keys. We'll know it's a test mode call and won't use your real card for any charges or anything.