Quantcast
Channel: Laravel News
Viewing all articles
Browse latest Browse all 1870

A Laravel Package for the Quickpay API

$
0
0

A Laravel Package for the Quickpay API


The Quickpay package for Laravel, by Morten Bak, helps you quickly utilize the Quickpay API client using a fluent object and service Facade. Quickpay allows you to accept payments securely and reliably, and this package can help you interface with your user's data via the API:

use \Netbums\Quickpay\Facades\Quickpay;

// Get all payments
$payments = Quickpay::payments()->all();

// Get a single payment
$payment = Quickpay::payments()->find($paymentId);

// Create a payment link
$paymentLink = Quickpay::payments()->createLink(new PaymentLink(
    id: $createdPayment['id'], 
    amount: 100
));

// Refund a payment
$payment = Quickpay::payments()->refund(
    id: $paymentId,
    amount: 100,
);

Main Features

  • Capture a payment
  • Refund a payment
  • Authorize a payment
  • Cancel a payment
  • Create a payment with a basket of items and a unique order ID
  • Create a payment link and redirect the user to it
  • Create a fraud report for a payment
  • A payment link with custom continue, cancel, and callback URIs

You can learn more about this package, get full installation instructions, and view the source code on GitHub at mortenebak/laravel-quickpay. You can learn more about the Quickpay API via the documentation and the quickpay-php-client Composer package.

The post A Laravel Package for the Quickpay API appeared first on Laravel News.

Join the Laravel Newsletter to get Laravel articles like this directly in your inbox.


Viewing all articles
Browse latest Browse all 1870

Latest Images

Trending Articles



Latest Images