thepeer/sdk

Thepeer official Laravel SDK
2,829 27
Install
composer require thepeer/sdk
Latest Version:v0.0.6
License:Apache-2.0
Last Updated:Feb 8, 2023
Links: GitHub  ·  Packagist
Maintainer: ichtrojan

Thepeer Laravel SDK

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.

Related Packages