Download the PHP package nickknissen/laravel-quickpay without Composer
On this page you can find all versions of the php package nickknissen/laravel-quickpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nickknissen/laravel-quickpay
More information about nickknissen/laravel-quickpay
Files in nickknissen/laravel-quickpay
Download nickknissen/laravel-quickpay
More information about nickknissen/laravel-quickpay
Files in nickknissen/laravel-quickpay
Vendor nickknissen
Package laravel-quickpay
Short Description Simple Laravel Wrapper for the Quickpay API services.
License MIT
Package laravel-quickpay
Short Description Simple Laravel Wrapper for the Quickpay API services.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-quickpay
Laravel Quickpay
Wrapper around quickpay/quickpay-php-client
Installation
TODO before v1
- Callback/Webhook controller
- Create payment/payout builder (fluent api/chaining)
- Refactor card class
- Optional
synchronized
parameter
Current api
none-production payments are prefix with E + first letter of current environment. See QuickPay@orderIdPrefix
Ex. order id 12345 becomes El12345
when APP_ENV=local
and ES12345
for APP_ENV=staging
>> use nickknissen\QuickPay\Card;
>> use nickknissen\QuickPay\Payments;
>> $orderId = 12345;
>> $userId = 12345;
>> $amount = 1000; // amount in its smallest unit (cents/øre)
>> $card = new Card(['number' => 1000000000000008, 'expiration' => 2012, 'cvd' => 123]);
=> nickknissen\QuickPay\Card {#2951
number: 1000000000000008,
last_4_digits: "7569",
type: "Test",
expiration: 2010,
cvd: 123,
}
>> $card->createAsQuickPayCard($userId);
=> nickknissen\QuickPay\Card {#2974
last_4_digits: "0008",
type: "Test",
user_id: 1,
updated_at: "2018-09-06 07:51:46",
created_at: "2018-09-06 07:51:46",
id: 5,
}
>> $payments = new Payments();
>> $payment = $payments->create($orderId);
=> {#2950
+"id": 124473005,
+"order_id": "12345",
+"accepted": false,
+"type": "Payment",
....
}
>> $authorized = $payments->authorize($payment->id, $amount, $card);
=> {#2974
+"id": 124473005,
+"order_id": "12345",
+"accepted": true,
+"type": "Payment",
....
+"operations": [
{#2971
+"id": 1,
+"type": "authorize",
...
},
}
>> $captured = $payments->capture($payment->id, $amount);
All versions of laravel-quickpay with dependencies
PHP Build Version
Package Version
The package nickknissen/laravel-quickpay contains the following files
Loading the files please wait ....