1> 我在 Stripe 中有一个带项目符号的产品描述。我想将每个要点分别显示在一行中。
但是 Stripe 把所有点都显示成一条线。该如何解决这个问题?
2> 另外,我想更改描述下的按钮文本。
我使用 Stripe 嵌入式表单付款。对于信用卡付款,它显示一键结账选项。
我如何隐藏此选项?我检查了仪表板设置中的卡支付。但我没有找到任何选项。
我想提供 3 种订阅产品并让客户选择其中一种。
以下是创建结帐会话的 PHP 代码。
$result = $stripe->checkout->sessions->create([
'mode' => 'subscription',
'line_items' => [
[
'price' => 'price_ddd',
'quantity' => 1,
],
[
'price' => 'price_eee',
'quantity' => 1,
],
[
'price' => 'price_fff',
'quantity' => 1,
],
],
'customer_email' => $useremail,
'subscription_data' => ['trial_period_days' => 14, 'trial_settings' => ['end_behavior' => ['missing_payment_method' => 'cancel']],],
'ui_mode' => 'embedded',
'payment_method_collection' => 'if_required',
'return_url' => site_url("billing/callback") . "?session_id={CHECKOUT_SESSION_ID}"
]);
我需要客户从 3 种产品中选择产品。它不提供选择选项。它只显示 3 种产品。
如何让它选择产品?
我已经使用下载的 zip 文件安装了 CodeIgniter。我正在尝试将 Google 登录集成到应用程序中。
我已经使用如下代码包含了 google-php-client。
<?php namespace App\Controllers;
include_once(APPPATH.'Libraries/google-api-php-client/vendor/autoload.php');
include_once(APPPATH.'Libraries/google-api-php-client/src/Client.php');
use CodeIgniter\Controller;
use Google\Client;
class Account extends Controller{
当我运行该应用程序时,浏览器会显示。
该页面现在无法工作,localhost 目前无法处理该请求。
php 错误日志显示
[2024 年 12 月 28 日 10:26:17 UTC] PHP 15. include_once() D:\wamp64\www\michelm\system\Autoloader\Autoloader.php:317
[2024 年 12 月 28 日 10:26:17 UTC] PHP 致命错误:未捕获错误:未在 D:\wamp64\www\michelm\system\Config\Services.php:405 中找到类“CodeIgniter\Log\Logger”
它还表明
[2024 年 12 月 28 日 10:26:17 UTC] PHP 致命错误:CodeIgniter\Log\Logger::emergency(Stringable|string $message, array $context = []) 的声明:void 必须与 D:\wamp64\www\michelm\system\Log\Logger.php 第 162 行中的 Psr\Log\LoggerInterface::emergency($message, array $context = []) 兼容
如何修复此问题。