Git Product home page Git Product logo

quickpay-v10's People

Contributors

danielboendergaard avatar kasperfranz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

quickpay-v10's Issues

continueurl not working

supplying continueurl doesnt seeme to work. I just get stuck at the quickpay "Order completed" page and dont get sent back.

How to create a subscription?

I have tried:

        $payment = $qp->subscriptions()->create([
            'currency' => 'DKK',
            'order_id' =>'some-random-id'
        ]);

But can't figure out what to do with the payment response. If I die and dump the $payment object

image

Better formatting of QuickPay errors from Validation error

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

How to get status code after response?

This is not exactly issue.

		$payments = $qp->payments()->create([
		    'currency' => $currency,
		    'order_id' => $donation_id,
		]);

How can I get response status?

Save card / subscription

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.