zenki / zenkipay-api-client
产品技术规范定义;Zenkipay是一个加密货币支付网关系统,允许商家在其电子商务平台上接收付款。与其他平台不同,Zenkipay通过其支付过程确保客户满意度。保证存款(交付的产品和预期的质量)以结算商家的付款,从而避免因网络诈骗而损失客户资产。
0.2.1
2023-02-24 00:12 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
README
产品技术规范定义;Zenkipay是一个加密货币支付网关系统,允许商家在其电子商务平台上接收付款。与其他平台不同,Zenkipay通过其支付过程确保客户满意度。保证存款(交付的产品和预期的质量)以结算商家的付款,从而避免因网络诈骗而损失客户资产。
更多信息,请访问 https://www.zenki.fi/.
安装与使用
构建日期:Thu Feb 23 23:45:43 UTC 2023
要求
PHP 7.4及更高版本。也应与PHP 8.0兼容。
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
然后运行composer install
手动安装
下载文件并包含autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门
请遵循安装程序,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Zenkipay\Api\AuthenticationAndAuthorizationApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client() ); $content_type = application/json; // string | Tipo de contenido aceptado. $accept = application/json; // string | Formatos aceptados. $request_token_o_auth2 = new \Zenkipay\Model\RequestTokenOAuth2(); // \Zenkipay\Model\RequestTokenOAuth2 | Parameters for OAuth 2 token creation. try { $result = $apiInstance->createToken($content_type, $accept, $request_token_o_auth2); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthenticationAndAuthorizationApi->createToken: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI均相对于https://api.zenki.fi
模型
- AddTracking
- AddTrackingEvent
- AuthenticationErrorResponse
- Breakdown
- CreateOrder
- CryptoPayment
- ErrorResponse
- ErrorResponseValidationErrorsInner
- Item
- Merchant
- MerchantCryptoAssetsInner
- MerchantEscrowConfig
- MerchantIntegrationConfig
- MerchantIntegrationConfigPluginsInner
- MerchantMerchantInfo
- Order
- OrderClaim
- OrderDispute
- OrderLinks
- OrderLinksRefund
- OrderPaymentInfo
- OrderPaymentInfoCryptoLove
- OrderPaymentInfoExchangeRate
- OrderSettlementInfo
- OrderSettlementInfoCryptoSettlement
- Refund
- RefundFiatOriginalPayment
- RequestRefund
- RequestTokenOAuth2
- Shopper
- TokenOAuth2
- Tracking
- TrackingEventsInner
- TrackingExternalCourier
- UpdateOrder
- UpdateOrderShopper
- Webhook
授权
JWTAuth
- 类型:Bearer身份验证(ACCESS_TOKEN)
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包由OpenAPI Generator项目自动生成
- API版本:
1.0.0
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen