#adil

1 messages · Page 1 of 1 (latest)

tiny ingotBOT
jaunty hull
#

Hello! Can you provide more details? What exactly are you trying to do, and what Stripe Products or APIs are you using?

eager lake
#

I have tried this but did not work $session = Session::create([
'payment_method_types' => ['card', 'gpay'],
'line_items' => [
[
'price_data' => [
'currency' => 'usd',
'unit_amount' => 2000,
'product_data' => [
'name' => 'Example Product',
],
],
'quantity' => 1,
],
],
'mode' => 'payment',
'success_url' => 'https://example.com/success',
'cancel_url' => 'https://example.com/cancel',
]);

#

I want two payment option enable card pay and google pay

jaunty hull
#

Ah, okay, so you're trying to get the Google Pay button to show up in Stripe Checkout?

eager lake
#

Yes

#

How to achieve that?

jaunty hull
#

There's no gpay option under payment_method_types. Google Pay is a subset of the card type, so you don't need to specify anything more than that in the Checkout Session.

eager lake
#

So how to enabe the gpay

jaunty hull
#

Switch to live mode in the Dashboard if you're trying to do this in live mode.

eager lake
#

Yes in test mode it ia always availabel

#

BUt checkout page no gpay shows only shows card

jaunty hull
#

Can you give me the URL of one of your Checkout Sessions where you expect Google Pay to appear?

jaunty hull
#

Ah, I don't believe Google Pay on Stripe is supported in India. Let me confirm that...

eager lake
#

Okay