conekta / conekta-php
Conekta PHP Library
Installs: 1 504 101
Dependents: 21
Suggesters: 1
Security: 0
Stars: 87
Watchers: 22
Forks: 41
Open Issues: 1
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
- phpstan/phpstan: 1.11.1
- phpunit/phpunit: ^9.0 || ^10.0
- dev-master
- 6.0.10
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.2
- 5.0.1
- v5.0.0
- v5.0.0-rc01
- v4.3.0
- v4.2.0
- v4.1.0
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.5.1
- v3.5.0
- v3.4.0
- V3.3.0
- v3.2.0
- 3.1.0
- v3.0.0
- v2.0.5
- v2.0.5-a
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.9.9
- v1.9.8
- 1.9.7
- v1.9.6
- v1.9.5
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- dev-dependabot/composer/phpstan/phpstan-1.12.8
This package is auto-updated.
Last update: 2024-11-07 04:06:38 UTC
README
Conekta sdk
For more information, please visit https://github.com/conekta/openapi/issues.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/conekta/conekta-php.git" } ], "require": { "conekta/conekta-php": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
<?php require_once('/path/to/conekta/vendor/autoload.php');
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure Bearer authorization: bearerAuth $config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new Conekta\Api\AntifraudApi( // 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 ); $create_risk_rules_data = new \Conekta\Model\CreateRiskRulesData(); // \Conekta\Model\CreateRiskRulesData | requested field for blacklist rule $accept_language = es; // string | Use for knowing which language to use try { $result = $apiInstance->createRuleBlacklist($create_risk_rules_data, $accept_language); print_r($result); } catch (Exception $e) { echo 'Exception when calling AntifraudApi->createRuleBlacklist: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to https://api.conekta.io
Models
- ApiKeyCreateResponse
- ApiKeyRequest
- ApiKeyResponse
- ApiKeyResponseOnDelete
- ApiKeyUpdateRequest
- BalanceCommonField
- BalanceResponse
- BlacklistRuleResponse
- ChargeOrderResponse
- ChargeOrderResponsePaymentMethod
- ChargeRequest
- ChargeRequestPaymentMethod
- ChargeResponse
- ChargeResponseChannel
- ChargeResponsePaymentMethod
- ChargeResponseRefunds
- ChargeResponseRefundsData
- ChargeUpdateRequest
- ChargesDataResponse
- ChargesOrderResponse
- ChargesOrderResponseAllOfData
- Checkout
- CheckoutOrderTemplate
- CheckoutOrderTemplateCustomerInfo
- CheckoutRequest
- CheckoutResponse
- CheckoutsResponse
- CompanyFiscalInfoAddressResponse
- CompanyFiscalInfoResponse
- CompanyPayoutDestinationResponse
- CompanyResponse
- CreateCustomerFiscalEntitiesResponse
- CreateCustomerPaymentMethodsRequest
- CreateCustomerPaymentMethodsResponse
- CreateRiskRulesData
- Customer
- CustomerAddress
- CustomerAntifraudInfo
- CustomerAntifraudInfoResponse
- CustomerFiscalEntitiesDataResponse
- CustomerFiscalEntitiesRequest
- CustomerFiscalEntitiesResponse
- CustomerInfo
- CustomerInfoJustCustomerId
- CustomerInfoJustCustomerIdResponse
- CustomerPaymentMethodRequest
- CustomerPaymentMethodsData
- CustomerPaymentMethodsRequest
- CustomerPaymentMethodsResponse
- CustomerResponse
- CustomerResponseShippingContacts
- CustomerShippingContacts
- CustomerShippingContactsAddress
- CustomerShippingContactsDataResponse
- CustomerShippingContactsResponse
- CustomerShippingContactsResponseAddress
- CustomerUpdateFiscalEntitiesRequest
- CustomerUpdateShippingContacts
- CustomersResponse
- DeleteApiKeysResponse
- DeletedBlacklistRuleResponse
- DeletedWhitelistRuleResponse
- Details
- DetailsError
- DiscountLinesDataResponse
- DiscountLinesResponse
- EmailCheckoutRequest
- Error
- EventResponse
- EventTypes
- EventsResendResponse
- FiscalEntityAddress
- GetApiKeysResponse
- GetChargesResponse
- GetCompaniesResponse
- GetCustomerPaymentMethodDataResponse
- GetEventsResponse
- GetOrderDiscountLinesResponse
- GetOrdersResponse
- GetPaymentMethodResponse
- GetPlansResponse
- GetTransactionsResponse
- GetTransfersResponse
- GetWebhookKeysResponse
- GetWebhooksResponse
- LogResponse
- LogsResponse
- LogsResponseData
- OrderCaptureRequest
- OrderCustomerInfoResponse
- OrderDiscountLinesRequest
- OrderFiscalEntityAddressResponse
- OrderFiscalEntityRequest
- OrderFiscalEntityResponse
- OrderNextActionResponse
- OrderNextActionResponseRedirectToUrl
- OrderRefundRequest
- OrderRequest
- OrderRequestCustomerInfo
- OrderResponse
- OrderResponseCharges
- OrderResponseCheckout
- OrderResponseCustomerInfo
- OrderResponseDiscountLines
- OrderResponseProducts
- OrderResponseShippingContact
- OrderTaxRequest
- OrderUpdateFiscalEntityRequest
- OrderUpdateRequest
- OrderUpdateRequestCustomerInfo
- OrdersResponse
- Page
- Pagination
- PaymentMethod
- PaymentMethodBankTransfer
- PaymentMethodCard
- PaymentMethodCardRequest
- PaymentMethodCardResponse
- PaymentMethodCash
- PaymentMethodCashRequest
- PaymentMethodCashResponse
- PaymentMethodGeneralRequest
- PaymentMethodResponse
- PaymentMethodSpeiRecurrent
- PaymentMethodSpeiRequest
- PaymentMethodTokenRequest
- Payout
- PayoutMethod
- PayoutOrder
- PayoutOrderPayoutsItem
- PayoutOrderResponse
- PayoutOrderResponseCustomerInfo
- PayoutOrdersResponse
- PlanRequest
- PlanResponse
- PlanUpdateRequest
- Product
- ProductDataResponse
- ProductOrderResponse
- RiskRulesData
- RiskRulesList
- ShippingOrderResponse
- ShippingRequest
- SmsCheckoutRequest
- SubscriptionEventsResponse
- SubscriptionRequest
- SubscriptionResponse
- SubscriptionUpdateRequest
- Token
- TokenCard
- TokenCheckout
- TokenResponse
- TokenResponseCheckout
- TransactionResponse
- TransferDestinationResponse
- TransferMethodResponse
- TransferResponse
- TransfersResponse
- UpdateCustomer
- UpdateCustomerAntifraudInfo
- UpdateCustomerFiscalEntitiesResponse
- UpdateCustomerPaymentMethodsResponse
- UpdateOrderDiscountLinesRequest
- UpdateOrderTaxRequest
- UpdateOrderTaxResponse
- UpdatePaymentMethods
- UpdateProduct
- WebhookKeyCreateResponse
- WebhookKeyDeleteResponse
- WebhookKeyRequest
- WebhookKeyResponse
- WebhookKeyUpdateRequest
- WebhookLog
- WebhookRequest
- WebhookResponse
- WebhookUpdateRequest
- WhitelistlistRuleResponse
Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
2.1.0
- Package version:
6.0.10
- Generator version:
7.9.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen