From b1c15915dff534b49dcc3589fcf8373e5146655f Mon Sep 17 00:00:00 2001 From: ZerosDev Date: Thu, 2 Mar 2023 14:27:03 +0700 Subject: [PATCH] update readme --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 13026f9..4e95d7f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,63 @@ -# tripay-sdk-php -Unofficial TriPay.co.id Integration Kit for PHP +

tripay-sdk-php

+
Unofficial TriPay.co.id Integration Kit for PHP
+ +

+ release + language + license + size + downloads + pulls +

+ +## Requirements +- PHP v7.2+ +- PHP JSON Extension +- PHP cURL Extension + +## Installation + +1. Run command +``` +composer require zerosdev/tripay-sdk-php +``` + +## Usage + +```php +addOrderItem('Gula', 10000, 1) + ->addOrderItem('Kopi', 6000, 1) + ->create([ + 'method' => 'BRIVA', + 'customer_name' => 'Nama Pelanggan', + 'customer_email' => 'email@konsumen.id', + ]); + +echo $result->getBody()->getContents(); + +/** +* For debugging purpose +*/ +$debugs = $client->debugs(); +echo json_encode($debugs, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); +``` + +Please check the `/examples` for the other examples