paypal_ipn.php

Support for the .
User avatar
bonelifer
Administrator
Administrator
Posts: 477
Joined: 24 Jun 2006, 17:48
Real name: William
Location: htpc.MythBuntu
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

paypal_ipn.php

Postby bonelifer » 19 Aug 2008, 09:49

I'm not sure exactly how to use this other than the the obvious of using an include to include it.

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby igorw » 19 Aug 2008, 10:24


- we're poor!

xCrazy
New member
New member
Posts: 1
Joined: 15 Mar 2009, 01:45
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby xCrazy » 15 Mar 2009, 19:50

thanks!!

User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 02 Nov 2010, 19:41

Igor, would please explain as detailed as possible on how to apply the code you showed above? :)

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby igorw » 02 Nov 2010, 20:05

Even more detailed? :o

1. Include the file
2. Instantiate paypal_ipn
3. Assign fields (as seen above)
4. Output a form pointing to $paypal->paypal_url with the $paypal->hidden_fields() as hidden fields

notify_url is the callback location that is called by paypal when the transaction is completed. You can do steps 1-3 on that page (you can use $paypal->check_ipn() to make sure it's an IPN request) and use the information from $paypal->ipn_data as you wish.

Information about the available data can be found here: https://cms.paypal.com/cgi-bin/marketin ... 91F0M006Y4

- we're poor!

User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 02 Nov 2010, 20:11

This was detailed enough now, thanks a lot, I'll try and report back if it works or anything else keeps preventing me from success :D

User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 02 Nov 2010, 21:16


User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: paypal_ipn.php

Postby tumba25 » 03 Nov 2010, 10:52

And what error do you get?

User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 03 Nov 2010, 18:54

no error, I just want to make sure I used it correctly.

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: paypal_ipn.php

Postby tumba25 » 03 Nov 2010, 22:38

Seems right after a quick look. Try it and see if it works.

User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 06 Nov 2010, 09:40


User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: paypal_ipn.php

Postby tumba25 » 07 Nov 2010, 13:34


User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 23 Nov 2010, 20:15

Can you give me a sample code, I rely a lot on samples and when I see them I know what to do? :)

User avatar
tumba25
Past Contributor
Past Contributor
Posts: 1058
Joined: 24 Oct 2007, 13:10
Real name: Jari Kanerva
Location: Kokkola, Finland.
Contact:

Re: paypal_ipn.php

Postby tumba25 » 23 Nov 2010, 21:29

I have been looking at this library and it don't seem to work as expected. Might be that PayPal has done some changes, I don't know yet.

I have been looking at it but have not had time to finish it yet. I'll post a notice here when its done.

User avatar
Dugi
New member
New member
Posts: 23
Joined: 11 Nov 2008, 11:40
Real name: Dugagjin
Location: Prishtina, Kosova
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: paypal_ipn.php

Postby Dugi » 24 Nov 2010, 09:24

Okay, thanks a lot :D


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Library”

Who is online

Users browsing this forum: No registered users and 2 guests