davespring Posted December 7, 2009 Share Posted December 7, 2009 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 More sharing options...
aeroswat Posted December 7, 2009 Share Posted December 7, 2009 Need more information. Are you getting an error code or is it just not doing what you want it to do? Link to comment https://forums.phpfreaks.com/topic/184288-help-needed/#findComment-972883 Share on other sites More sharing options...
davespring Posted December 7, 2009 Author Share Posted December 7, 2009 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 More sharing options...
aeroswat Posted December 7, 2009 Share Posted December 7, 2009 But you didn't answer my question though. Is it giving you an error or is it just not doing it? Link to comment https://forums.phpfreaks.com/topic/184288-help-needed/#findComment-972894 Share on other sites More sharing options...
aeroswat Posted December 7, 2009 Share Posted December 7, 2009 Also are you trying to send it twice before you tell the person it wasn't sent? If so good if no then your if statements are asking the same thing Link to comment https://forums.phpfreaks.com/topic/184288-help-needed/#findComment-972897 Share on other sites More sharing options...
davespring Posted December 7, 2009 Author Share Posted December 7, 2009 Yes, Im trying to send it the first time, and then if I dont get a response, I will try again. Then if it doesnt return again, itll show the 'not sent' message. Link to comment https://forums.phpfreaks.com/topic/184288-help-needed/#findComment-972925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.