tcgunel/omnipay-pttakilliesnaf
Composer 安装命令:
composer require tcgunel/omnipay-pttakilliesnaf
包简介
Omnipay extension for Ptt Akıllı Esnaf Sanal POS
关键字:
README 文档
README
/** @var \Omnipay\PttAkilliEsnaf\Gateway $gateway */ $gateway = \Omnipay\Omnipay::create('PttAkilliEsnaf'); $gateway ->setTestMode(true) ->setClientId('1000000032') ->setApiUser('Entegrasyon_01') ->setApiPass('gkk4l2*TY112'); $options = [ 'transactionId' => 'abc87264872642zzzz', 'amount' => 600, 'installment' => 1, 'card' => [ // You can supply \Omnipay\Common\CreditCard object here. 'firstName' => 'Example', 'lastName' => 'User', 'number' => '4159560047417732', 'expiryMonth' => '08', 'expiryYear' => '2024', 'cvv' => '123', 'billingAddress1' => '123 Billing St', 'billingAddress2' => 'Billsville', 'billingCity' => 'Billstown', 'billingPostcode' => '12345', 'billingState' => 'CA', 'billingCountry' => 'TR', 'billingPhone' => '5554443322', 'shippingAddress1' => '123 Shipping St', 'shippingAddress2' => 'Shipsville', 'shippingCity' => 'Shipstown', 'shippingPostcode' => '54321', 'shippingState' => 'NY', 'shippingCountry' => 'TR', 'shippingPhone' => '5554443322', ], 'clientIp' => '127.0.0.1', 'items' => [ // You can supply \Omnipay\Common\ItemBag here. [ 'name' => 'Perspiciatis et facilis tempore facilis.', 'description' => 'My notion was that she was talking. \'How CAN I have done that?\' she thought. \'I must be a LITTLE larger, sir, if you like,\' said the King and Queen of Hearts, carrying the King\'s crown on a.', 'quantity' => 6, 'price' => 100, ], ], 'secure' => true, 'returnUrl' => 'http://localhost/return.php', ]; /** @var \Omnipay\PttAkilliEsnaf\Message\PurchaseResponse $response */ $response = $gateway->purchase($options)->send(); if ($response->isRedirect()) { // Does form submit to provider. Will return to returnUrl or cancelUrl. $render = $response->getRedirectResponse(); echo $render; } else { var_dump($response->getData()); var_dump($response->isSuccessful()); }
3D ile Ödeme
/** @var \Omnipay\PttAkilliEsnaf\Gateway $gateway */ $gateway = \Omnipay\Omnipay::create('PttAkilliEsnaf'); $gateway ->setTestMode(true) ->setClientId('1000000032') ->setApiUser('Entegrasyon_01') ->setApiPass('gkk4l2*TY112'); /** @var \Omnipay\PttAkilliEsnaf\Message\VerifyEnrolmentRequest $verify */ $verify = $gateway->verifyEnrolment(); $verify ->setTransactionId('abc87264872642zzzz') ->setMdStatus($_POST['MdStatus']) ->setBankResponseCode($_POST['BankResponseCode']) ->setBankResponseMessage($_POST['BankResponseMessage']) ->setRequestStatus($_POST['RequestStatus']) ->setHashParameters($_POST['HashParameters']) ->setHash($_POST['Hash']); $verify_response = $verify->send(); var_dump($verify_response->getData()); if ($verify_response->isSuccessful()){ var_dump(true); }else{ var_dump(false); }
tcgunel/omnipay-pttakilliesnaf 适用场景与选型建议
tcgunel/omnipay-pttakilliesnaf 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 102 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「gateway」 「omnipay」 「3d secure」 「ödeme」 「ptt akıllı esnaf」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tcgunel/omnipay-pttakilliesnaf 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tcgunel/omnipay-pttakilliesnaf 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tcgunel/omnipay-pttakilliesnaf 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Yandex.Kassa driver for Omnipay payment processing library
Some pre-defined rules for validation in Omnipay payment processing library.
BluePay gateway for the Omnipay payment processing library
Client library to send SMS using Comilio SMS Gateway API (https://www.comilio.it)
统计信息
- 总下载量: 102
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-08