Jump to content

Help needed


davespring

Recommended Posts

I wonder whether anyone can help me?

 

$response = $api->pointTransfer('4d6a55744e4459354e413d3d', +.50, null, 'None');

 

That doesnt work, but this does...

 

$response = $api->pointTransfer($_SESSION['userInfo']['userInfo']['mooUserId'], +2 * $stake, null, 'None');

 

Where $_SESSION.... is the string like the top piece, and the +2 * $stake is like the +.50

 

Anyone know?

Link to comment
https://forums.phpfreaks.com/topic/184288-help-needed/
Share on other sites

It should send a request through to an external server thats defined in an outside file, i forgot to include this part.

 

$api = new MoolaAPI();

$response = $api->pointTransfer('4d6a55744e4459354e413d3d', +.50, null, 'None');

if (!$response['pointTransferInfo']['confirmationId']) {
$response = $api->pointTransfer('4d6a55744e4459354e413d3d', +.50, null, 'None');
}
if (!$response['pointTransferInfo']['confirmationId']) {
die('Unable to send');
exit();
}	

Link to comment
https://forums.phpfreaks.com/topic/184288-help-needed/#findComment-972885
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.