camoo/smobilpay-php
Composer 安装命令:
composer require camoo/smobilpay-php
包简介
Smobilpay Third Party (S3P) API client for PHP
关键字:
README 文档
README
Php library for the Smobilpay S3P API
It requires PHP version 5.5+
Getting Started
Composer
To install the library via Composer, add composer.json:
{
"require": {
"maviance/smobilpay-php": "*"
}
}
Usage
The official API documentation can be found at : https://apidocs.smobilpay.com
Samplecode to call account details:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // inject credentials $token = "public access key"; $secret = "access secret"; $url = "https://XXXXX"; $xApiVersion = "3.0.0"; // string | api version info // init $config = new \Maviance\S3PApiClient\Configuration(); $config->setHost($url); $client = new \Maviance\S3PApiClient\ApiClient($token, $secret, ['verify' => false]); // trigger request $apiInstance = new Maviance\S3PApiClient\Service\AccountApi($client, $config); try { $result = $apiInstance->accountGet($xApiVersion); print_r($result); } catch (Exception $e) { echo 'Exception when calling AccountApi->accountGet: ', $e->getMessage(), PHP_EOL; } ?>
Please visit https://apidocs.smobilpay.com for usage documentation
Documentation for API Endpoints
All URIs are relative to /v2
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccountApi | accountGet | GET /account | Retrieve account information and remaining account balance |
| AccountValidationApi | verifyGet | GET /verify | Verify service number |
| ConfirmApi | collectstdPost | POST /collectstd | Execute payment collection |
| HealthcheckApi | pingGet | GET /ping | Check on the availability of the api |
| InitiateApi | billGet | GET /bill | Get bill payment handler |
| InitiateApi | quotestdPost | POST /quotestd | Request quote with price details about the payment |
| InitiateApi | subscriptionGet | GET /subscription | Get subscription payment handler |
| MasterdataApi | cashinGet | GET /cashin | Retrieve available cashin packages |
| MasterdataApi | cashoutGet | GET /cashout | Retrieves available cashout packages |
| MasterdataApi | merchantGet | GET /merchant | Retrieve list of merchants supported by the system. |
| MasterdataApi | productGet | GET /product | Retrieve list of available products |
| MasterdataApi | serviceGet | GET /service | Retrieve list of services supported by the system. |
| MasterdataApi | serviceIdGet | GET /service/{id} | Retrieve single service |
| MasterdataApi | topupGet | GET /topup | Retrieve available topup packages |
| MasterdataApi | voucherGet | GET /voucher | Retrieve list of available vouchers to purchase |
| VerifyApi | historystdGet | GET /historystd | Retrieve list of historic payment collection. |
| VerifyApi | verifytxGet | GET /verifytx | Get the current payment collection status |
Documentation For Models
- Account
- Bill
- Cashin
- Cashout
- CollectionRequest
- CollectionResponse
- Error
- I18nText
- Merchant
- PaymentStatus
- Ping
- Product
- Quote
- QuoteRequest
- Service
- Subscription
- Topup
Changelog
0.0.1
Initial release of client for API level v3 based on "https://github.com/swagger-api/swagger-codegen" v3.0.24
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-03-18