PayPal

paypal.inc
  1. global $paypal_context, $paypal_url, $paypal_api_url, $paypal_api_version;
  2.  
  3. $paypal_context = 'sandbox';    // 'sandbox' or 'live'
  4.  
  5. if ($paypal_context == 'sandbox') {
  6.     $paypal_api_url = 'https://api-3t.sandbox.paypal.com/nvp';
  7.     $paypal_url = 'https://www.sandbox.paypal.com';
  8. }
  9. else {
  10.     $paypal_api_url = 'https://api-3t.paypal.com/nvp';
  11.     $paypal_url = 'https://www.paypal.com';
  12. }
  13.  
  14. $paypal_api_version='124';
  15.  
  16. global $paypal_username, $paypal_password, $paypal_signature;
  17.  
  18. if ($paypal_context == 'sandbox') {
  19.     $paypal_username = false;
  20.     $paypal_password = false;
  21.     $paypal_signature = false;
  22. }
  23. else {
  24.     $paypal_username = false;
  25.     $paypal_password = false;
  26.     $paypal_signature = false;
  27. }
  28.  
  29. global $paypal_log;
  30.  
  31. $paypal_log=true;

Comments

To add a comment, click here.