ciltocruz / swagger-bankstore-api-rest
3.0
2021-10-13 17:55 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-14 00:18:52 UTC
README
PAYCOMET API REST 客户端。
此 PHP 包由 Swagger Codegen 项目自动生成,详情请访问 Swagger Codegen
- API 版本:2.37.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen 更多信息,请访问 https://www.paycomet.com
要求
PHP 5.5 及以上版本
安装 & 使用
Composer
要使用 Composer 安装绑定,请将以下内容添加到 composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/ciltocruz/swagger-bankstore-api-rest.git"
}
],
"require": {
"ciltocruz/swagger-bankstore-api-rest": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照 安装过程 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: paycometApiKey $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); $apiInstance = new Swagger\Client\Api\BalanceApi( // 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() ); $body = new \Swagger\Client\Model\V1BalanceBody(); // \Swagger\Client\Model\V1BalanceBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { $result = $apiInstance->productBalance($body, $paycomet_api_token); print_r($result); } catch (Exception $e) { echo 'Exception when calling BalanceApi->productBalance: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都相对于 https://rest.paycomet.com
模型文档
- CardsDeleteBody
- CardsEditBody
- CardsInfoBody
- CardsPhysicalBody
- InlineResponse200
- InlineResponse2001
- InlineResponse20010
- InlineResponse20011
- InlineResponse20012
- InlineResponse20013
- InlineResponse20014
- InlineResponse20014Payment
- InlineResponse20014PaymentHistory
- InlineResponse20015
- InlineResponse20015Payment
- InlineResponse20016
- InlineResponse20017
- InlineResponse20018
- InlineResponse20019
- InlineResponse20019Subscription
- InlineResponse2002
- InlineResponse20020
- InlineResponse20021
- InlineResponse20022
- InlineResponse20023
- InlineResponse20023Dcc
- InlineResponse20024
- InlineResponse20025
- InlineResponse20025Submerchant
- InlineResponse20026
- InlineResponse20026Submerchant
- InlineResponse20027
- InlineResponse20028
- InlineResponse20029
- InlineResponse20029Operations
- InlineResponse2003
- InlineResponse20030
- InlineResponse20031
- InlineResponse20032
- InlineResponse2004
- InlineResponse2005
- InlineResponse2006
- InlineResponse2007
- InlineResponse2008
- InlineResponse2008Invoices
- InlineResponse2009
- InlineResponse403
- InlineResponse422
- InlineResponse4221
- InlineResponse4222
- InlineResponse4222Error
- InlineResponse4223
- InlineResponse4223Error
- InlineResponse4224
- InlineResponse4224Error
- InlineResponse4225
- InlineResponse4225Error
- InlineResponse4226
- InlineResponse4226Error
- InlineResponse422Error
- IvrGetsessionBody
- IvrSessioncancelBody
- IvrSessionstateBody
- LaunchpadAuthorizationBody
- LaunchpadPreauthorizationBody
- LaunchpadSubscriptionBody
- MarketplaceSplittransferBody
- MarketplaceSplittransferreversalBody
- MarketplaceTransferBody
- MarketplaceTransferreversalBody
- OrderConfirmBody
- OrderEditBody
- OrderExecuteBody
- OrderInfoBody
- OrderRefundBody
- OrderRemoveBody
- PaymentsDccBody
- PaymentsPreauthBody
- PaymentsPreauthrtokenBody
- PaymentsRtokenBody
- PaymentsSearchBody
- PreauthCancelBody
- PreauthConfirmBody
- SepaAdddocumentBody
- SepaCheckcustomerBody
- SepaCheckdocumentBody
- SepaOperationsBody
- V1BalanceBody
- V1CardsBody
- V1ErrorsBody
- V1ExchangeBody
- V1FormBody
- V1HeartbeatBody
- V1InvoicesBody
- V1IpBody
- V1MethodsBody
- V1PaymentsBody
- V1SubscriptionBody
- V1formPayment
- V1formPaymentEscrowTargets
- V1formPaymentMerchantData
- V1formPaymentMerchantDataAcctInfo
- V1formPaymentMerchantDataBilling
- V1formPaymentMerchantDataCustomer
- V1formPaymentMerchantDataCustomerHomePhone
- V1formPaymentMerchantDataCustomerMobilePhone
- V1formPaymentMerchantDataCustomerWorkPhone
- V1formPaymentMerchantDataMerchantRiskIndicator
- V1formPaymentMerchantDataShipping
- V1formPaymentMerchantDataShoppingCart
- V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo
- V1formSubscription
- V1invoicesPayment
- V1launchpadauthorizationMerchantData
- V1launchpadauthorizationMerchantDataCustomer
- V1launchpadsubscriptionMerchantData
- V1launchpadsubscriptionMerchantDataShipping
- V1marketplacesplittransferPayment
- V1marketplacesplittransferSubmerchant
- V1marketplacesplittransferreversalPayment
- V1marketplacesplittransferreversalSubmerchant
- V1marketplacetransferPayment
- V1marketplacetransferreversalSubmerchant
- V1paymentsPayment
- V1paymentsdccPayment
- V1paymentsdccorderconfirmDcc
- V1paymentsorderinfoPayment
- V1paymentsorderpreauthcancelPayment
- V1paymentsorderpreauthconfirmPayment
- V1paymentsorderrefundPayment
- V1paymentspreauthPayment
- V1paymentsrtokenPayment
- V1sepaoperationsOperations
- V1subscriptionPayment
- V1subscriptionSubscription
- V1subscriptionordereditPayment
- V1subscriptionordereditSubscription
- V1subscriptionorderexecutePayment
- V1subscriptionorderremovePayment
授权文档
paycometApiKey
- 类型: API密钥
- API密钥参数名: PAYCOMET-API-TOKEN
- 位置: HTTP头