• I would like to use PayPal sandbox to test my WordPress Sales Site and can find no mention of the PayPal sandbox in the WordPress Profit System plugin documentation.The PayPal buttons are generated by WPS so I cannot see the code for them.

    I have found the following PHP code in one of the plugin routines:

    <?php

    if (!class_exists(‘ubam_dpdemon_notify’)) {
    class ubam_dpdemon_notify {

    var $master;

    function ubam_dpdemon_notify($masterclass) { $this->master = $masterclass; }

    function do_pp_ipn() {
    global $wpdb;
    $mlpBase = $this->master;

    if (!$paypal_sandbox == 0) {
    $paypal_url = “www.sandbox.paypal.com/cgi-bin/webscr”;
    $paypal_ipn_url = “www.sandbox.paypal.com”;
    }
    else {
    $paypal_url = “www.paypal.com/cgi-bin/webscr”;
    $paypal_ipn_url = “www.paypal.com”;
    }
    I have tried hacking this code but failed. What I would like is a non coding solution, if possible, although there appears to be nowhere in the UI to set this condition. Any simple solution would be welcome please!

Viewing 1 replies (of 1 total)
  • if (!$paypal_sandbox == 0) {
    $paypal_url = "www.sandbox.paypal.com/cgi-bin/webscr";
    $paypal_ipn_url = "www.sandbox.paypal.com";
    }

    That part to me would suggest the feature for sandbox testing “is in there” somewhere. That said, you could change that too.

    if ($paypal_sandbox == 0) {
    $paypal_url = "www.sandbox.paypal.com/cgi-bin/webscr";
    $paypal_ipn_url = "www.sandbox.paypal.com";
    }

    And that should change it to sandbox testing and change it back once you are done, but it is worth checking if there is any config files or anything for that plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress Profit System PayPal Sandbox’ is closed to new replies.