logicalgrape / paypal-ipn-laravel Goto Github PK
View Code? Open in Web Editor NEWA PayPal IPN client for Laravel.
License: MIT License
A PayPal IPN client for Laravel.
License: MIT License
Hi, great you created this package. Would very much like to use it. Any plans on making it available to Laravel 5? Thanks!
Today when I run IPN::getOrder()
I get a CurlRequestException
with the following message:
cURL error: [35] error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number' in vendor/mike182uk/paypal-ipn-listener/src/PayPal/Ipn/Request/Curl.php:93
According to this question, Paypal has updated their SSL version due to the POODLE attack.
By default, the curlVerifier uses SSL v3, but it can be overrided with the forceSSLv3()
method.
In the IPN::getOrder()
method, when the $request
handler is created we should do something like:
$request->forceSSLv3(FALSE);
It worked on my case. I can't make a pull request for the moment, but if you want you can do it.
Cheers!
I was trying to implement this package with larave 4.2 but I was getting "no handshake" from IPN sandbox.. Turns out the app is using the wrong SSL version,, should be set to 4
I have already applied $ request-> forceSSLv3 (FALSE); but now I will throw this error, please help, urgent
LogicalGrape \ PayPalIpnLaravel \ Exception \ InvalidIpnException
PayPal as responded with INVALID
Open: /home/extrasistemas/hydro.extrasistemas.com/vendor/logicalgrape/paypal-ipn-laravel/src/LogicalGrape/PayPalIpnLaravel/PayPalIpn.php
$listener = new PayPalListener($request);
$listener->setMode($this->getEnvironment());
if ($listener->verifyIpn()) {
return $this->store($request->getData());
} else {
throw new InvalidIpnException("PayPal as responded with INVALID");
}
}
Every time i try to install this using composer i get this.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v4.1.9
- Conclusion: don't install laravel/framework v4.1.9
- Conclusion: don't install laravel/framework v4.1.8
- Conclusion: don't install laravel/framework v4.1.7
- Conclusion: don't install laravel/framework v4.1.6
- Conclusion: don't install laravel/framework v4.1.5
- Conclusion: don't install laravel/framework v4.1.4
- Conclusion: don't install laravel/framework v4.1.3
- Installation request for logicalgrape/paypal-ipn-laravel dev-master -> satisfiable by logicalgrape/paypal-ipn-laravel[d
ev-master].
- Conclusion: don't install laravel/framework v4.1.2
- Conclusion: don't install laravel/framework v4.1.1
- logicalgrape/paypal-ipn-laravel dev-master requires illuminate/support 4.0.* -> satisfiable by laravel/framework[v4.0.0
, v4.0.1, v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9], illuminate/support[v4.0.0, v4.0.1, v4.0.1
0, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].
- Can only install one of: laravel/framework[v4.1.0, v4.0.0].
- Can only install one of: laravel/framework[v4.1.0, v4.0.1].
- Can only install one of: laravel/framework[v4.1.0, v4.0.10].
- Can only install one of: laravel/framework[v4.1.0, v4.0.2].
- Can only install one of: laravel/framework[v4.1.0, v4.0.3].
- Can only install one of: laravel/framework[v4.1.0, v4.0.4].
- Can only install one of: laravel/framework[v4.1.0, v4.0.5].
- Can only install one of: laravel/framework[v4.1.0, v4.0.6].
- Can only install one of: laravel/framework[v4.1.0, v4.0.7].
- Can only install one of: laravel/framework[v4.1.0, v4.0.8].
- Can only install one of: laravel/framework[v4.1.0, v4.0.9].
- don't install illuminate/support v4.0.0|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.1|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.10|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.2|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.3|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.4|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.5|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.6|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.7|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.8|don't install laravel/framework v4.1.0
- don't install illuminate/support v4.0.9|don't install laravel/framework v4.1.0
- Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[v4.1.0, v4.1.1, v4.1.2, v4.1.3, v4
.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
If PayPal resubmits the IPN request, additional order items (duplicates) are added into the ipn_order_items table.
See:
After following all provided instructions, the IPN Simulator returns a 500 error.
I believe I have done everything as detailed and have not made any amendments.
Does anyone have any suggestion please as to why this might be that case? I appreciate this is vague, but it is all the IPN Simulator tells me.
Update: If I remove the line $order = IPN::getOrder(); which obviously stops the function from doing anything IPN Simulator now reports "Message Sent" and no error.
I see this a new project and it looks promising, would it be possible to add some usage documentation?
Importing the service provider is obviously straightforward but what about setting up the route for the ipn listener and getting notified of a received ipn?
After doing all the steps from the listing i have to redirect my site to paypal.
What is the URL for the same?
means how to set payment information, payer_id, success, cancel and notify url , etc parameter? Please provide us the full code example. No any plugin available for go paypal site and then make payment.
Hi
How to set the listener path for the package.how the paypal will know which path it has to send response.
For example in my application
Controller is paymentcontroller-getipnresponse()
i have to get the response inside the getipnresponse() function.
Thanks in advance....
Vasanthan
This is just a small annoyance with the readme instructions. If you don't publish the migrations, they won't be included in your application's migrations once you deploy to another server.
php artisan migrate:publish logicalgrape/paypal-ipn-laravel
php artisan migrate
I believe the following requirement is causing issues in Laravel 4.1.x:
"illuminate/support": "4.0.*"
Should it be changed to ~4.0
I have not tested it though with the latest version of laravel.
I have already applied $ request-> forceSSLv3 (FALSE); but now I will throw this error, please help, urgent
LogicalGrape \ PayPalIpnLaravel \ Exception \ InvalidIpnException
PayPal as responded with INVALID
Open: /home/extrasistemas/hydro.extrasistemas.com/vendor/logicalgrape/paypal-ipn-laravel/src/LogicalGrape/PayPalIpnLaravel/PayPalIpn.php
$listener = new PayPalListener($request);
$listener->setMode($this->getEnvironment());
if ($listener->verifyIpn()) {
return $this->store($request->getData());
} else {
throw new InvalidIpnException("PayPal as responded with INVALID");
}
}
I got this error. Any idea to fix it?
How can i use it with mongdb ??
Hi !
As far as I can see, this plugin is not supported by Laravel 4.2 yet..
Am I right?
Hi,
Open the newly created controller and add the following to the store action
$order = IPN::getOrder();
should I get something in the database while adding this and only this in the IpnController. with database remains empty, both with IPN tester from paypal and sandbox test.
Am I missing something ?
Probably a typo
Incorrect:
php artisan controller:make IpnController --only=post
Correct:
php artisan controller:make IpnController --only=store
Hi,
please update composer.json to use "mike182uk/paypal-ipn-listener" : "v2.0.1"
Something as critical as this needs unit tests!
Encounter PHP fatal error when I tried to perform a refresh/rollback after installing this package
PHP Fatal error: Call to undefined method Illuminate\Database\Schema\MySqlBuilder::dropTable()
I did some digging and found that dropTable is used for function down() in both CreateIpnOrderItemOptions & CreateIpnOrderItems class.
Change dropTable to drop seems to have the problem fixed.
thanks
TK Chuah
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.