sepalevy/service-payments-api

1.1 2020-04-02 21:32 UTC

This package is auto-updated.

Last update: 2024-04-27 00:10:33 UTC


README

Exemple

use  Sepalevy\ServicePaymentsApi\ServiceAPI;

$service_adapter = new \Your\Custom\Service\StripeExampleService([
	'secret' => 'xxxx',
	'public' => 'xxxx',
]);

// All methods available on 'ServiceAPI' class
$service = new ServiceAPI($service_adapter);

// Example:
$service->checkAuthentification(); // true or false
$service->getKeys(); // [ 'secret' => 'xxxx', 'public' => 'xxxx' ]