marketpay / sdk-php
6.4.6
2024-01-24 11:02 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2|>=7
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
- dev-master
- 6.4.6
- 6.4.5
- 6.4.1
- 6.4.0
- 6.3.6
- 6.3.5
- 6.3.4
- 6.3.3
- 6.3.2
- 6.3.1
- v6.3.0
- v6.2.1
- v6.2.0
- v6.1.0
- v6.0.0
- v5.8.0
- v5.7.0
- v5.6.5
- v5.6.4
- v5.6.3
- v5.6.2
- v5.6.1
- v5.6.0
- v5.5.3
- v5.5.2
- v5.5.1
- v5.5.0
- v5.4.0
- v5.3.0
- v5.2.0
- v5.1.0
- v5.0.0
- v4.0.2
- v4.0.1
- v4.0.0
- 3.7.0
- 3.0.0
- v3.0.0-rc1
- v3.0.0-alpha7
- v3.0.0-alpha6
- v3.0.0-alpha5
- v3.0.0-alpha4
- v3.0.0-alpha3
- v3.0.0-alpha2
- v3.0.0-alpha1
- 2.13.2
- 2.13.1
- 2.13.0
- 2.12.2
- 2.12.1
- 2.12.0
- 2.11.0
- 2.10.1
- 2.10.0
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.1
- 2.8.0
- v2.7.1
- v2.7.0
- 2.6.4
- 2.6.3
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.4
- 2.4.3
- 2.4.2
- v2.4.1
- v2.4
- v2.3
- v2.2.0
- v2.1.0
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.7
- v1.6
- v1.5
- v1.4.3
- v1.0.0
- dev-remove-php-warnings
- dev-development
- dev-master-legacy
- dev-legacy
This package is auto-updated.
Last update: 2024-04-24 11:41:15 UTC
README
API for Smart Contracts and Payments
This PHP package is automatically generated by the Swagger Codegen project:
- API version: v2.01
- Build package: io.swagger.codegen.languages.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: oauth2 $config = MarketPay\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new MarketPay\Api\CardsApi( // 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(), $config ); $card_id = 789; // int | try { $result = $apiInstance->cardsGet($card_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling CardsApi->cardsGet: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
CardsApi | cardsGet | GET /v2.1/Cards/{CardId} | |
CardsApi | cardsGetList | GET /v2.1/Cards | |
CardsApi | cardsPut | PUT /v2.1/Cards/{CardId} | |
EventsApi | eventsGet | GET /v2.1/Events | |
HooksApi | hooksGet | GET /v2.1/Hooks | |
HooksApi | hooksGet_0 | GET /v2.1/Hooks/{hookId} | |
HooksApi | hooksPost | POST /v2.1/Hooks | |
HooksApi | hooksPut | PUT /v2.1/Hooks/{hookId} | |
KycApi | kycDeleteLegalBoardMember | DELETE /v2.1/Kyc/users/legal/{UserId}/boardmembers/{BoardMemberId} | |
KycApi | kycDeleteLegalShareHolderNatural | DELETE /v2.1/Kyc/users/legal/{UserId}/shareholders/natural/{ShareHolderId} | |
KycApi | kycGetFile | GET /v2.1/Kyc/document/{DocumentId} | |
KycApi | kycGetLegal | GET /v2.1/Kyc/users/legal/{UserId} | |
KycApi | kycGetLegalBoardMember | GET /v2.1/Kyc/users/legal/{UserId}/boardmembers/{BoardMemberId} | |
KycApi | kycGetLegalBoardMembers | GET /v2.1/Kyc/users/legal/{UserId}/boardmembers | |
KycApi | kycGetLegalList | GET /v2.1/Kyc/users/legal | |
KycApi | kycGetLegalShareHolderNatural | GET /v2.1/Kyc/users/legal/{UserId}/shareholders/natural/{ShareHolderId} | |
KycApi | kycGetLegalShareHolders | GET /v2.1/Kyc/users/legal/{UserId}/shareholders/natural | |
KycApi | kycGetNaturaList | GET /v2.1/Kyc/users/natural | |
KycApi | kycGetNatural | GET /v2.1/Kyc/users/natural/{UserId} | |
KycApi | kycGetValidation | GET /v2.1/Kyc/users/natural/{UserId}/validation | |
KycApi | kycGetValidationLegal | GET /v2.1/Kyc/users/legal/{UserId}/validation | |
KycApi | kycPostDocument | POST /v2.1/Kyc/users/{UserId}/documents/new/{DocumentType} | |
KycApi | kycPostDocumentBoardMember | POST /v2.1/Kyc/users/legal/{UserId}/boardmember/{BoardMemberId}/documents/new/{DocumentType} | |
KycApi | kycPostDocumentShareholder | POST /v2.1/Kyc/users/legal/{UserId}/shareholder/{ShareholderId}/documents/new/{DocumentType} | |
KycApi | kycPostLegal | POST /v2.1/Kyc/users/legal/{UserId} | |
KycApi | kycPostLegalBoardMember | POST /v2.1/Kyc/users/legal/{UserId}/boardmembers | |
KycApi | kycPostLegalShareHolder | POST /v2.1/Kyc/users/legal/{UserId}/shareholders/natural | |
KycApi | kycPostNatural | POST /v2.1/Kyc/users/natural/{UserId} | |
KycApi | kycPutDocument | PUT /v2.1/Kyc/users/{UserId}/documents/add/{DocumentType} | |
KycApi | kycPutDocumentBoardMember | PUT /v2.1/Kyc/users/legal/{UserId}/boardmember/{BoardMemberId}/documents/add/{DocumentType} | |
KycApi | kycPutDocumentShareholder | PUT /v2.1/Kyc/users/legal/{UserId}/shareholder/{ShareholderId}/documents/add/{DocumentType} | |
KycApi | kycPutLegal | PUT /v2.1/Kyc/users/legal/{UserId} | |
KycApi | kycPutLegalBoardMember | PUT /v2.1/Kyc/users/legal/{UserId}/boardmembers/{BoardMemberId} | |
KycApi | kycPutLegalShareHolder | PUT /v2.1/Kyc/users/legal/{UserId}/shareholders/natural/{ShareHolderId} | |
KycApi | kycPutRequest | PUT /v2.1/Kyc/users/natural/{UserId}/requestValidation | |
KycApi | kycPutRequestLegal | PUT /v2.1/Kyc/users/legal/{UserId}/requestValidation | |
MeApi | meFeaturesList | GET /v2.1/Me/Features | |
MeApi | meGet | GET /v2.1/Me | |
MeApi | meGetList | GET /v2.1/Me/Fees | |
MeApi | meGetPayIns | GET /v2.1/Me/TransferMethods/available/payins | |
MeApi | meGet_0 | GET /v2.1/Me/Fees/{Currency} | |
PayInsBankwireApi | payInsBankwireBankwireGetPayment | GET /v2.1/PayInsBankwire/payments/{PayInId} | |
PayInsBankwireApi | payInsBankwireBankwirePaymentByDirect | POST /v2.1/PayInsBankwire/payments/direct | |
PayInsBankwireApi | payInsBankwireBankwirePostRefund | POST /v2.1/PayInsBankwire/payments/{PayInId}/refunds | |
PayInsClientApi | payInsClientPluginClientCancelRefund | POST /v2.1/PayInsClient/refunds/{RefundId}/cancel | |
PayInsClientApi | payInsClientPluginClientConfirmPayIn | POST /v2.1/PayInsClient/payments/{PayInId}/confirm | |
PayInsClientApi | payInsClientPluginClientConfirmRefund | POST /v2.1/PayInsClient/refunds/{RefundId}/confirm | |
PayInsClientApi | payInsClientPluginClientGetPayment | GET /v2.1/PayInsClient/payments/{PayInId} | |
PayInsClientApi | payInsClientPluginClientGetRefund | GET /v2.1/PayInsClient/refunds/{RefundId} | |
PayInsClientApi | payInsClientPluginClientPayInCreatePost | POST /v2.1/PayInsClient/payments | |
PayInsClientApi | payInsClientPluginClientPostRefund | POST /v2.1/PayInsClient/payments/{PayInId}/refunds | |
PayInsPluginApi | payInsPluginPluginClientGetPayIn | GET /v2.1/PayInsPlugin/payments/{PayInId} | |
PayInsPluginApi | payInsPluginPluginClientPayInPost | POST /v2.1/PayInsPlugin/payments | |
PayInsRedsysApi | payInsRedsysRedsysGetPayment | GET /v2.1/PayInsRedsys/payments/{PayInId} | |
PayInsRedsysApi | payInsRedsysRedsysGetPreauthorization | GET /v2.1/PayInsRedsys/preauthorizations/{PreauthorizationId} | |
PayInsRedsysApi | payInsRedsysRedsysGetRefund | GET /v2.1/PayInsRedsys/refunds/{RefundId} | |
PayInsRedsysApi | payInsRedsysRedsysPostPaymentByWeb | POST /v2.1/PayInsRedsys/payments/web | |
PayInsRedsysApi | payInsRedsysRedsysPostPreauthorizationByWeb | POST /v2.1/PayInsRedsys/preauthorizations/web | |
PayInsRedsysApi | payInsRedsysRedsysPostPreauthorizationCancellation | POST /v2.1/PayInsRedsys/preauthorizations/{PreauthorizationId}/cancellation | |
PayInsRedsysApi | payInsRedsysRedsysPostPreauthorizationConfirmation | POST /v2.1/PayInsRedsys/preauthorizations/{PreauthorizationId}/confirmation | |
PayInsRedsysApi | payInsRedsysRedsysPostRefund | POST /v2.1/PayInsRedsys/payments/{PayInId}/refunds | |
PayOutsBankwireApi | payOutsBankwireGet | GET /v2.1/PayOutsBankwire/payments/{PayOutId} | |
PayOutsBankwireApi | payOutsBankwireGetList | GET /v2.1/PayOutsBankwire/payments | |
PayOutsBankwireApi | payOutsBankwirePayOutBankwireCancellation | POST /v2.1/PayOutsBankwire/payments/{PayOutId}/cancellation | |
PayOutsBankwireApi | payOutsBankwirePayOutBankwireConfirmation | POST /v2.1/PayOutsBankwire/payments/{PayOutId}/confirmation | |
PayOutsBankwireApi | payOutsBankwirePost | POST /v2.1/PayOutsBankwire/payments/direct | |
PayOutsPluginApi | payOutsPluginPluginPayOutPost | POST /v2.1/PayOutsPlugin | |
PayOutsPluginApi | payOutsPluginPlugingGetPayOut | GET /v2.1/PayOutsPlugin/{PayOutId} | |
RefundsApi | refundsRefundGet | GET /v2.1/Refunds/{RefundId} | |
TransactionsApi | transactionsGetList | GET /v2.1/Transactions | |
TransfersApi | transfersGet | GET /v2.1/Transfers/{TransferId} | |
TransfersApi | transfersGetList | GET /v2.1/Transfers | |
TransfersApi | transfersPost | POST /v2.1/Transfers | |
UsersApi | usersGet | GET /v2.1/Users/{UserId} | |
UsersApi | usersGetBankAccount | GET /v2.1/Users/{UserId}/bankaccounts/{BankAccountId} | |
UsersApi | usersGetBankAccountList | GET /v2.1/Users/{UserId}/bankaccounts | |
UsersApi | usersGetCardList | GET /v2.1/Users/{UserId}/cards | |
UsersApi | usersGetLegal | GET /v2.1/Users/legal/{UserId} | |
UsersApi | usersGetList | GET /v2.1/Users | |
UsersApi | usersGetListLegal | GET /v2.1/Users/legal | |
UsersApi | usersGetListNatural | GET /v2.1/Users/natural | |
UsersApi | usersGetNatural | GET /v2.1/Users/natural/{UserId} | |
UsersApi | usersGetTransactionList | GET /v2.1/Users/{UserId}/transactions | |
UsersApi | usersGetWalletList | GET /v2.1/Users/{UserId}/wallets | |
UsersApi | usersPostBankAccountCa | POST /v2.1/Users/{UserId}/bankaccounts/CA | |
UsersApi | usersPostBankAccountGb | POST /v2.1/Users/{UserId}/bankaccounts/GB | |
UsersApi | usersPostBankAccountIban | POST /v2.1/Users/{UserId}/bankaccounts/IBAN | |
UsersApi | usersPostBankAccountOther | POST /v2.1/Users/{UserId}/bankaccounts/OTHER | |
UsersApi | usersPostBankAccountUs | POST /v2.1/Users/{UserId}/bankaccounts/US | |
UsersApi | usersPostLegal | POST /v2.1/Users/legal | |
UsersApi | usersPostNatural | POST /v2.1/Users/natural | |
UsersApi | usersPutLegal | PUT /v2.1/Users/legal/{UserId} | |
UsersApi | usersPutNatural | PUT /v2.1/Users/natural/{UserId} | |
WalletsApi | walletsGet | GET /v2.1/Wallets/{WalletId} | |
WalletsApi | walletsGetBalance | GET /v2.1/Wallets/{WalletId}/Balance | |
WalletsApi | walletsGetList | GET /v2.1/Wallets | |
WalletsApi | walletsGetTransactionList | GET /v2.1/Wallets/{WalletId}/transactions | |
WalletsApi | walletsPost | POST /v2.1/Wallets | |
WalletsApi | walletsPut | PUT /v2.1/Wallets/{WalletId} | |
WalletsApi | walletsQueryBalancesByIds | POST /v2.1/Wallets/QueryBalancesByIds |
Documentation For Models
- Address
- BankAccountCaPost
- BankAccountCaResponse
- BankAccountGbPost
- BankAccountGbResponse
- BankAccountIbanPost
- BankAccountIbanResponse
- BankAccountOtherPost
- BankAccountOtherResponse
- BankAccountResponse
- BankAccountResponseAsChild
- BankAccountUsPost
- BankAccountUsResponse
- BankwirePayInBankAccount
- CardPut
- CardResponse
- CardResponseResponseList
- ClientData
- CustomApiErrorResponse
- DocumentFileStatus
- EventResponse
- FeatureResponse
- HookPost
- HookPut
- HookResponse
- KycBoardMemberContainerDto
- KycBoardMemberResponse
- KycDocumentDetails
- KycFileUploadResponse
- KycIdentificationRequest
- KycLegalUserDataDto
- KycNaturalUserDataDto
- KycShareHolderContainerDto
- KycShareHolderResponse
- KycUserLegalPut
- KycUserNaturalPut
- KycUserValidationBoardMemberListItemResponse
- KycUserValidationBoardMemberPost
- KycUserValidationBoardMemberPut
- KycUserValidationLevelLegalBoardMembersListResponse
- KycUserValidationLevelLegalResponse
- KycUserValidationLevelLegalResponseResponseList
- KycUserValidationLevelLegalShareHoldersListResponse
- KycUserValidationLevelNaturalResponse
- KycUserValidationLevelNaturalResponseResponseList
- KycUserValidationShareHolderListItemResponseNatural
- KycUserValidationShareHolderNaturalPost
- KycUserValidationShareHolderNaturalPut
- KycValidationPerLevelStatus
- KycValidationRequestResponse
- KycValidationUserLegalStatusResponse
- KycValidationUserStatusResponse
- MeResponse
- Money
- PayInBankwirePost
- PayInBankwireRefundPost
- PayInBankwireRefundResponse
- PayInBankwireResponse
- PayOutBankwireCancellationPost
- PayOutBankwireCancellationResponse
- PayOutBankwireConfirmationPost
- PayOutBankwireConfirmationResponse
- PayOutBankwireCoreResponse
- PayOutBankwireCoreResponseResponseList
- PayOutBankwirePost
- PayOutBankwireResponse
- PayOutBankwireUserResponse
- PaymentRedsysData
- PluginPayInPost
- PluginPayInPostConfirm
- PluginPayInResponse
- PluginPayOutPost
- PluginPayOutResponse
- PluginRefundPost
- PluginRefundPostCancel
- PluginRefundPostConfirm
- PluginRefundResponse
- PreauthorizationRedsysData
- PropertyValidationCountry
- PropertyValidationDateNullable
- PropertyValidationDecimal
- PropertyValidationString
- RedsysPayByWebPost
- RedsysPayByWebResponse
- RedsysPayInsResponse
- RedsysPreauthorizationCancellationPost
- RedsysPreauthorizationCancellationResponse
- RedsysPreauthorizationConfirmationPost
- RedsysPreauthorizationConfirmationResponse
- RedsysPreauthorizeByWebPost
- RedsysPreauthorizeByWebResponse
- RedsysPreauthorizeResponse
- RedsysRefundPost
- RedsysRefundResponse
- RefundReason
- RefundRedsysData
- TAddressValidationResult
- TKycFileDetails
- TTelephoneValidationResult
- Telephone
- TpgBankwirePayOutConfigResponse
- TransactionResponse
- TransactionResponseResponseList
- TransferMethodsResponse
- TransferMethodsResponseResponseList
- TransferPost
- TransferResponse
- TransferResponseResponseList
- UserLegalPost
- UserLegalPut
- UserLegalResponse
- UserLegalResponseResponseList
- UserNaturalPost
- UserNaturalPut
- UserNaturalResponse
- UserResponse
- UserResponseResponseList
- WalletBalance
- WalletBalanceResponseList
- WalletClientInstrumentResponse
- WalletClientInstrumentResponseResponseList
- WalletPost
- WalletPut
- WalletQueryBalancesByIdsPost
- WalletResponse
- WalletResponseResponseList
Documentation For Authorization
oauth2
- Type: OAuth
- Flow: implicit
- Authorization URL: https://identity.marketpay.io/connect/authorize
- Scopes:
- dashboard: dashboard scope