Download the PHP package moathdev/tap without Composer
On this page you can find all versions of the php package moathdev/tap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tap
Laravel Tap payment
Pay payment API for Laravel 7.x & 8.x
You need to create an Account and create your access token in the Tap Payment website.
Installation
Configuration
Just set the below environment variables in your .env
.
Advanced configuration
Run php artisan vendor:publish --provider="Moathdev\Tap\TapServiceProvider"
Usage
Functions
Charges
getCharge()
- Retrieves the details of a charge that has previously been created. Supply the unique charge id that was returned from your previous request, and Tap will return the corresponding charge information. The same information is returned when creating the charge.createCharge()
- To charge a credit card or debit card (Knet, mada, Visa, MasterCard) or an existing authorized transactions, you create a charge request. If your API key is in test mode, the card won't actually be charged, though everything else will occur as if in live mode.updateCharge()
- Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.getAllCharges()
- Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.
Refunds
getRefund()
- Retrieves the details of an existing refund.createRefund()
- Creating a new refund will refund a charge that has previously been created but not yet refunded. Funds will be refunded to the card that was originally charged.UpdateRefund()
- Updates the specified refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.getAllRefunds()
- Returns a list of all refunds you’ve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first.
Examples
-
Retrieve a Charge
-
Create a Charge
-
Retrieve a Refund
- Create a Refund
All versions of tap with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3|^8.0
illuminate/support Version ~7.0 || ~8.0
guzzlehttp/guzzle Version ^7.2
illuminate/support Version ~7.0 || ~8.0
guzzlehttp/guzzle Version ^7.2
The package moathdev/tap contains the following files
Loading the files please wait ....