2017 © Pedro Peláez
 

library quickpay-v10

A library to communicate with the Danish payment gateway Quickpay

image

kameli/quickpay-v10

A library to communicate with the Danish payment gateway Quickpay

  • Monday, July 9, 2018
  • by danielboendergaard
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3,998 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 35 Versions
  • 1 % Grown

The README.md

Quickpay V10

Features:

  • Access the Quickpay API
    • Payments
    • Subscriptions
    • Cards
    • Payouts
    • Brandings
  • Generate payment links
  • Validate callbacks
  • Generate payment forms

Go to the official QuickPay documentation to explore all endpoints and options: http://tech.quickpay.net/api/services/?scope=merchant, (*1)

Installation

composer require kameli/quickpay-v10, (*2)

Examples

Process a payment

<?php

use Kameli\Quickpay\Quickpay;

$qp = new Quickpay('API_KEY', 'PRIVATE_KEY');
$payment = $qp->payments()->create([
    'currency' => 'DKK',
    'order_id' => 'SOME_UNIQUE_ORDER_ID',
]);

$link = $qp->payments()->link($payment->getId(), [
    'amount' => 10000, // amount in least valuable unit (øre)
]);

// Make the user follow the payment link which will take them to a form where they put in their card details
$url = $link->getUrl();

// When the form has been completed, a POST request will be sent to a specified url where you can validate it
if ($qp->validateCallback()) {
    $payment = $qp->receivePaymentCallback();

    // Capture the amount to charge the card
    $qp->payments()->captureAmount($payment->getId(), $payment->amount());

    // Handle order
}

Create a subscription and make recurring payments

Remember to enable subscriptions for the acquirer you are using., (*3)

<?php

use Kameli\Quickpay\Quickpay;

$qp = new Quickpay('API_KEY', 'PRIVATE_KEY');
$subscription = $qp->subscriptions()->create([
    'currency' => 'DKK',
    'order_id' => 'SOME_UNIQUE_ORDER_ID',
    'description' => 'Abonnement',
]);

$link = $qp->subscriptions()->link($subscription->getId(), [
    'amount' => 100, // the amount does not matter here, but is still required for some reason
]);

// Make the user follow the payment link which will take them to a form where they put in their card details
$url = $link->getUrl();

// When the form has been completed, a POST request will be sent to a specified url where you can validate it
if ($qp->validateCallback()) {
    $subscription = $qp->receiveSubscriptionCallback();
}

// Use the recurring method to make new payments
$payment = $qp->subscriptions()->recurring($subscription->getId(), [
    'amount' => 10000,
    'order_id' => 'SOME_UNIQUE_ORDER_ID',
]);

// Capture the amount to charge the card
$qp->payments()->captureAmount($payment->getId(), $payment->amount());

The Versions

09/07 2018

dev-master

9999999-dev

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • ext-curl *
  • php >=5.5

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

14/11 2017

v5.1.1

5.1.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

13/11 2017

v5.1.0

5.1.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

06/11 2017

v5.0.0

5.0.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.5
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

28/08 2017

v4.3.0

4.3.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

03/05 2017

v4.2.0

4.2.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

20/04 2017

v4.1.1

4.1.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

16/03 2017

v4.1.0

4.1.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

14/08 2016

v4.0.0

4.0.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

12/08 2016

v3.2.0

3.2.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

20/07 2016

v3.1.0

3.1.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

20/07 2016

v3.0.0

3.0.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

14/06 2016

v2.3.0

2.3.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

13/06 2016

v2.2.0

2.2.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

13/06 2016

v2.1.0

2.1.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

13/06 2016

v2.0.0

2.0.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

10/06 2016

v1.0.0

1.0.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

07/06 2016

v0.10.0

0.10.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

07/06 2016

v0.9.3

0.9.3.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

04/03 2016

v0.9.2

0.9.2.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

04/03 2016

v0.9.1

0.9.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

04/03 2016

v0.9.0

0.9.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

04/03 2016

v0.8.0

0.8.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

03/03 2016

v0.7.0

0.7.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

02/03 2016

v0.6.0

0.6.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

02/03 2016

v0.5.0

0.5.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

01/03 2016

v0.4.0

0.4.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

01/03 2016

v0.3.1

0.3.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

23/02 2016

v0.3.0

0.3.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

20/10 2015

v0.2.2

0.2.2.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

api payment gateway form quickpay v10

15/10 2015

v0.2.1

0.2.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

15/10 2015

v0.2.0

0.2.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

14/10 2015

v0.1.1

0.1.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

14/10 2015

v0.1.0

0.1.0.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard

30/09 2015

v0.0.1

0.0.1.0

A library to communicate with the Danish payment gateway Quickpay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Daniel Bøndergaard