Generated Computers
Locals: an Apple Silicon engine that runs local LLMs up to 3x faster. A product of Generated Computers.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证ING Pay payment gateway client for plain PHP
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A client for the ING Pay payment gateway, written in plain PHP with no framework
dependency. Using Laravel? Install routegroup/laravel-ing-pay instead.
Documentation: https://php-ing-pay.routegroup.pl
PHP 8.4 or newer. Add the package, and Guzzle to send its requests:
composer require routegroup/php-ing-pay guzzlehttp/guzzle
use Routegroup\IngPay\Api;
use Routegroup\IngPay\Api\CreateTransactionRequest;
use Routegroup\IngPay\Http\Psr18Client;
use Routegroup\IngPay\Lib\Config;
use Routegroup\IngPay\Lib\Url;
use Routegroup\IngPay\Types\Currency;
use Routegroup\IngPay\Types\Environment;
use Routegroup\IngPay\Types\PaymentMethod;
use Routegroup\IngPay\Types\PaymentMethodCode;
$config = new Config(
merchantId: 'your-merchant-id',
serviceId: 'your-service-id',
serviceKey: 'your-service-key',
apiKey: 'your-api-key',
env: Environment::SANDBOX,
);
$api = new Api(Psr18Client::guzzle(), $config, new Url($config));
$response = $api->createTransaction(new CreateTransactionRequest([
'amount' => 4999,
'currency' => Currency::PLN,
'orderId' => 'ORDER-1042',
'paymentMethod' => PaymentMethod::PAY_BY_LINK,
'paymentMethodCode' => PaymentMethodCode::ING,
'successReturnUrl' => 'https://shop.example/orders/1042/paid',
'failureReturnUrl' => 'https://shop.example/orders/1042/failed',
'customer' => ['firstName' => 'Anna', 'lastName' => 'Kowalska', 'email' => '[email protected]'],
]));
$response->transaction->id;
The documentation covers the paywall, payment links, the card widget, notifications, refunds and testing.
composer test runs the same lint, type and test gate as CI, for example
docker compose run --rm app composer test.
MIT. See LICENSE.md.