Donate

If you find any of the plugins I write useful then please consider making a donation. These donations can be used to offset the cost of my web hosting allowing me to produce more plugins for the e107 community

Welcome

Username:

Password:


Remember me

Gluons Gluons

Login to view your stats

Online

Guests: 1, Members: 0 ...

most ever online: 377
(Members: 0, Guests: 377) on 07 Jun : 07:44

Members: 1222
Newest member: rsetser

Forums

e107 Gold :: Forums :: Gold System Forums :: Problems - Gold System Bug Discussion
 
<< Previous thread | Next thread >>
I got PayPal to work!
Moderators: Main Admin, =Johnny=, Gold Father, raziel23x, 2dopey, schlrech, nlstart, gary231178, SimonP, fivestar, ^Shei^
Author Post
casimps1

Mon Sep 06 2010, 01:42am
[ ]
Member: 544
Joined: 11-Apr-2009

Posts: 3
Gluons: gold 49,960
Spent: gold 4,190

Send a present to this user
View their 0 presents
View their 0 assets

I've been trying to get the system for purchasing additional gold through PayPal to work all day today and I finally managed to do it. Since I've seen a few other people posting with problems I thought I'd mention what I discovered:

1) You must configure your PayPal Notify URL to be <yoursite>/e107_plugins/ gold_system/paypal.php. The Return URL and Cancel URL are up to you and irrelevant to the transaction being completed correctly.

2) You cannot have the e107 maintenance flag set. This stumped me for a long time until I looked in the server logs and saw the PayPal server getting redirected to the maintenance page when it tried to access the notify URL (paypal.php)

3) Similarly, e107 cannot be configured to be a "members only" website. This is configured under Site Preferences->User Registration. When e107 is set to be members only, paypal.php will be redirected to a login page thus causing the notification to fail

4) I'm not sure if this is actually a problem or not, but I noticed that the paypal.php included with the gold plugin uses unsecure HTTP whereas the PayPal code samples use SSL. At the very least, it seems more correct to use SSL. To do this, you'll need to change the line in paypal.php from this:

$fp = fsockopen (' www.paypal.com' , 80, $errno, $errstr, 30 );


to this:

$fp = fsockopen ('ssl:// www.paypal.com' , 443, $errno, $errstr, 30);


Hope this info helps someone!
Back to top
orb

Wed Oct 24 2012, 08:52pm
Stay strong

[ ]
Member: 1242
Joined: 2-Jun-2012

Posts: 6
Gluons: gold 42,247
Spent: gold 35,241

Send a present to this user
View their 0 presents
View their 0 assets

I stiil got same gold quantity as much i pay.
For example i pay 1 pound i got 1 gold, i pay 3 pounds i got 3 golds.
In setting i set that for 1 pound u get 1000 golds, but it's not working... Have someone solution for this?
Back to top
 

Jump:     Back to top

Last seen

  • rsetser gold 44,250
    [ 2 weeks, 3 hours, 16 mins, 4 secs ago ]
  • diehard gold 23,475
    [ 4 years, 3 months, 3 weeks, 1 day, 15 hours, 18 mins, 47 secs ago ]
  • pss0ft gold 49,700
    [ 4 years, 4 months, 4 days, 5 hours, 22 mins, 57 secs ago ]
  • gefy gold 300,240
    [ 4 years, 4 months, 2 weeks, 2 days, 6 hours, 31 mins, 41 secs ago ]
  • Hiroyuki0487 gold 44,600
    [ 4 years, 5 months, 4 weeks, 20 hours, 49 mins, 23 secs ago ]
  • swedsnake gold 23,540
    [ 4 years, 5 months, 4 weeks, 1 day, 17 hours, 50 mins, 44 secs ago ]
  • stedie gold 9,326
    [ 4 years, 6 months, 3 weeks, 3 days, 2 hours, 56 mins, 4 secs ago ]
  • orb gold 332,720
    [ 4 years, 6 months, 3 weeks, 5 days, 3 hours, 38 mins, 50 secs ago ]
  • rossv gold 49,150
    [ 4 years, 7 months, 3 days, 23 hours, 33 mins, 37 secs ago ]
  • orb gold 52,358
    [ 4 years, 7 months, 2 weeks, 54 mins, 27 secs ago ]

Online

Guests: 1 Members: 0

    On this page: 1
    Members: 1222, Newest: rsetser

    Online

    Guests: 1, Members: 0 ...

    most ever online: 377
    (Members: 0, Guests: 377) on 07 Jun : 07:44

    Members: 1222, Newest member: rsetser

    Unanswered Posts

    The following forum posts remain unanswered
    just testing 05 May : 22:21
    Dead Site 05 May : 01:41
    Paypal return a[...] 24 Oct : 17:02
    paypal fail 24 Oct : 16:39
    Auto Userclass 09 Mar : 20:53
    Wishing well Qu[...] 01 Sep : 17:51
    Banner Ads for [...] 30 May : 22:43
    Golf For Calend[...] 30 May : 22:40
    to set up to a [...] 17 Feb : 20:48
    content plugin [...] 11 Oct : 01:32

    View all unanswered posts
    Render time: 0.1471 sec, 0.0336 of that for queries. DB queries: 74. Memory Usage: 1,234kB