#ajay bhalke-card-last4

1 messages · Page 1 of 1 (latest)

viscid sky
weak totem
#

but this is for client side right?
I have already developed using session
so there no any chance get it?

viscid sky
#

Are you working with a particular object? The Checkout Session object?

weak totem
#

yes

#

Checkout Session object

viscid sky
#

Ok, great! You can expand the payment_intent field to retrieve the full Payment Intent (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent), and then expand the payment_method object on the Payment Intent object (https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)

#

Are you using one of our libraries? I can share some sample code

weak totem
#

my code looks like below

$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',
'line_items' => [
[
'price' => 'price_xxx',
'quantity' => 1,
],
],
'mode' => 'subscription',
]);

#

and please share code
It will be very helpful

viscid sky
#

You'll need to retrieve the Checkout Session object (with the ID) and expand a few fields:

stripe->checkout->sessions->retrieve('cs_test_xxx', [
  'expand' => ['payment_intent.payment_method']
]);
weak totem
#

thank you

#

my checkout session dont show google pay and apple pay button
what can be issue?

settings are ON for both

viscid sky
#

Do you have an active card in either your Apple or Google wallet?

weak totem
#

I have setup stripe fake card (4242424242424242) in chrome settings cards
I can see payment request button on client side using stripe.js
but I want it in checkout session

viscid sky
weak totem
#

only real cards works?
not stripe testing cards?

viscid sky
#

Yes, but as I said we don't actually use the real card data – we swap them out

weak totem
#

ok thank you

viscid sky
#

Np!

weak totem
#

I have added that file into our website main domain and subdomain for Apple Pay button

location /.well-known

and after that added domain in stripe too
but how can I know that its verified?

viscid sky
#

You don't need to add a Apple Pay domain if you're using Checkout

weak totem
#

sure
but for client side button I am looking for

viscid sky
#

Ah, with the Payment Request Button?

weak totem
#

yes

#

my Google Pay button is visible but not Apple Pay
I am not sure if I added it wrong in wallet or stripe not verified it

viscid sky
#

If you were able to add the domain in the Dashboard, it would be verified during that flow

weak totem
#

oh thats great
thanks for all help

viscid sky
#

Np!