danielboendergaard / quickpay-v10 Goto Github PK
View Code? Open in Web Editor NEWQuickpay V10 API Client and Form Builder
License: MIT License
Quickpay V10 API Client and Form Builder
License: MIT License
supplying continueurl doesnt seeme to work. I just get stuck at the quickpay "Order completed" page and dont get sent back.
I am using the following snippet from read me:
$qp = new Quickpay('my-api-key');
// Create a payment
$payment = $qp->payments()->create([
'currency' => 'DKK',
'order_id' => '123',
]);
// Authorize a payment from embedded form
$payment = $qp->payments()->authorize($payment->id, 'CARD_TOKEN', AMOUNT);
// Create a payment link
$link = $qp->payments()->link($payment->id, [
'amount' => AMOUNT,
]);
echo $link;
But I am getting error:
ErrorException (E_ERROR): Validation error
From line: /home/vagrant/Projects/myproject/vendor/kameli/quickpay-v10/src/Client.php
on line 58
I figured out it was because i left order_id empty, but it could be nice with some better handling of these type of errors, so that they be easier to find and correct
This is not exactly issue.
$payments = $qp->payments()->create([
'currency' => $currency,
'order_id' => $donation_id,
]);
How can I get response status?
Great library!
Is it possible to save a card to a subscription using this library? I.e. I receive a card-token form an embedded form, and I create it as a subscription and complete a payment through that subscription?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.