PAYCOMET API REST for customers.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 2.37.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen For more information, please visit https://www.paycomet.com
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/ciltocruz/swagger-bankstore-api-rest.git"
}
],
"require": {
"ciltocruz/swagger-bankstore-api-rest": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?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;
}
?>
All URIs are relative to https://rest.paycomet.com
Class | Method | HTTP request | Description |
---|---|---|---|
BalanceApi | productBalance | POST /v1/balance | Get balance info |
CardsApi | addUser | POST /v1/cards | Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. |
CardsApi | editUser | POST /v1/cards/edit | Changes the expiry date, cvc2 or both |
CardsApi | infoUser | POST /v1/cards/info | Get card info |
CardsApi | physicalAddCard | POST /v1/cards/physical | Tokenize a card by physical encrypted data |
CardsApi | removeUser | POST /v1/cards/delete | Removes a card |
DccApi | dccPurchaseConfirm | POST /v1/payments/dcc/{order}/confirm | Confirm previous DCC payment |
DccApi | dccPurchaseCreate | POST /v1/payments/dcc | Create an DCC payment |
ErrorApi | infoError | POST /v1/errors | Gets an error description |
ExchangeApi | exchange | POST /v1/exchange | Converts a certain amount from a currency to another. |
FormApi | form | POST /v1/form | Create form view for user capture |
HeartbeatApi | heartbeat | POST /v1/heartbeat | Check the system |
IVRApi | checkSession | POST /v1/ivr/session-state | Checks an IVR session |
IVRApi | getSession | POST /v1/ivr/get-session | Creates an IVR session |
IVRApi | sessionCancel | POST /v1/ivr/session-cancel | Cancel an IVR session |
IpApi | getCountrybyIP | POST /v1/ip | Retrieves country info by IP |
LaunchpadApi | launchAuthorization | POST /v1/launchpad/authorization | Creates a payment link and sends it to customer |
LaunchpadApi | launchPreauthorization | POST /v1/launchpad/preauthorization | Executes a preauthorization link and sends it to customer |
LaunchpadApi | launchSubscription | POST /v1/launchpad/subscription | Creates a subscription link and sends it to customer |
MarketplaceApi | splitTransfer | POST /v1/marketplace/split-transfer | Make a transfer to other accounts on PAYCOMET |
MarketplaceApi | splitTransferReversal | POST /v1/marketplace/split-transfer-reversal | Run a split transfer reversal based on a previous split transfer |
MarketplaceApi | transfer | POST /v1/marketplace/transfer | Run a transfer |
MarketplaceApi | transferReversal | POST /v1/marketplace/transfer-reversal | Make a transfer reversal based on a previous transfer |
MethodsApi | getUserPaymentMethods | POST /v1/methods | Retrieves product methods |
MiraklApi | miraklInvoicesSearch | POST /v1/invoices | Search Mirakl invoices |
PaymentsApi | executePurchase | POST /v1/payments | Executes a payment |
PaymentsApi | executePurchaseRtoken | POST /v1/payments/rtoken | Executes a payment by refence |
PaymentsApi | operationInfo | POST /v1/payments/{order}/info | Get info of a order |
PaymentsApi | operationSearch | POST /v1/payments/search | Search orders |
PreauthorizationsApi | cancelPreauthorization | POST /v1/payments/{order}/preauth/cancel | Cancel previous preauthorization |
PreauthorizationsApi | confirmPreauthorization | POST /v1/payments/{order}/preauth/confirm | Confirm previous preauthorization |
PreauthorizationsApi | createPreauthoritation | POST /v1/payments/preauth | Create preauthorization |
PreauthorizationsApi | createPreauthorizationRtoken | POST /v1/payments/preauthrtoken | Creates a preauthorization by reference |
RefundApi | executeRefund | POST /v1/payments/{order}/refund | Perform a refund |
SepaApi | addDocument | POST /v1/sepa/add-document | Adds a SEPA document |
SepaApi | checkCustomer | POST /v1/sepa/check-customer | Check a customers SEPA documentation |
SepaApi | checkDocument | POST /v1/sepa/check-document | Check a SEPA document |
SepaApi | sepaOperations | POST /v1/sepa/operations | Send SEPA operations |
SusbcriptionsApi | createSubscription | POST /v1/subscription | Create susbcription payment |
SusbcriptionsApi | editSubscription | POST /v1/subscription/{order}/edit | Edit susbcription payment. |
SusbcriptionsApi | executeSubscription | POST /v1/subscription/{order}/execute | Excute a susbcription payment. |
SusbcriptionsApi | removeSubscription | POST /v1/subscription/{order}/remove | Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. |
- 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
- Type: API key
- API key parameter name: PAYCOMET-API-TOKEN
- Location: HTTP header