Undefined variable error in PHP

Hi there, I have attempted to follow the instructions on implementing the Web API, for PayPal integration, put in the required information and uploaded to my host, when accessing the payment.php I get the following errors, I am not versed in PHP, so any help appreciated. I am sure it is something that i have broken something somewhere.....

PHP Notice: Undefined variable: AuthNetCCSelected in D:\CustomerData\webspaces\webspace_0011xxxx\MySpecifiedAppName\payment.php on line 266PHP Notice: Undefined variable: AuthNetBankSelected in D:\CustomerData\webspaces\webspace_0011xxxx\MySpecifiedAppName\payment.php on line 269PHP Notice: Undefined variable: cc_proc in D:\CustomerData\webspaces\webspace_0011xxxx\wwwroot\MySpecifiedAppName\payment.php on line 322PHP Notice: Undefined variable: cc_proc in D:\CustomerData\webspaces\webspace_0011xxxx\MySpecifiedAppName\payment.php on line 324PHP Notice: Undefined variable: cc_proc in D:\CustomerData\webspaces\webspace_0011xxxx\MySpecifiedAppName\payment.php on line 326PHP Notice: Undefined variable: YourLogo in D:\CustomerData\webspaces\webspace_0011xxxx\MySpecifiedAppName\payment.php on line 534

Cheers

Ok, it sounds like you either heavily modified our example, or just blindly copied and pasted a chuck of code out of our examples. Either way, the errors are telling you exactly what is wrong. You're referencing variables that should exist in PaymentSettings.php, but can't be found (either because you're not including PaymentSettings.php, or you've modified the file to remove the variables).

Hi thanks for your reply.

Regarding the example files, the only changes i made were the ones specified in the tutorial, I changed nothing else. No heavy modifications or any shenanigans.

The interesting thing is that I uploaded both exact same files to another webpage that I have and the payment.php loads up successfully, So im assuming that there is something broken or something that i have broken on the original web host that I want it to actually be on. Now that i know the changes I made to the PHP files are not the cause i can focus on the host.

Cheers

Just to update.....

Not sure it matters, The host running PHP version 5.3.10 came up with the mentioned PHP errors, while the host running 5.2.17 worked fine with the example php files. The servers are also different server 2k on the working host and server 2k3 on the non working.

Since it seems i'm the only one to experience the errors, I think its safe to assume that the examples run fine on 5.3.10 ordinarily?

Thanks again

Yes, the examples all work on PHP 5.1 and above. Make sure you're including all the php files (payment.php, LimeLM.php, PaymentSettings.php, pay-thankyou.php, paychecker.php). And make sure they're all in the same folder.