yasinkuyu/omnipay-paycell-sdk
Composer 安装命令:
composer require yasinkuyu/omnipay-paycell-sdk
包简介
Turkcell Paycell SDK gateway for Omnipay payment processing library
README 文档
README
Turkcell Paycell SDK gateway for Omnipay payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 8.1.x. This package implements Turkcell Paycell SDK support for Omnipay.
Important Notes
- Please review Paycell SDK Documentation before starting integration
- Check "Service Access and General Information" section for critical integration points
- This package uses RESTful JSON service examples
- For integration support: paycelldev@paycell.com.tr
Installation
composer require league/omnipay yasinkuyu/omnipay-paycell-sdk
Required additional dependencies:
composer require php-http/curl-client guzzlehttp/psr7 php-http/message
Test Mode
To enable test mode, set the following in your initialization:
$gateway->setTestMode(true); // For test environment $gateway->setTestMode(false); // For production environment
Test mode uses different endpoints and credentials:
- Test URL: https://websdktest.turkcell.com.tr
- Production URL: https://paycellsdk.paycell.com.tr
Test Environment Credentials
- Application name: PAYCELLTEST
- Application password: PaycellTestPassword
- Secure code: PAYCELL12345
- Eulaid: 17
- Merchant Code: 9998
- Terminal Code: [Get from Paycell]
Basic Usage
- Navigate to example directory:
cd /YOUR-COMPOSER-PATH/vendor/yasinkuyu/omnipay-paycell-sdk/example
-
Copy
init.php.exampletoinit.php -
Start test server:
php -S localhost:8000
- Open test page in browser:
http://localhost:8000/purchase.php
Initialize Gateway
use Omnipay\Omnipay; $gateway = Omnipay::create('PaycellSDK'); $gateway->setTestMode(true); // Enable test mode $gateway->setApplicationName('PAYCELLTEST'); $gateway->setApplicationPwd('PaycellTestPassword'); $gateway->setSecureCode('PAYCELL12345'); $gateway->setEulaID(17); $gateway->setMerchantCode(9998); $gateway->setTerminalCode('XXXXXXXXX');
Process Purchase
$transactionDateTime = date('YmdHis') . substr(microtime(), 2, 3); $gateway->setReferenceNumber($transactionDateTime); $gateway->setHostAccount("customer@email.com"); $gateway->setPaymentSecurity("NON_THREED_SECURE"); // or "THREED_SECURE" $gateway->setLanguage("tr"); $response = $gateway->purchase([ 'amount' => '10.00', 'currency' => 'TRY', ])->send(); if ($response->isSuccessful()) { echo "Payment successful!"; // Get tracking URL for redirect $trackingUrl = $response->getTrackingUrl(); }
Query Transaction Status
$response = $gateway->query([ 'originalPaymentReferenceNumber' => $paymentReferenceNumber, ])->send(); if ($response->isSuccessful()) { echo "Transaction status: " . $response->getMessage(); }
Process Refund
$response = $gateway->refund([ 'amount' => '10.00', 'currency' => 'TRY', 'originalPaymentReferenceNumber' => $paymentReferenceNumber, ])->send();
Process Reverse (Cancel)
$response = $gateway->reverse([ 'originalPaymentReferenceNumber' => $paymentReferenceNumber, ])->send();
Supported Methods
- Purchase (Regular and 3D Secure)
- Query Transaction Status
- Refund
- Reverse (Cancel)
Test Cards
For test credit cards, visit: https://paycell.com.tr/test-kredi-kartlari
System Requirements
- PHP >= 8.1.0
- Composer
- PHP cURL extension
Support
- For general questions, use Stack Overflow with the
omnipaytag - Report bugs via GitHub Issues
- Technical support: paycelldev@paycell.com.tr
Documentation
For detailed integration information and API documentation, please visit Paycell SDK Documentation.
License
The MIT License (MIT). Please see License File for more information.
Other Omnipay Packages
Here are some other Omnipay payment gateway implementations developed by the same author:
-
Omnipay: NestPay
NestPay (İş Bankası, Akbank, Finansbank, Denizbank, Kuveyt Türk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası, Tekstilbank, Şekerbank, Türk Ekonomi Bankası) gateway for Omnipay payment processing library. -
Omnipay: Paycell API
Turkcell Paycell API gateway for Omnipay payment processing library. -
Omnipay: Iyzico
Iyzico payment gateway for Omnipay payment processing library. -
Omnipay: Paratika
Paratika (Asseco) payment gateway for Omnipay payment processing library. -
Omnipay: Posnet
Yapı Kredi Posnet payment gateway for Omnipay payment processing library. -
Omnipay: GVP
Garanti Virtual POS (GVP) payment gateway for Omnipay payment processing library. -
Omnipay: BKM Express
BKM Express payment gateway for Omnipay payment processing library. -
Omnipay: PayTR
PayTR payment gateway for Omnipay payment processing library.
For more information and documentation, visit the respective GitHub repositories.
yasinkuyu/omnipay-paycell-sdk 适用场景与选型建议
yasinkuyu/omnipay-paycell-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 01 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「pay」 「gateway」 「merchant」 「omnipay」 「sanal pos」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 yasinkuyu/omnipay-paycell-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 yasinkuyu/omnipay-paycell-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 yasinkuyu/omnipay-paycell-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Библиотека для приема платежей через Альфабанк.
Some pre-defined rules for validation in Omnipay payment processing library.
BluePay gateway for the Omnipay payment processing library
支付宝接口扩展包
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-10