Advertisement:

Author Topic: About wallet "pay with your credits" - Problem  (Read 1094 times)

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
About wallet "pay with your credits" - Problem
« on: October 28, 2014, 02:13:41 am »
Hi, I have an issue. If a user have for example 10eur at his wallet balance and try to make premium ad (cost 5 euro), he must click at "Pay with credits" right?
BUT when click that button, nothing happened, the page redirect to dashboard and the AD is still normal!! NOT premium.

Is this a bug???

If not have a balance and click paypal button, after that the ad is premium normally.

The problem is if he "pay with credits"

any help pleasE?

EuroMonster

  • Newbie
  • *
  • Posts: 24
  • www.euroservicii.ro
Re: About wallet "pay with your credits" - Problem
« Reply #1 on: April 18, 2015, 09:27:17 pm »
Ok, it seems that to remove  ?a=".$amount."  on line 109 (index.php - Paypal plugin) would suffice ...

Quote
function wallet_button($amount = '0.00', $description = '', $rpl = '||', $itemnumber = '101') {
        echo '<a href="'.osc_render_file_url(osc_plugin_folder(__FILE__)."wallet.php&desc=".$description."&rpl=".$rpl."&inumber=".$itemnumber).'"><button class="ui-button-main">'.__("Payer avec mes crédits", "paypal").'</button></a><br />';
    }

If it helps someone!
It worked for me!
Just remove ?a=".$amount."

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: About wallet "pay with your credits" - Problem
« Reply #2 on: April 19, 2015, 02:20:36 pm »
@AdMeGreek
What is url of button?