snowplow-archive / codeigniter-paypal-ipn Goto Github PK
View Code? Open in Web Editor NEWA CodeIgniter library for working with the PayPal IPN (Instant Payment Notification) service
A CodeIgniter library for working with the PayPal IPN (Instant Payment Notification) service
That is technically broken. It will not properly replace newlines with a carriage return and then a newline. Double quotes must be used otherwise the string literal of \n will be attempted to be matched.
Create composer.json
I keep getting this error, even though i double-checked and double changed the email in the config file, Still getting the error when using Paypal's IPN Simulator.
What's wrong?
See #6 for the details of the line-item option fixes.
hello i want to know that is your class is also sufficient for recuring payment
After setting up, when I run a test order I get a successful order logged in the db and then right after I get another record of failed in the db. Any idea why this is happening?
I have a paypal button with a dropdown where a user can select 2 different items. The dropdown info is not being inserted to the db. Any ideas on whether i'm doing something wrong or if this is a bug?
I've started using your fantastic library, and testing works just fine, I see transactions through the log database and for orders and order items. The API on my side is fully accessible and CSRF is disabled for that URI.
However, Paypal's IPN history keeps notifying me about failing!? I'm not sure how to debug this now as Paypal says error 500 was thrown, my CI logs don't show any errors, and I see successful entries for logs and IPN's come through just fine. I'm assuming 'something' is failing somewhere during the response from paypal, maybe I don't respond back?
Any ideas where to start with this? I am using a simple IPN response from a web payment form against paypal.
e.g. support for web_accept
Hi,
I have some confusion that is it also generate paypal buy now button or form?
if yes, then how it get the ipn value (return url) and other field like item name, amount etc ?
Thanks,
B. Singh
I am having an error with items having the same name (but different SKUs) are not being correctly added to the database on order extraction.
My use case is:
The site offers multiple variations of a product, which is tracked by the SKU. So the order could look like:
"Rugged Mtn. Bike"
sku: "MTNBIKE"
qnty: 1
price: $100
"Rugged Mtn. Bike"
sku: "MTNBIKE-RED"
qnty: 1
price: $150
This results in only one item being added to the order items db table. But the totals of the transactions being correct.
If you have time, and an idea for a quick fix, please let me know, otherwise I'll do a branch and see if I can't put something together!
Thanks
From @clarkgriswold:
You're setting $this->order['discount'] by taking the sum of orderItems
mc_gross and subtracting order mc_gross which ends up being the tax but
as a negative value. Just wondering what the idea is here.
The basic idea was that, if you take away the sum of the line item mc_gross's from the order's mc_gross, you are left with the discount which was applied to that order as a line item. But: PayPal IPN already returns a discount
field, so I think it would be better to remove this custom discount calculation behaviour (or at least rename it to calculated_discount
so it doesn't overwrite PayPal IPN's discount).
Thoughts?
PayPal is telling me that the IPNs are not being received correctly for payment transactions. It seems odd because NONE of the transactions in PayPal's "IPN History" that are the payment type go through. They are all marked as a 500 response code and "retrying".
But ALL transaction types of other types (such as refund) are giving the HTTP 200 response and are marked as "sent".
And finally, even though the "IPN History" shows all payment transactions as 500 codes, all the corresponding orders have been added to my DB correctly.
Any idea what the issue could be?
Move order status into a new table tracking order history, add support for refunds into that order history.
First of all, great library, appreciate all the work.
I recently setup the library and was testing in on the PayPal sandbox, everything appears to work great, except 'ipn_order_items' is not being filled with any items.
Is this a known issue with the library when used with the sandbox, or is there a way I can verify that products are correctly being added to the DB before going live?
Thanks.
Probably MIT as that's quite popular in the PHP world. Vote for this one if it's important to you.
Hi,
How would you implement recurring payments profile for the IPN. When I try I get errors including an undefined index for the payment status variable.
Thanks
Hi,
I want to pass product description so that it will be visible on paypal receipt email. Currently I am using $params to pass description. Its showing on paypal while paying but not on email received from paypal. How can I shwo information of products in email using this API??
Thanks
Baljit
Nohidiksjwjwj
If you want this, vote this issue up so I know this is important
I have set this up on several CI 2 installs and cannot get any of them to work. The current install is with CI 2.1 and is using spark php-activeRecord 2.0.2 model. I am a newbie to CI, but had at one point gotten this to work, I don't remember what i did, but now it won't even work with a fresh install and only running the ipn without any tweeks, and no activerecord.
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.