Giter VIP home page Giter VIP logo

Comments (7)

makasim avatar makasim commented on May 27, 2024

Thrown by 'details' => iterator_to_array($status->getFirstModel()) in the method that handles the callback of payment_done

The done is just an example of what you can do there, you are expected to put your own logic there. The payment is done, get it status and act accordingly.

from payumlaravelpackage.

makasim avatar makasim commented on May 27, 2024

The fix to make it work:

<?php
return \Response::json(array(
            'status' => $status->getValue(),
            'details' => iterator_to_array($status->getFirstModel()->getDetails())
        ));

But I advice you to completely rewrite the done action.

from payumlaravelpackage.

makasim avatar makasim commented on May 27, 2024

Getting 0 as hash for the targetUrl

The issue title is a bit confusing and does not correlate with the issue body. Do you still have a problem with hash or the iterator issue is the only you face for now.

from payumlaravelpackage.

perryborst avatar perryborst commented on May 27, 2024

He Maksim,

Thanx for your reply! The 0 hash problem is fixed, i was behind a little bit and i didn't have the latest update in the Token Class. The other issue is not really an issue as i was able to get the details in a different way. (it was too late last night i'm afraid and my brains allready had shut down i believe)

Thnx a lot for your quick reply and a very nice framework! Shall i write some spoecific laravel 5.2 documentation? I can imagine users that just started with laravel will need some time to get it all together.

from payumlaravelpackage.

makasim avatar makasim commented on May 27, 2024

Thnx a lot for your quick reply and a very nice framework! Shall i write some spoecific laravel 5.2 documentation?

That would be great. I am not laravel dev so it was always hard to show how to do things the laravel way

from payumlaravelpackage.

perryborst avatar perryborst commented on May 27, 2024

Will do, give me a couple of days to make it a bit more complete and i'll put thorough walk-through in the wiki of the PayumLaravelPackage.

from payumlaravelpackage.

brandonfredericksen avatar brandonfredericksen commented on May 27, 2024

I am trying to get this working for laravel 5.2. Some documentation or help would be greatly appreciated!

from payumlaravelpackage.

Related Issues (20)

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.