Comments (7)
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.
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.
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.
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.
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.
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.
I am trying to get this working for laravel 5.2. Some documentation or help would be greatly appreciated!
from payumlaravelpackage.
Related Issues (20)
- Any plans to support Moneris?
- Composer install fails laravel 5.1 HOT 4
- ReflectionException in Container.php line 737: Class payum does not exist HOT 12
- Does this package support laravel 5.2? HOT 3
- Class payum does not exist HOT 1
- Why Using Core version 1.0.0 HOT 2
- Request Cancel{model: ArrayObject} is not supported HOT 2
- GetHumanStatus{model: ArrayObject} is not supported HOT 6
- Trait 'Payum\Core\GatewayAwareTrait' not found HOT 13
- Is this Compatible with latest laravel? 5.2 or 5.3? HOT 4
- Request GetHumanStatus{model: ArrayObject} is not supported. HOT 1
- Payum/PayumLaravelPackage paypal express checkout capture route not working
- Is this a active branch and compatible with latest laravel? 5.7 or 5.8?
- Missing decimal point in amount when using EloquentStorage and OmnipayBridge
- Request Refund{model: ArrayObject} is not supported. Make sure the gateway supports the requests and there is an action which supports this request (The method returns true). There may be a bug, so look for a related issue on the issue tracker. HOT 1
- Subscription defined by a start and end date.
- Notify Controller doUnsafeAction doesn't resolve gateway name parameter
- Configuration from a database?
- Not installing, Laravel Container issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payumlaravelpackage.