PHP code example of edgarsingui / proxypay

1. Go to this page and download the library: Download edgarsingui/proxypay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

edgarsingui / proxypay example snippets

 
use Singui\Proxypay;

$proxypay = new ProxyPay('SUA_CHAVE_DE_API');

$proxypay->createPayment("4999.99","2022-01-15");
`
[
  {
    "amount": "322.00",
    "custom_fields": {},
    "datetime": "2022-01-14T01:39:55Z",
    "entity_id": 99926,
    "fee": null,
    "id": 698200000089,
    "parameter_id": null,
    "period_end_datetime": "2022-01-14T19:00:00Z",
    "period_id": 6982,
    "period_start_datetime": "2022-01-13T19:00:00Z",
    "product_id": 1,
    "reference_id": 370313748,
    "terminal_id": "0000000001",
    "terminal_location": "LUANDA",
    "terminal_period_id": 1,
    "terminal_transaction_id": 1,
    "terminal_type": "ATM",
    "transaction_id": 89
  }
]