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: 5, 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 >>
What did I do wrong with paypal?
Moderators: Main Admin, =Johnny=, Gold Father, raziel23x, 2dopey, schlrech, nlstart, gary231178, SimonP, fivestar, ^Shei^
Author Post
orb

Thu Jul 09 2009, 02:57pm
[ ]
Member: 161
Joined: 31-Jul-2006

Posts: 30
Gluons: gold 51,290
Spent: gold 21,970

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

In config I write:

Unit cost: 1
Amount of gold per unit: 25000

I want that for every euro give to my user 25.000g. What should I write?
Back to top
orb

Mon Jul 13 2009, 11:28am
[ ]
Member: 161
Joined: 31-Jul-2006

Posts: 30
Gluons: gold 51,290
Spent: gold 21,970

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

any idea?
Back to top
orb

Wed Jul 15 2009, 02:11pm
Revd Baz

[ ]
LAN_THEME_12
Member: 3
Joined: 27-Nov-2003

Posts: 510
Gluons: gold 834,459
Spent: gold 282,292

Send a present to this user
View their 17 presents
View their 3 assets
Sunglasses 
That should be exactly right 1 euro for 25000 gold

[ image disabled ]
Back to top
orb

Thu Jul 16 2009, 11:40am
[ ]
Member: 161
Joined: 31-Jul-2006

Posts: 30
Gluons: gold 51,290
Spent: gold 21,970

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

Unit cost: 1 / Amount of gold per unit: 25000 give to my users 1g. for every €. If you donate 1€ give you 1g., if 2€ give you 2g....
Back to top
orb

Sat Jul 18 2009, 09:37am
[ ]
Member: 140
Joined: 5-Oct-2008

Posts: 29
Gluons: gold 50,970
Spent: gold 18,750

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

I think I see the problem right away here. It is within the paypal.php file. Here is how I see it for the version I've got (and I have the same problem)

Line 60 of paypal.php
$gold_param[' gold_amount'] = ($payment_amount * $GOLD_PREF[' buy_gold_cost'] );

The part on line 60 says the above statement. So if you look at it and break it down logically it explicitly says this:

$payment_amount = How much they spent
$GOLD_PREF[' buy_gold_cost'] = How much it costs for your gold.

That's the error right there!! So if they spent 1Euro they get 1Euro!

Instead of "buy_gold_cost" it should be "buy_gold_perunit"

Am I right father??

Back to top
orb

Fri Sep 18 2009, 11:29am
[ ]
Member: 161
Joined: 31-Jul-2006

Posts: 30
Gluons: gold 51,290
Spent: gold 21,970

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

Please, can someone fix this bug?
Back to top
orb

Wed Oct 24 2012, 06:58pm
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

yep this is same for me , and also i just bought golds here in father site. for one pound i got 1 gold
Can someone fix this , this is the main problem definitely
Back to top
 

Jump:     Back to top

Last seen

  • rsetser gold 44,250
    [ 4 months, 3 weeks, 19 hours, 32 mins, 9 secs ago ]
  • diehard gold 23,475
    [ 4 years, 8 months, 7 hours, 34 mins, 52 secs ago ]
  • pss0ft gold 49,700
    [ 4 years, 8 months, 1 week, 4 days, 21 hours, 39 mins, 2 secs ago ]
  • gefy gold 300,240
    [ 4 years, 8 months, 3 weeks, 2 days, 22 hours, 47 mins, 46 secs ago ]
  • Hiroyuki0487 gold 44,600
    [ 4 years, 10 months, 5 days, 13 hours, 5 mins, 28 secs ago ]
  • swedsnake gold 23,540
    [ 4 years, 10 months, 6 days, 10 hours, 6 mins, 49 secs ago ]
  • stedie gold 9,326
    [ 4 years, 11 months, 1 day, 19 hours, 12 mins, 9 secs ago ]
  • orb gold 336,720
    [ 4 years, 11 months, 3 days, 19 hours, 54 mins, 55 secs ago ]
  • rossv gold 49,150
    [ 4 years, 11 months, 1 week, 4 days, 15 hours, 49 mins, 42 secs ago ]
  • orb gold 52,358
    [ 4 years, 11 months, 3 weeks, 17 hours, 10 mins, 32 secs ago ]

Online

Guests: 5 Members: 0

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

    Online

    Guests: 5, 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.1373 sec, 0.0320 of that for queries. DB queries: 111. Memory Usage: 1,375kB