Download the PHP package netbums/laravel-quickpay without Composer
On this page you can find all versions of the php package netbums/laravel-quickpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netbums/laravel-quickpay
More information about netbums/laravel-quickpay
Files in netbums/laravel-quickpay
Package laravel-quickpay
Short Description A fluent api around the quickpay api for Laravel applications
License MIT
Homepage https://github.com/netbums/laravel-quickpay
Informations about the package laravel-quickpay
A fluent api around the quickpay api for Laravel applications
This laravel package will help you utilize the Quickpay API Client, without knowing too much about the endpoints. It provides a fluent api for using the API. See examples below.
Support me
Consider supporting me by sponsoring my work
Installation
- You can install the package via composer:
//: # () //: # ()
//: # () //: # ()
- Publish the config file with:
Search for "quickpay", and publish both the config and Netbums\Quickpay\QuickpayServiceProvider
This is the contents of the published config file:
- Add the environment variables to your
.env
file:
And alternatively, you can add the following environment variables to your .env
file instead of the QUICKPAY_API_KEY
:
Usage
Payments
Get all payments
Get a payment
Getting a single payment by id
Create a payment
First create a basket with items, and then create a payment with the basket and a unique order id.
After a payment is created you can create a payment link for it, and redirect the user to the payment link.
Create a payment link
This will return a URL, that you can redirect the user to.
Update a payment
Capture a payment
Capture a payment. This will capture the amount of the payment specified.
Refund a payment
Refund a payment. This will refund the amount of the payment specified.
Authorize a payment
Authorize a payment. This will reserve the amount on the card, but not capture it.
Renew authorization of a payment
Renew the authorization of a payment. This will reserve the amount on the card, but not capture it.
Cancel a payment
Cancel a payment. This will cancel the payment, and release the reserved amount on the card.
Create a payment link
Create a payment link for a payment. Optional parameters are: language
, continue_url
, cancel_url
, callback_url
:
Create a payment session
Create Fraud Report
Create a fraud report for a payment. Optional parameters are: description
:
Subscriptions
The Quickpay::subscriptions()
facade provides a fluent API for interacting with Quickpay Subscription endpoints.
Get all subscriptions
Get a subscription
Get a single subscription by id.
Create a subscription link
Create a payment link for a subscription. Requires a SubscriptionLink
DataObject.
Delete a subscription payment link
Delete the payment link for a subscription.
Create a subscription
Create a new subscription. Requires a Subscription
DataObject.
Update a subscription
Update a subscription. Requires the subscription ID and an array of data.
Authorize a subscription
Authorize a subscription.
Cancel a subscription
Cancel a subscription.
Create a recurring payment
Create a recurring payment for a subscription.
Create a fraud report
Create a fraud report for a subscription.
Get subscription payments
Get payments associated with a subscription.
Exception Handling
Dedicated exception classes are provided for handling errors during subscription operations. These include:
FetchSubscriptionFailed
FetchSubscriptionsFailed
CreateRecurringFailed
CreateSubscriptionFailed
CreateSubscriptionLinkFailed
DeletePaymentLinkFailed
UpdateSubscriptionFailed
AuthorizeSubscriptionFailed
CancelSubscriptionFailed
FraudReportSubscriptionFailed
GetSubscriptionPaymentsFailed
You should wrap your Quickpay subscription calls in try-catch blocks to handle these specific exceptions.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Morten Bak
- Anders Grønborg
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-quickpay with dependencies
illuminate/contracts Version ^v12.0.1
quickpay/quickpay-php-client Version ^2.0
spatie/laravel-package-tools Version ^1.14.0