ebanx / benjamin-local
EBANX Pay's API library for local payments
Installs: 46 131
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 94
Forks: 1
Open Issues: 0
Requires
- php: >=5.4
- ext-curl: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.2.3
- fzaninotto/faker: ^1.6@dev
- justinrainbow/json-schema: ^5.0@dev
- phpunit/phpunit: ^4.8
- sebastian/phpcpd: ^2.0.4
- vlucas/phpdotenv: ^2.4@dev
This package is auto-updated.
Last update: 2024-10-11 02:00:44 UTC
README
This is the repository for business rules as of implemented by merchant sites for use in e-commerce platform plugins. The objective is to be a central repository for services and to communicate with the EBANX Local API (also known as "Pay Local").
Getting Started
It is very simple to use Benjamin. You will only need an instance of Ebanx\Benjamin\Models\Configs\Config
and an instance of Ebanx\Benjamin\Models\Payment
:
<?php require_once __DIR__ . '/vendor/autoload.php'; use Ebanx\Benjamin\Models\Configs\Config; use Ebanx\Benjamin\Models\Payment; $config = new Config([ 'integrationKey' => 'YOUR_INTEGRATION_KEY', 'sandboxIntegrationKey' => 'YOUR_SANDBOX_INTEGRATION_KEY' ]); $payment = new Payment([ //Payment properties(see wiki) ]); $result = EBANX($config)->create($payment);
If you want more information you can check the Wiki.