conekta / conekta-php
Conekta PHP Library
Installs: 1 518 543
Dependents: 21
Suggesters: 1
Security: 0
Stars: 88
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: 2.0.1
- phpunit/phpunit: ^9.0 || ^10.0
- dev-master
- 6.0.11
- 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-2.0.2
This package is auto-updated.
Last update: 2024-11-18 05:05:06 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'); use Conekta\Api\CustomersApi; use Conekta\ApiException; use Conekta\Configuration; use Conekta\Model\Customer; // Configure authorization /** * @var string $apiKey use private key for authentication * @link https://developers.conekta.com/reference/autenticaci%C3%B3n for more information */ $apiKey = getenv("CONEKTA_API_KEY"); $config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken($apiKey); $apiInstance = new CustomersApi(null, $config); $rq = new Customer([ 'name' => 'Franklin carrero', 'email'=> 'mm@gmail.com', 'phone' => '+5218181818181' ]); try { $result = $apiInstance->createCustomer($rq); $json_string = json_encode($result, JSON_PRETTY_PRINT); print_r($json_string); } catch (ApiException $e) { echo 'Exception when calling CustomersApi->createCustomer: ', $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.11
- Generator version:
7.9.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen