#udzhin_dev
1 messages · Page 1 of 1 (latest)
hi! do you have a link to the page that has this problem so I can try in my own browser?
ah I don't have that installed
is Google Pay meant to work in Opera? is it Chrome only?
Should work there and there, but right now it only works on Google
Maybe I need to write something in <meta> or .htaccess?
not that I know of, have never heard of that being required for Google Pay
anyway it works fine for me in Chrome
I don't know if Opera is meant to work , that is news to me
Maybe I need to initialize my domain in the code itself?
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once DIR . '/../vendor/autoload.php';
require_once(DIR . '/../vendor/stripe/stripe-php/lib/Stripe.php');
// Установите ваш секретный ключ Stripe
// $stripe = new \Stripe\StripeClient('key');
\Stripe\Stripe::setApiKey('');
// $stripe->paymentIntents->create([
// 'amount' => 1099,
// 'currency' => 'chf',
// 'payment_method_types' => ['card'],
// ]);
$amount = $_GET['amount'];
$paymentIntent = \Stripe\PaymentIntent::create([
'amount' => $amount,
'currency' => 'chf',
'payment_method_types' => ['card'],
]);
// Получите clientSecret из созданного платежа
$clientSecret = $paymentIntent->client_secret;
// Отправьте clientSecret как ответ на запрос
echo json_encode(['clientSecret' => $clientSecret]);
no, there shouldnt' be any need for something like that
that code seems fine
like I said it works fine for me so I don't think there's anything in your code or set up that needs to change. It's likely something specific to Opera or your Google account. I really don't know or don't think Google Pay is ever meant to work in Opera — it requires you to be logged into a Google account in the browser so that the browser can access the cards in your Google account, that's a Chrome feature
note we only show the Google Pay button if you're in a browser that supports it and that has an active card in your wallet, it doesn't show the button otherwise.