tcgunel/omnipay-iyzico
Composer 安装命令:
composer require tcgunel/omnipay-iyzico
包简介
Omnipay extension for Iyzico
关键字:
README 文档
README
Omnipay Iyzico Gateway
Omnipay gateway for Iyzico. All the methods of Iyzico implemented for easy usage.
Requirements
| PHP | Package |
|---|---|
| ^8.3 | v2.x |
Installation
composer require tcgunel/omnipay-iyzico
Usage
$gateway = Omnipay::create('Iyzico'); $gateway->setPublicKey('your-public-key'); $gateway->setPrivateKey('your-private-key'); $gateway->setTestMode(true); // sandbox
Methods
Payment Services
purchase($options)— Direct charge (non-3DS) or 3D Secure enrolmentcompletePurchase($options)— Complete a 3DS checkout form paymentverifyEnrolment($options)— Verify 3DS bank callback (local check, no HTTP)paymentInquiry($options)— Query payment status bypaymentId/conversationIdcheckoutForm($options)— iyzico hosted checkout formcheckoutFormInquiry($options)— Query hosted checkout form statuspayWithIyzico($options)— Pay with iyzico walletbinLookup($options)— BIN / installment lookup
Refund & Cancel
-
refund($options)— Refund a captured payment viaPOST /v2/payment/refund. AcceptspaymentId(top-level) +price+currency; iyzico auto-selects the sub-transaction. Supports partial and full refunds.$response = $gateway->refund([ 'paymentId' => 'iyzico-payment-id', 'amount' => '12.34', 'currency' => 'TRY', 'language' => 'tr', 'clientIp' => request()->ip(), ])->send(); $response->isSuccessful(); // true / false $response->getMessage(); // error message on failure $data = $response->getData(); // RefundResponseModel
-
cancel($options)— Void a same-day payment viaPOST /payment/cancel. Full void only (no partial amounts); operates onpaymentId. Only valid before settlement.$response = $gateway->cancel([ 'paymentId' => 'iyzico-payment-id', 'language' => 'tr', 'clientIp' => request()->ip(), ])->send(); $response->isSuccessful(); $data = $response->getData(); // CancelResponseModel
Tests
composer test
For Windows:
vendor\bin\paratest.bat
Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you'll be creating employment for local families and restoring wildlife habitats.
统计信息
- 总下载量: 972
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-14