pstpagofacil / sdk-apis-php
API de Pago Fácil
Installs: 4 726
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^7.4
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-10-31 04:19:36 UTC
README
@pstpagofacil/sdk-apis-php
Pago Fácil APIs PHP SDK
API de Pago Fácil
This PHP package is automatically generated by the OpenAPI Generator project:
- API version: 2.1.5
- Build package: org.openapitools.codegen.languages.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
Using Packagist
Using GITHUB
To install the bindings via Composer, add the following to composer.json
:
{ "repositories": [ { "type": "vcs", "url": "https://github.com/PSTPAGOFACIL/sdk-apis-php.git" } ], "require": { "PSTPAGOFACIL/sdk-apis-php.git": "*@dev" } }
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/OpenAPIClient-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'); $apiInstance = new PSTPagoFacil\ApiClient\Api\AuthApi(); $loginParams = [ "username" => "mimaildeejemplo@pagofacil.cl", "password" => "MiClavedeMentira!" ]; $body = new \PSTPagoFacil\ApiClient\Model\LoginBody($loginParams); try { $result = $apiInstance->usersLoginPost($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthApi->usersLoginPost: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://apis.pgf.cl
Documentation For Models
- BillingDetails
- DataLoginResponse
- Document
- FutureRemittances
- InlineObject
- InlineResponse200
- InlineResponse2001
- InlineResponse2001Body
- InlineResponse2001BodyData
- InlineResponse2002
- InlineResponse2002Data
- InlineResponse2003
- InlineResponse2003Data
- InlineResponse2004
- InlineResponse2005
- InlineResponse2005Types
- InlineResponse2006
- InlineResponse200Data
- InlineResponse200DataDocument
- InlineResponse200DataItems
- InlineResponse200DataNullifications
- InlineResponse201
- InlineResponse400
- InlineResponse401
- InlineResponse4011
- InlineResponse4012
- InlineResponse403
- InlineResponse404
- InlineResponse409
- InlineResponse500
- LoginBody
- LoginResponse
- NullificationStatus
- NullificationType
- RemittanceByDate
- RequestBodyNullification
- RequestBodyTrx
- RequestBodyWebhook
- ResponseBodyGetTrx
- ResponseBodyGetTrxData
- ResponseBodyNullification
- ResponseBodyNullificationData
- ResponseBodyRemittances
- ResponseBodyRemittancesData
- Shippment
- Status
- XCustomerEmail
- XShopCountry
- XUrlCallback
- XUrlCancel
- XUrlComplete
Documentation For Authorization
JWTToken
- Type: Bearer authentication (JWT)
Token
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author
- Cristian Tala Sánchez