php - codegniter 3 莫莉问题
问题描述
我正在尝试在 codeIgniter 中集成 mollie 支付网关
但它给了我这个错误
你好世界
遇到 PHP 错误 严重性:警告
消息:包括(/home/public_html/vendor/composer/../../src/MollieApiClient.php):无法打开流:没有这样的文件或目录
文件名:composer/ClassLoader.php
行号:480
回溯:
文件:/home/public_html/vendor/composer/ClassLoader.php 行:480 功能:_error_handler
文件:/home/public_html/vendor/composer/ClassLoader.php 行:480 功能:包含
文件:/home/public_html/vendor/composer/ClassLoader.php 行:346 功能:Composer\Autoload\includeFile
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
use Mollie\Api\MollieApiClient;
echo '<p>Hello World</p>';
include_once('vendor/autoload.php');
$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setApiKey("test_APiKEY");
echo '<p>Hello World</p>';
$payment = $mollie->payments->create([
"amount" => [
"currency" => "EUR",
"value" => "123.00"
],
"description" => "My first API payment",
"redirectUrl" => "https://webshop.example.org/order/12345/",
"webhookUrl" => "https://webshop.example.org/mollie-webhook/",
]);
header("Location: " . $payment->getCheckoutUrl() );
echo '<p>Hello World</p>';
?>
</body>
</html>
解决方案
推荐阅读
- javascript - React useState 不更新值
- azure - Microsoft 身份验证库 (MSAL) loginPopup:错误“提供的请求必须包含 'client_secret' 输入参数。|
- javascript - Javascript await Promise 使页面崩溃
- javascript - 调整窗口大小后,slideToggle 的“显示”属性仍然存在
- python - 如何使用带有 x_train 和 y_train 变量数据的神经网络的 python 生成器?
- php - 不明白为什么我必须使用 json_decode 两次。Laravel 迁移和模型
- html - 带有小部件菜单的基于 Hugo 的网站也是下拉菜单?
- jquery - 传单 - 特征数据不会实时更新
- mysql - MySQL:子查询检查超过 14000 行的子查询优化问题
- spring-boot - 由于 lombok,Gradle 构建失败