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.