sipay-tr/sipay-php-sdk
最新稳定版本:v1.0.0
Composer 安装命令:
composer require sipay-tr/sipay-php-sdk
包简介
PHP SDK for the Sipay API
关键字:
README 文档
README
Sipay, is a payment gateway that provides a secure and easy-to-use payment infrastructure.
This package is a PHP SDK for the Sipay API.
Important: This package is still in development. Please use it with caution and report any issues you encounter.
Requirements
- PHP 7.4+
- ext-curl, ext-json, ext-openssl extensions
Installation
Run the following command under your project to install the package via Composer
composer require sipay-tr/sipay-php-sdk
Getting Started
You can create a new instance of the Sipay class by passing the required parameters to the constructor. You can find the required parameters in the sample code below.
$sipayOptions = new \Sipay\SipayOptions( '<API KEY>', '<API SECRET>', '<MERCHANT KEY>', '<MERCHANT ID>', 'https://app.sipay.com.tr/ccpayment' ); $sipay = new Sipay($sipayOptions);
Note: For Test API server and credentials, you can check the Sipay API Documentation
Examples
Included in the project are a number of examples that cover almost all use-cases. Refer to the samples folder for more info.
Testing
You can run the tests as following command below:
./vendor/bin/phpunit
To run a test file, you can use the following example command:
.vendor/bin/phpunit tests/Sipay/Resources/TokenTest.php
To run a test method in test file, you can use the following example command:
./vendor/bin/phpunit --filter testRetrieveWithSuccessfulResponse tests/Sipay/Resources/CardListTest.php
统计信息
- 总下载量: 328
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-23