[]Downloaded the PHP NVP sample code from https://cms.paypal.com/au/cgi-bin/?cmd=_render-content&content_ID=developer/library_code and put it up on my site test url is http://test.webcontrolroom.com/data_files/dans_temp_api_folder/paypal/php_nvp_samples/GetBalance.php
[]I logged in with my main account and requested API credentials and added these (user, pass and security) to the constants.php file
[*]I have also signed up for the Sandbox but I’m really not sure what to do once I’m in there
[/LIST]
Hi guys I am building a simple script to check balance with the PayPal API. I have worked with other simple APIs but this one seems like there is a lot to it. I really just need to know what things need to be in place for the API to work. Here is an idea of what I have done.
[LIST=1]
I don’t really understand how the scripts are supposed to work. i.e. I can’t see where in the scripts it asks for a paypal username to check (the balance). I imagine the steps are the following:
- Request API access and add these details to constants.php (which I have done)
- Log into the account that I want to check the balance for and provide API access for the username I set up above (I have also done this but in the live environment)
- Tell the scripts which username to check the balance for (I don’t know where to do this but you must have to do this otherwise how does it know)
The URL used in the scripts is the sandbox URL and I have just set up an account in the sandbox but I don’t know what to do with it. I figured I’d do the allow API access thing but there doesn’t seem to be an option for that so I’m a bit stuck.
Thanks if anyone can give us a quick overview of this.
Dan