thepeer / sdk
Thepeer official Laravel SDK
Installs: 2 073
Dependents: 0
Suggesters: 0
Security: 0
Stars: 28
Watchers: 4
Forks: 7
Open Issues: 1
Requires
- ext-json: *
- guzzlehttp/guzzle: ~6|~7
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- illuminate/contracts: ^5.8.15|^6.0
- illuminate/database: ^5.8.15|^6.0
- illuminate/filesystem: ^5.8.15|^6.0
- mockery/mockery: ^1.0
- orchestra/testbench: 3.8.*|4.*
- phpunit/php-code-coverage: ^7.0@dev
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-10-08 10:25:31 UTC
README
Installation
composer require thepeer/sdk
Usage
Initiate
<?php use Thepeer\Sdk\Thepeer; $thepeer = new Thepeer("your-secret-key"); $thepeer->chargeLink("lost-in-the-world", 5000, "Benz");
Available methods
-
validateSiganture
accepts
:- request (object)
returns
: boolean
-
indexUser
accepts
:- name (string)
- email (string)
- identifier (string)
returns
: object
-
updateUser
accepts
:- reference (string)
- identifier (string)
returns
: object
-
deleteUser
accepts
:- reference (string)
returns
: boolean
-
getLink
accepts
:- link_id (string)
returns
: object
-
chargeLink
accepts
:- link_id (string)
- amount (integer)
returns
: object
-
authorizeCharge
accepts
:- reference (string)
- event (string)
returns
: object
Extra
Refer to the documentation for more information.