Skip to content

daxslab/enzona-payment-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enzona-payment-php

This is a work in progress, there are rough corners and the API can change witouth previuos warnings. Not recommended for production usage.

PHP client library for interacting with EnZona's Payment API.

This client was generated by the Swagger Codegen project.

  • API version: v1.0.0
  • Package version: 1.0.0

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/daxslab/enzona-payment-php.git"
    }
  ],
  "require": {
    "daxslab/enzona-payment": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/enzona-payment-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: default
$config = daxslab\enzona\payment\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new daxslab\enzona\payment\Api\ListaDeDevolucionesDeUnPagoApi(
    // 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
);
$transaction_uuid = "transaction_uuid_example"; // string | 
$limit = "limit_example"; // string | 
$offset = "offset_example"; // string | 
$status_filter = "status_filter_example"; // string | 
$start_date_filter = "start_date_filter_example"; // string | 
$end_date_filter = "end_date_filter_example"; // string | 
$order_filter = "order_filter_example"; // string | 

try {
    $result = $apiInstance->paymentsTransactionUuidRefundsGet($transaction_uuid, $limit, $offset, $status_filter, $start_date_filter, $end_date_filter, $order_filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ListaDeDevolucionesDeUnPagoApi->paymentsTransactionUuidRefundsGet: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://apisandbox.enzona.net/payment/v1.0.0

Class Method HTTP request Description
ListaDeDevolucionesDeUnPagoApi paymentsTransactionUuidRefundsGet GET /payments/{transaction_uuid}/refunds
ObtieneListadoDePagosRealizadosApi paymentsGet GET /payments
ObtieneLosDetallesDeUnPagoRealizadoApi paymentsTransactionUuidGet GET /payments/{transaction_uuid}
ObtieneLosDetallesDeUnaDevolucinRealizadaApi paymentsRefundTransactionUuidGet GET /payments/refund/{transaction_uuid}
ObtieneUnaListaDeDevolucionesRealizadasApi paymentsRefundsGet GET /payments/refunds
PermiteCancelarUnPagoApi paymentsTransactionUuidCancelPost POST /payments/{transaction_uuid}/cancel
PermiteCompletarUnPagoApi paymentsTransactionUuidCompletePost POST /payments/{transaction_uuid}/complete
PermiteConfirmarUnPagoApi paymentsTransactionUuidConfirmPost POST /payments/{transaction_uuid}/confirm
PermiteCrearUnPagoApi paymentsPost POST /payments
PermiteCrearUnRecieveCodeApi paymentsVendorCodePost POST /payments/vendor/code
PermiteRealizarElCheckoutDeUnPagoApi paymentsCheckoutUuidGet GET /payments/checkout/{uuid}
PermiteRealizarLaDevolucinDeUnPagoApi paymentsTransactionUuidRefundPost POST /payments/{transaction_uuid}/refund

Documentation For Models

Documentation For Authorization

default

About

PHP library for interacting with EnZona Payment API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages