#adil
1 messages · Page 1 of 1 (latest)
Hello! Can you provide more details? What exactly are you trying to do, and what Stripe Products or APIs are you using?
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
Ah, okay, so you're trying to get the Google Pay button to show up in Stripe Checkout?
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.
So how to enabe the gpay
Do you have Google Pay turned on in your Dashboard here (test mode link)? https://dashboard.stripe.com/test/settings/payment_methods
Switch to live mode in the Dashboard if you're trying to do this in live mode.
Yes in test mode it ia always availabel
BUt checkout page no gpay shows only shows card
Can you give me the URL of one of your Checkout Sessions where you expect Google Pay to appear?
Ah, I don't believe Google Pay on Stripe is supported in India. Let me confirm that...
Okay