Support » Plugins » modification to paypal integration on Cubepoints

  • Resolved rafa1

    (@rafa1)


    I want a user to be able to submit a number of Cubepoints on a form, and have that exact number appear as their cubepoints.

    So far, after much research, the closest I got was using the paypal integration. I now have a submit form that updates the amount of points.

    The only problem now is that I don’t know how to skip the paypal part. Does anyone know how to do that? While we’re at it, does anyone know how to deduct x number of points for each purchase. I want to make it deduct 10,000 points so that the number typed is the exact number of points. In other words, deducting that many points would reset before updating.

    Any ideas? Much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rafa1

    (@rafa1)

    Ok, I’m making progress. I’m looking at code on the plugin file. I’m looking through the PHP. I skipped all the parts I saw were unimportant. Here is the code. i’m stuck. perhaps someone here can point out what needs to be changed.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter rafa1

    (@rafa1)

    I think this is important. It’s part of the code above. btw, the code above is all of the plugin code minus the country currency options. the second part is what was after the first

    function cp_module_paypal_ipn(){
    	if($_GET['cp_module_paypal_ipn']!=''){
    	// read the post from PayPal system and add 'cmd'
    	$req = 'cmd=_notify-validate';
    	foreach ($_POST as $key => $value) {
    	$value = urlencode(stripslashes($value));
    	$req .= "&$key=$value";
    	}
    	if(get_option('cp_module_paypal_sandbox')){
    		$loc = 'ssl://www.sandbox.paypal.com';
    	}
    	else{
    		$loc = 'ssl://www.paypal.com';
    	}

    Anyone know what ‘ipm’, ‘cmd’, or anything with the ‘$’ means? I think those are the most important parts.

    Thread Starter rafa1

    (@rafa1)

    ok, ipm is instant payment notification. That’s through paypal

    Thread Starter rafa1

    (@rafa1)

    Change of directions. I’m customizing this ‘questions4points’ module. Will be a ton easier.

    http://cubepoints.com/forums/topic/answer-question-for-points-module/#post-2520

    Hmm…somehow close this thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘modification to paypal integration on Cubepoints’ is closed to new replies.