Upgrades not linking to paypal correctly

When I try to test the payments in the Upgrades plug in by using the paypal sandbox, but even with that option selected Upgrades still points to the regular paypal is there anything that I can do about this?

  • donloper
    • New Recruit
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post"><br />

    <input name="cmd" value="_xclick" type="hidden"><br />

    <input name="business" value="[email protected]" type="hidden"><br />

    <input name="item_name" value=" Beta Credits" type="hidden"><br />

    <input name="item_number" value="5" type="hidden"></p>

    <p> <input name="amount" value="5" type="hidden"><br />

    <input name="no_shipping" value="1" type="hidden"><br />

    <input name="return" value="http://beta.ninnypants.com/wp-admin/upgrades.php?page=upgrades_credits&updated=true&updatedmsg=Transaction+Complete%21" type="hidden"><br />

    <input name="cancel_return" value="http://beta.ninnypants.com/wp-admin/upgrades.php?page=upgrades_credits&updated=true&updatedmsg=Transaction+Canceled%21" type="hidden"><br />

    <input name="notify_url" value="http://beta.ninnypants.com/paypal.php" type="hidden"><br />

    <input name="no_note" value="1" type="hidden"><br />

    <input name="currency_code" value="USD" type="hidden"><br />

    <input name="lc" value="US" type="hidden"><br />

    <input name="custom" value="5_5_USD_4" type="hidden"></p>

    <p> <input name="bn" value="PP-BuyNowBF" type="hidden"><br />

    <p class="submit" style="border: medium none ; padding-top: 2px;"><br />

    <input name="Submit" value="PayPal" type="submit"><br />
    </p><br />
    </form>

  • donloper
    • New Recruit

    Tried the new plugin but is still didn’t work. I figured it out though you need to change this:

    $tmp_button = '
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="' . get_site_option( "upgrades_paypal_email" ) . '">
    <input type="hidden" name="item_name" value="' . $current_site->site_name . ' Credits">
    <input type="hidden" name="item_number" value="' . $tmp_credits . '">
    <input type="hidden" name="amount" value="' . $tmp_amount . '">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="return" value="' . $blog_url . 'wp-admin/upgrades.php?page=upgrades_credits&updated=true&updatedmsg=' . urlencode(__('Transaction Complete!')) . '">
    <input type="hidden" name="cancel_return" value="' . $blog_url . 'wp-admin/upgrades.php?page=upgrades_credits&updated=true&updatedmsg=' . urlencode(__('Transaction Canceled!')) . '">
    <input type="hidden" name="notify_url" value="' . $blog_url . 'paypal.php">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="' . get_site_option( "upgrades_currency" ) . '">
    <input type="hidden" name="lc" value="' . get_site_option( "upgrades_paypal_site" ) . '">
    <input type="hidden" name="custom" value="' . $tmp_credits . '_' . $tmp_amount . '_' . get_site_option( "upgrades_currency" ) . '_' . $current_user->ID . '">
    <input type="hidden" name="bn" value="PP-BuyNowBF">
    <p class="submit" style="border:none;padding-top:2px;">
    <input type="submit" name="Submit" value="PayPal">
    </p>
    </form>
    ';

    To this:

    $tmp_button = '
    <form action="'.$action.'" method="post">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="business" value="' . get_site_option( "upgrades_paypal_email" ) . '">
    <input type="hidden" name="item_name" value="' . $current_site->site_name . ' Credits">
    <input type="hidden" name="item_number" value="' . $tmp_credits . '">
    <input type="hidden" name="amount" value="' . $tmp_amount . '">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="return" value="' . $blog_url . 'wp-admin/upgrades.php?page=upgrades_credits&updated=true&updatedmsg=' . urlencode(__('Transaction Complete!')) . '">
    <input type="hidden" name="cancel_return" value="' . $blog_url . 'wp-admin/upgrades.php?page=upgrades_credits&updated=true&updatedmsg=' . urlencode(__('Transaction Canceled!')) . '">
    <input type="hidden" name="notify_url" value="' . $blog_url . 'paypal.php">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="currency_code" value="' . get_site_option( "upgrades_currency" ) . '">
    <input type="hidden" name="lc" value="' . get_site_option( "upgrades_paypal_site" ) . '">
    <input type="hidden" name="custom" value="' . $tmp_credits . '_' . $tmp_amount . '_' . get_site_option( "upgrades_currency" ) . '_' . $current_user->ID . '">
    <input type="hidden" name="bn" value="PP-BuyNowBF">
    <p class="submit" style="border:none;padding-top:2px;">
    <input type="submit" name="Submit" value="PayPal">
    </p>
    </form>
    ';

  • Andrew
    • Champion of Loops

    Hiya,

    Credits are attached to users so they can spend the credits on different blogs. Most WPMU sites allow users to have multiple blogs. Upgrades enable specific features on individual blogs so they are not tied to users.

    I’m afraid if you need it to function differently you’ll need to modify the plugin.

    Thanks,

    Andrew

  • James Kirk
    • WPMU DEV Initiate

    Please accept my apologies.

    I realize you folks are busy, and the last thing I would want to do as a paying customer is add to that burden. What I would try to do is help guide myself and others that might be having challenges with any of the Premium WordPress Dev plugins that connect to PayPal and are no longer functioning properly.

    Many folks, myself included will do searches on the forums database starting narrow and expanding out from there. From that research I came across this particular thread. While I do not believe there was anything in this thread that connected the issues, clearly, your gracious reply to that other thread makes this connection.

    If I had been searching for this challenge, and came across this post, I would have been taken there and confirmed there was a connection. And while, I’m sure you’ll have this fixed up likety split, next week as you indicated, at some point, someone might find this thread, and realize all is going to be well in the world.

    That’s the only reason for posting here. Not to abuse the system, or take up anyone’s time unnecessarily. I do apologize, most sincerely if this action was inappropriate, as my intention was definitely to be helpful, not a needy customer!

    Thanks,

    James.