WordPress.org

Support

Support » Plugins and Hacks » Paid Memberships Pro » [Plugin: Paid Memberships Pro] Quick hack for Canadian dollars in Stripe

[Plugin: Paid Memberships Pro] Quick hack for Canadian dollars in Stripe

  • Stripe beta is now available in Canada. PMPro only allows USA dollar for Stripe, but a quick hack can access Paypal’s dropdown list to choose CDN dollars instead.

    Open file ‘paymentsettings.php’ in directory ‘adminpages’ and alter lines #230 and #240:

    #230:

    <tr class="gateway gateway_stripe gateway_authorizenet" <?php if($gateway != "authorizenet" /* && $gateway != "stripe" */) { ?>style="display: none;"<?php } ?>>

    #240:

    <tr class="gateway gateway_ gateway_paypal gateway_paypalexpress" <?php if(!empty($gateway) && $gateway != "paypal" && $gateway != "paypalexpress" && $gateway != "stripe") { ?>style="display: none;"<?php } ?>>

    Comment out (or remove) $gateway != "stripe" on line #230 and add && $gateway != "stripe" on line #240.

    Quick and dirty but works until this gets revised.

    http://wordpress.org/extend/plugins/paid-memberships-pro/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I was really excited about this fix.

    I tried it however and when you save your settings now matter what the currency always reverts to USD.

    And when trying to make a payment on my website with PMPro and Stripe I still get the error:

    Error: Invalid currency: usd

    Sad times.

    You’re right Brady; you also have to make a change around line 32 where fixed currency is set:

    if($_POST['gateway'] == "authorizenet" || $_POST['gateway'] == "stripe")
    pmpro_setOption("currency", $currency_fixed);
    else
    pmpro_setOption("currency", $currency_paypal);

    just remove the || $_POST['gateway'] == "stripe" or comment it out, that way the program will use the paypal currency options. Sorry, I forgot that line.

    Sounds awesome!

    I also contacted PMPro yesterday and they’ve made an update now to the plugin to fix it so that’s awesome too! 🙂

    Plugin Author Jason Coleman

    @strangerstudios

    FYI, that update is available in the current dev release:
    http://github.com/strangerstudios/paid-memberships-pro/tree/dev

    … and will be in the 1.5.3 release version.

    Great! I’ll go get it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Paid Memberships Pro] Quick hack for Canadian dollars in Stripe’ is closed to new replies.
Skip to toolbar