gazmendsahiti/ccpointe
Composer 安装命令:
composer require gazmendsahiti/ccpointe
包简介
CcPointe is a lightweight package/library to interact with CardConnect's API CardPointe in a simple/fluent way.
README 文档
README
CcPointe is a lightweight package/library to interact with CardConnect's API (CardPointe) in a simple/fluent way.
Installation via composer
Requires PHP >= 8.1 to run
composer require gazmendsahiti/ccpointe
List of available methods
To get started as fast as possible, please check CardPointe's docs, you may see merchid is required in all instances I have already taken care of that you don't need to pass that parameter. Note: Profile's endpoint is used to create profile, get profile, update profile and delete profile.
_________________________________________ | ENDPOINT | METHOD | |___________________|___________________| | inquireMerchant | inquireMerchant | | auth | authorization | | capture | capture | | void | void | | refund | refund | | inquire | inquire | | inquireByOrderId | inquireByOrderId | | voidByOrderId | voidByOrderId | | settlestat | settlementStatus | | funding | funding | | profile | createProfile | | profile | getProfile | | profile | updateProfile | | profile | deleteProfile | | sigcap | signatureCapture | | bin | bin | |_______________________________________|
Code Examples
To use CcPointe first include it in your class/file using
use gazmendsahiti\CcPointe\CardPointe;
$cardPointe = new CardPointe($serviceUrl, $username, $password, $merchId); $response = $cardPointe->authorization([ 'amount' => 255, // other parameters... ]); // You can transform response to object or array $objectResponse = $response->toObject(); $arrayResponse = $response->toArray() // raw response from api $raw = $response->rawResponse();
License
MIT
统计信息
- 总下载量: 1.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-23