diff --git a/demo/rest/rest-checkout-line-items-v1/CreatePaymentUsingPayPal.php b/demo/rest/rest-checkout-line-items-v1/CreatePaymentUsingPayPal.php index 5d761530..c0504fdf 100644 --- a/demo/rest/rest-checkout-line-items-v1/CreatePaymentUsingPayPal.php +++ b/demo/rest/rest-checkout-line-items-v1/CreatePaymentUsingPayPal.php @@ -10,6 +10,7 @@ */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/demo/rest/rest-checkout-line-items-v1/ExecutePayment.php b/demo/rest/rest-checkout-line-items-v1/ExecutePayment.php index a4de00e7..efb24987 100644 --- a/demo/rest/rest-checkout-line-items-v1/ExecutePayment.php +++ b/demo/rest/rest-checkout-line-items-v1/ExecutePayment.php @@ -21,6 +21,7 @@ */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/demo/rest/rest-checkout-line-items-v1/GetPaymentDetails.php b/demo/rest/rest-checkout-line-items-v1/GetPaymentDetails.php index d00ef2ac..50d895e7 100644 --- a/demo/rest/rest-checkout-line-items-v1/GetPaymentDetails.php +++ b/demo/rest/rest-checkout-line-items-v1/GetPaymentDetails.php @@ -21,6 +21,7 @@ */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/demo/rest/rest-checkout-line-items-v2/CaptureOrder.php b/demo/rest/rest-checkout-line-items-v2/CaptureOrder.php index ad237510..c19a9806 100644 --- a/demo/rest/rest-checkout-line-items-v2/CaptureOrder.php +++ b/demo/rest/rest-checkout-line-items-v2/CaptureOrder.php @@ -12,6 +12,7 @@ */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/demo/rest/rest-checkout-line-items-v2/CreateCaptureOrder.php b/demo/rest/rest-checkout-line-items-v2/CreateCaptureOrder.php index 41208c7d..580a2536 100644 --- a/demo/rest/rest-checkout-line-items-v2/CreateCaptureOrder.php +++ b/demo/rest/rest-checkout-line-items-v2/CreateCaptureOrder.php @@ -11,6 +11,7 @@ * Then load the PayPal object into $PayPal */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/demo/rest/rest-checkout-line-items-v2/GetOrderDetails.php b/demo/rest/rest-checkout-line-items-v2/GetOrderDetails.php index 0fdde380..768069d4 100644 --- a/demo/rest/rest-checkout-line-items-v2/GetOrderDetails.php +++ b/demo/rest/rest-checkout-line-items-v2/GetOrderDetails.php @@ -9,6 +9,7 @@ require_once '../../../includes/config.php'; $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/BillAgreementBalance.php b/samples/rest/billing_agreements/BillAgreementBalance.php index d864b4d2..d8fdb327 100644 --- a/samples/rest/billing_agreements/BillAgreementBalance.php +++ b/samples/rest/billing_agreements/BillAgreementBalance.php @@ -5,6 +5,7 @@ // Create PayPal object. $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/CancelBillingAgreement.php b/samples/rest/billing_agreements/CancelBillingAgreement.php index dd45b856..a58c1383 100644 --- a/samples/rest/billing_agreements/CancelBillingAgreement.php +++ b/samples/rest/billing_agreements/CancelBillingAgreement.php @@ -5,6 +5,7 @@ // Create PayPal object. $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php b/samples/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php index 5b6c9652..c60a1c20 100644 --- a/samples/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php +++ b/samples/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/CreateBillingAgreementWithPayPal.php b/samples/rest/billing_agreements/CreateBillingAgreementWithPayPal.php index d5206e2e..133203ce 100644 --- a/samples/rest/billing_agreements/CreateBillingAgreementWithPayPal.php +++ b/samples/rest/billing_agreements/CreateBillingAgreementWithPayPal.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/ExecuteAgreement.php b/samples/rest/billing_agreements/ExecuteAgreement.php index 4ab4be30..00a52836 100644 --- a/samples/rest/billing_agreements/ExecuteAgreement.php +++ b/samples/rest/billing_agreements/ExecuteAgreement.php @@ -6,6 +6,7 @@ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/GetBillingAgreement.php b/samples/rest/billing_agreements/GetBillingAgreement.php index 5e88541e..642426e7 100644 --- a/samples/rest/billing_agreements/GetBillingAgreement.php +++ b/samples/rest/billing_agreements/GetBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/ReactivateBillingAgreement.php b/samples/rest/billing_agreements/ReactivateBillingAgreement.php index 405242c5..f66af8a2 100644 --- a/samples/rest/billing_agreements/ReactivateBillingAgreement.php +++ b/samples/rest/billing_agreements/ReactivateBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/SearchBillingTransactions.php b/samples/rest/billing_agreements/SearchBillingTransactions.php index 802ce8c1..b51274e2 100644 --- a/samples/rest/billing_agreements/SearchBillingTransactions.php +++ b/samples/rest/billing_agreements/SearchBillingTransactions.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/SetAgreementBalance.php b/samples/rest/billing_agreements/SetAgreementBalance.php index 1ef9c0de..1215e0a5 100644 --- a/samples/rest/billing_agreements/SetAgreementBalance.php +++ b/samples/rest/billing_agreements/SetAgreementBalance.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/SuspendBillingAgreement.php b/samples/rest/billing_agreements/SuspendBillingAgreement.php index a3413689..ae19dc8e 100644 --- a/samples/rest/billing_agreements/SuspendBillingAgreement.php +++ b/samples/rest/billing_agreements/SuspendBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_agreements/UpdateBillingAgreement.php b/samples/rest/billing_agreements/UpdateBillingAgreement.php index a69e8263..c96be4ed 100644 --- a/samples/rest/billing_agreements/UpdateBillingAgreement.php +++ b/samples/rest/billing_agreements/UpdateBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_plans/CreatePlan.php b/samples/rest/billing_plans/CreatePlan.php index f364c76d..3e8a9d05 100644 --- a/samples/rest/billing_plans/CreatePlan.php +++ b/samples/rest/billing_plans/CreatePlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_plans/DeletePlan.php b/samples/rest/billing_plans/DeletePlan.php index 3d39eb98..d1fe39dc 100644 --- a/samples/rest/billing_plans/DeletePlan.php +++ b/samples/rest/billing_plans/DeletePlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_plans/GetPlan.php b/samples/rest/billing_plans/GetPlan.php index a66fb55e..d0fbc1dc 100644 --- a/samples/rest/billing_plans/GetPlan.php +++ b/samples/rest/billing_plans/GetPlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_plans/ListPlans.php b/samples/rest/billing_plans/ListPlans.php index 6687711f..8ee780df 100644 --- a/samples/rest/billing_plans/ListPlans.php +++ b/samples/rest/billing_plans/ListPlans.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/billing_plans/UpdatePlan.php b/samples/rest/billing_plans/UpdatePlan.php index fd4eca3f..1a6c9330 100644 --- a/samples/rest/billing_plans/UpdatePlan.php +++ b/samples/rest/billing_plans/UpdatePlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/AuthorizeOrder.php b/samples/rest/checkout_orders/AuthorizeOrder.php index 82275262..21ac6d32 100644 --- a/samples/rest/checkout_orders/AuthorizeOrder.php +++ b/samples/rest/checkout_orders/AuthorizeOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/CaptureAuthorizedPayment.php b/samples/rest/checkout_orders/CaptureAuthorizedPayment.php index c5b438c0..787fa1f0 100644 --- a/samples/rest/checkout_orders/CaptureAuthorizedPayment.php +++ b/samples/rest/checkout_orders/CaptureAuthorizedPayment.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/CaptureOrder.php b/samples/rest/checkout_orders/CaptureOrder.php index b8d894f3..9f230294 100644 --- a/samples/rest/checkout_orders/CaptureOrder.php +++ b/samples/rest/checkout_orders/CaptureOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/CreateAuthorizeOrder.php b/samples/rest/checkout_orders/CreateAuthorizeOrder.php index 1b540c0f..c7db8ea5 100644 --- a/samples/rest/checkout_orders/CreateAuthorizeOrder.php +++ b/samples/rest/checkout_orders/CreateAuthorizeOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/CreateCaptureOrder.php b/samples/rest/checkout_orders/CreateCaptureOrder.php index 887aeacc..ca6b7979 100644 --- a/samples/rest/checkout_orders/CreateCaptureOrder.php +++ b/samples/rest/checkout_orders/CreateCaptureOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/GetAuthorizePaymentDetails.php b/samples/rest/checkout_orders/GetAuthorizePaymentDetails.php index 84d267bb..bbec44a6 100644 --- a/samples/rest/checkout_orders/GetAuthorizePaymentDetails.php +++ b/samples/rest/checkout_orders/GetAuthorizePaymentDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/GetCapturedPaymentDetails.php b/samples/rest/checkout_orders/GetCapturedPaymentDetails.php index 9543527a..449079be 100644 --- a/samples/rest/checkout_orders/GetCapturedPaymentDetails.php +++ b/samples/rest/checkout_orders/GetCapturedPaymentDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/GetOrderDetails.php b/samples/rest/checkout_orders/GetOrderDetails.php index 13597c2a..78ebd538 100644 --- a/samples/rest/checkout_orders/GetOrderDetails.php +++ b/samples/rest/checkout_orders/GetOrderDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/Reauthorize.php b/samples/rest/checkout_orders/Reauthorize.php index 79255868..726b430a 100644 --- a/samples/rest/checkout_orders/Reauthorize.php +++ b/samples/rest/checkout_orders/Reauthorize.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/RefundCapturedPayment.php b/samples/rest/checkout_orders/RefundCapturedPayment.php index 57b5308e..05f763f0 100644 --- a/samples/rest/checkout_orders/RefundCapturedPayment.php +++ b/samples/rest/checkout_orders/RefundCapturedPayment.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/ShowRefundDetails.php b/samples/rest/checkout_orders/ShowRefundDetails.php index fb212875..aa545a23 100644 --- a/samples/rest/checkout_orders/ShowRefundDetails.php +++ b/samples/rest/checkout_orders/ShowRefundDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/UpdateOrder.php b/samples/rest/checkout_orders/UpdateOrder.php index a81ca73d..f6f22682 100644 --- a/samples/rest/checkout_orders/UpdateOrder.php +++ b/samples/rest/checkout_orders/UpdateOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/checkout_orders/VoidAuthorizedPayment.php b/samples/rest/checkout_orders/VoidAuthorizedPayment.php index 05e168cc..45016437 100644 --- a/samples/rest/checkout_orders/VoidAuthorizedPayment.php +++ b/samples/rest/checkout_orders/VoidAuthorizedPayment.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/AcceptClaim.php b/samples/rest/customer-disputes/AcceptClaim.php index dd4b3006..5dc94048 100644 --- a/samples/rest/customer-disputes/AcceptClaim.php +++ b/samples/rest/customer-disputes/AcceptClaim.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/DisputesAppeal.php b/samples/rest/customer-disputes/DisputesAppeal.php index 84c51cf9..8aeeaa88 100644 --- a/samples/rest/customer-disputes/DisputesAppeal.php +++ b/samples/rest/customer-disputes/DisputesAppeal.php @@ -11,6 +11,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/DisputesEscalate.php b/samples/rest/customer-disputes/DisputesEscalate.php index b0a12780..fd505691 100644 --- a/samples/rest/customer-disputes/DisputesEscalate.php +++ b/samples/rest/customer-disputes/DisputesEscalate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/DisputesMakeOffer.php b/samples/rest/customer-disputes/DisputesMakeOffer.php index db21f555..82ddbd72 100644 --- a/samples/rest/customer-disputes/DisputesMakeOffer.php +++ b/samples/rest/customer-disputes/DisputesMakeOffer.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/ListDisputes.php b/samples/rest/customer-disputes/ListDisputes.php index dd401a8a..53ea636c 100644 --- a/samples/rest/customer-disputes/ListDisputes.php +++ b/samples/rest/customer-disputes/ListDisputes.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/ProvideEvidence.php b/samples/rest/customer-disputes/ProvideEvidence.php index 558d7ebf..892a8d5f 100644 --- a/samples/rest/customer-disputes/ProvideEvidence.php +++ b/samples/rest/customer-disputes/ProvideEvidence.php @@ -16,6 +16,7 @@ */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/SendMessageToOtherParty.php b/samples/rest/customer-disputes/SendMessageToOtherParty.php index 4ff781b4..6ed75cfe 100644 --- a/samples/rest/customer-disputes/SendMessageToOtherParty.php +++ b/samples/rest/customer-disputes/SendMessageToOtherParty.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/SettleDispute.php b/samples/rest/customer-disputes/SettleDispute.php index ea55f203..2cada75a 100644 --- a/samples/rest/customer-disputes/SettleDispute.php +++ b/samples/rest/customer-disputes/SettleDispute.php @@ -8,6 +8,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/ShowDisputeDetails.php b/samples/rest/customer-disputes/ShowDisputeDetails.php index f921f81d..40d9e230 100644 --- a/samples/rest/customer-disputes/ShowDisputeDetails.php +++ b/samples/rest/customer-disputes/ShowDisputeDetails.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/customer-disputes/UpdateDisputeStatus.php b/samples/rest/customer-disputes/UpdateDisputeStatus.php index 57a1905a..30f47788 100644 --- a/samples/rest/customer-disputes/UpdateDisputeStatus.php +++ b/samples/rest/customer-disputes/UpdateDisputeStatus.php @@ -16,6 +16,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/identity/GetUserConsentURL.php b/samples/rest/identity/GetUserConsentURL.php index 3b808928..00ac9ead 100644 --- a/samples/rest/identity/GetUserConsentURL.php +++ b/samples/rest/identity/GetUserConsentURL.php @@ -3,13 +3,14 @@ require_once('../../../autoload.php'); require_once('../../../includes/config.php'); -$configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret, - 'LogResults' => $log_results, - 'LogPath' => $log_path, - 'LogLevel' => $log_level - ); +$configArray = array( + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret, + 'LogResults' => $log_results, + 'LogPath' => $log_path, + 'LogLevel' => $log_level +); $PayPal = new \angelleye\PayPal\rest\identity\IdentityAPI($configArray); diff --git a/samples/rest/identity/GetUserInfo.php b/samples/rest/identity/GetUserInfo.php index 909b8cc2..4ef0a339 100644 --- a/samples/rest/identity/GetUserInfo.php +++ b/samples/rest/identity/GetUserInfo.php @@ -3,13 +3,14 @@ require_once('../../../autoload.php'); require_once('../../../includes/config.php'); -$configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret, - 'LogResults' => $log_results, - 'LogPath' => $log_path, - 'LogLevel' => $log_level - ); +$configArray = array( + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret, + 'LogResults' => $log_results, + 'LogPath' => $log_path, + 'LogLevel' => $log_level +); $PayPal = new \angelleye\PayPal\rest\identity\IdentityAPI($configArray); // To obtain User Info, you have to follow three steps in general. diff --git a/samples/rest/identity/UserConsentRedirect.php b/samples/rest/identity/UserConsentRedirect.php index a889327e..4fd1b666 100644 --- a/samples/rest/identity/UserConsentRedirect.php +++ b/samples/rest/identity/UserConsentRedirect.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice-templates/CreateInvoiceTemplate.php b/samples/rest/invoice-templates/CreateInvoiceTemplate.php index 04ddfe25..ec50e1df 100755 --- a/samples/rest/invoice-templates/CreateInvoiceTemplate.php +++ b/samples/rest/invoice-templates/CreateInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice-templates/DeleteInvoiceTemplate.php b/samples/rest/invoice-templates/DeleteInvoiceTemplate.php index 02d168f8..cd61738c 100755 --- a/samples/rest/invoice-templates/DeleteInvoiceTemplate.php +++ b/samples/rest/invoice-templates/DeleteInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice-templates/GetAllInvoiceTemplates.php b/samples/rest/invoice-templates/GetAllInvoiceTemplates.php index 32d375c9..a8f86f17 100755 --- a/samples/rest/invoice-templates/GetAllInvoiceTemplates.php +++ b/samples/rest/invoice-templates/GetAllInvoiceTemplates.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice-templates/GetInvoiceTemplate.php b/samples/rest/invoice-templates/GetInvoiceTemplate.php index 1c0c4e81..035f0e18 100755 --- a/samples/rest/invoice-templates/GetInvoiceTemplate.php +++ b/samples/rest/invoice-templates/GetInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice-templates/UpdateInvoiceTemplate.php b/samples/rest/invoice-templates/UpdateInvoiceTemplate.php index 2f39967f..47ee4ce6 100755 --- a/samples/rest/invoice-templates/UpdateInvoiceTemplate.php +++ b/samples/rest/invoice-templates/UpdateInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/CancelInvoice.php b/samples/rest/invoice/CancelInvoice.php index d4bd3cd0..47ad5466 100755 --- a/samples/rest/invoice/CancelInvoice.php +++ b/samples/rest/invoice/CancelInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/CreateInvoice.php b/samples/rest/invoice/CreateInvoice.php index 15b38648..73ae22e0 100755 --- a/samples/rest/invoice/CreateInvoice.php +++ b/samples/rest/invoice/CreateInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/CreateThirdPartyInvoice.php b/samples/rest/invoice/CreateThirdPartyInvoice.php index 1ee06e03..1eb66072 100644 --- a/samples/rest/invoice/CreateThirdPartyInvoice.php +++ b/samples/rest/invoice/CreateThirdPartyInvoice.php @@ -10,13 +10,14 @@ require_once('../../../autoload.php'); require_once('../../../includes/config.php'); -$configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret, - 'LogResults' => $log_results, - 'LogPath' => $log_path, - 'LogLevel' => $log_level - ); +$configArray = array( + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret, + 'LogResults' => $log_results, + 'LogPath' => $log_path, + 'LogLevel' => $log_level +); $PayPal = new \angelleye\PayPal\rest\invoice\InvoiceAPI($configArray); diff --git a/samples/rest/invoice/DeleteInvoice.php b/samples/rest/invoice/DeleteInvoice.php index 6f2544a1..f0f3b1dc 100755 --- a/samples/rest/invoice/DeleteInvoice.php +++ b/samples/rest/invoice/DeleteInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/GetInvoice.php b/samples/rest/invoice/GetInvoice.php index f43830af..d13f72e7 100755 --- a/samples/rest/invoice/GetInvoice.php +++ b/samples/rest/invoice/GetInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/GetNextInvoiceNumber.php b/samples/rest/invoice/GetNextInvoiceNumber.php index 6492e5e9..cd4007ef 100755 --- a/samples/rest/invoice/GetNextInvoiceNumber.php +++ b/samples/rest/invoice/GetNextInvoiceNumber.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/GetThirdPartyInvoice.php b/samples/rest/invoice/GetThirdPartyInvoice.php index 33dde5c9..c0c65256 100644 --- a/samples/rest/invoice/GetThirdPartyInvoice.php +++ b/samples/rest/invoice/GetThirdPartyInvoice.php @@ -13,6 +13,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/ListInvoice.php b/samples/rest/invoice/ListInvoice.php index 421b9164..05c0d011 100755 --- a/samples/rest/invoice/ListInvoice.php +++ b/samples/rest/invoice/ListInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/RecordPayment.php b/samples/rest/invoice/RecordPayment.php index 422d8600..23312643 100755 --- a/samples/rest/invoice/RecordPayment.php +++ b/samples/rest/invoice/RecordPayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/RecordRefund.php b/samples/rest/invoice/RecordRefund.php index 85c0b071..e41d4410 100755 --- a/samples/rest/invoice/RecordRefund.php +++ b/samples/rest/invoice/RecordRefund.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/RemindInvoice.php b/samples/rest/invoice/RemindInvoice.php index a49a92fe..15bcc85a 100755 --- a/samples/rest/invoice/RemindInvoice.php +++ b/samples/rest/invoice/RemindInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/RetrieveQRCode.php b/samples/rest/invoice/RetrieveQRCode.php index 969df5e4..7cb7760f 100755 --- a/samples/rest/invoice/RetrieveQRCode.php +++ b/samples/rest/invoice/RetrieveQRCode.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/SearchInvoices.php b/samples/rest/invoice/SearchInvoices.php index 581bd771..db087ec3 100755 --- a/samples/rest/invoice/SearchInvoices.php +++ b/samples/rest/invoice/SearchInvoices.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/SendInvoice.php b/samples/rest/invoice/SendInvoice.php index ee4a7996..615692a3 100755 --- a/samples/rest/invoice/SendInvoice.php +++ b/samples/rest/invoice/SendInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/invoice/UpdateInvoice.php b/samples/rest/invoice/UpdateInvoice.php index 9e89bf2d..a882dcb7 100755 --- a/samples/rest/invoice/UpdateInvoice.php +++ b/samples/rest/invoice/UpdateInvoice.php @@ -3,13 +3,14 @@ require_once('../../../autoload.php'); require_once('../../../includes/config.php'); -$configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret, - 'LogResults' => $log_results, - 'LogPath' => $log_path, - 'LogLevel' => $log_level - ); +$configArray = array( + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret, + 'LogResults' => $log_results, + 'LogPath' => $log_path, + 'LogLevel' => $log_level +); $PayPal = new \angelleye\PayPal\rest\invoice\InvoiceAPI($configArray); diff --git a/samples/rest/notifications/CreateWebhook.php b/samples/rest/notifications/CreateWebhook.php index 71c3b29f..80116ba3 100644 --- a/samples/rest/notifications/CreateWebhook.php +++ b/samples/rest/notifications/CreateWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/DeleteWebhook.php b/samples/rest/notifications/DeleteWebhook.php index 5995704b..22d3cfb6 100644 --- a/samples/rest/notifications/DeleteWebhook.php +++ b/samples/rest/notifications/DeleteWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/EventNotificationDetails.php b/samples/rest/notifications/EventNotificationDetails.php index 37b7d553..26eb7d29 100644 --- a/samples/rest/notifications/EventNotificationDetails.php +++ b/samples/rest/notifications/EventNotificationDetails.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/GetWebhook.php b/samples/rest/notifications/GetWebhook.php index 4114290f..9a70166d 100644 --- a/samples/rest/notifications/GetWebhook.php +++ b/samples/rest/notifications/GetWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/ListEventSubscriptionsForWebhook.php b/samples/rest/notifications/ListEventSubscriptionsForWebhook.php index e4988025..1efd9751 100644 --- a/samples/rest/notifications/ListEventSubscriptionsForWebhook.php +++ b/samples/rest/notifications/ListEventSubscriptionsForWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/ListWebhooks.php b/samples/rest/notifications/ListWebhooks.php index 3fb25991..da169a9c 100644 --- a/samples/rest/notifications/ListWebhooks.php +++ b/samples/rest/notifications/ListWebhooks.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/ResendEventNotification.php b/samples/rest/notifications/ResendEventNotification.php index 953011b5..9a5ac544 100644 --- a/samples/rest/notifications/ResendEventNotification.php +++ b/samples/rest/notifications/ResendEventNotification.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/SearchWebhookEvents.php b/samples/rest/notifications/SearchWebhookEvents.php index d0398a6d..f7bb2afc 100644 --- a/samples/rest/notifications/SearchWebhookEvents.php +++ b/samples/rest/notifications/SearchWebhookEvents.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/SimulateEvent.php b/samples/rest/notifications/SimulateEvent.php index e2c77b48..90ad6b77 100644 --- a/samples/rest/notifications/SimulateEvent.php +++ b/samples/rest/notifications/SimulateEvent.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/UpdateWebhook.php b/samples/rest/notifications/UpdateWebhook.php index 93d6adbb..2a2ecc55 100644 --- a/samples/rest/notifications/UpdateWebhook.php +++ b/samples/rest/notifications/UpdateWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/VerifyWebhookSignature.php b/samples/rest/notifications/VerifyWebhookSignature.php index 2a2cdbc5..17d007b7 100644 --- a/samples/rest/notifications/VerifyWebhookSignature.php +++ b/samples/rest/notifications/VerifyWebhookSignature.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/notifications/WebhooksEventTypes.php b/samples/rest/notifications/WebhooksEventTypes.php index c5d45762..b299700d 100644 --- a/samples/rest/notifications/WebhooksEventTypes.php +++ b/samples/rest/notifications/WebhooksEventTypes.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/AuthorizationCapture.php b/samples/rest/payment/AuthorizationCapture.php index 9d6031d7..635d2c14 100755 --- a/samples/rest/payment/AuthorizationCapture.php +++ b/samples/rest/payment/AuthorizationCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/AuthorizePaymentUsingPayPal.php b/samples/rest/payment/AuthorizePaymentUsingPayPal.php index b1eae142..0cd84907 100644 --- a/samples/rest/payment/AuthorizePaymentUsingPayPal.php +++ b/samples/rest/payment/AuthorizePaymentUsingPayPal.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/CreateFuturePayment.php b/samples/rest/payment/CreateFuturePayment.php index 76a97c48..453d1c89 100644 --- a/samples/rest/payment/CreateFuturePayment.php +++ b/samples/rest/payment/CreateFuturePayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/CreatePayment.php b/samples/rest/payment/CreatePayment.php index 6e81445b..bc8935b7 100755 --- a/samples/rest/payment/CreatePayment.php +++ b/samples/rest/payment/CreatePayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/CreatePaymentUsingPayPal.php b/samples/rest/payment/CreatePaymentUsingPayPal.php index 3f29a19f..516f4b17 100755 --- a/samples/rest/payment/CreatePaymentUsingPayPal.php +++ b/samples/rest/payment/CreatePaymentUsingPayPal.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/CreatePaymentUsingSavedCardVault.php b/samples/rest/payment/CreatePaymentUsingSavedCardVault.php index a642e4bb..30d6913d 100755 --- a/samples/rest/payment/CreatePaymentUsingSavedCardVault.php +++ b/samples/rest/payment/CreatePaymentUsingSavedCardVault.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/CreateThirdPartyPayment.php b/samples/rest/payment/CreateThirdPartyPayment.php index 223a9075..9e4c9f64 100644 --- a/samples/rest/payment/CreateThirdPartyPayment.php +++ b/samples/rest/payment/CreateThirdPartyPayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/ExecutePayment.php b/samples/rest/payment/ExecutePayment.php index 0ed75d4a..ae54b0cd 100755 --- a/samples/rest/payment/ExecutePayment.php +++ b/samples/rest/payment/ExecutePayment.php @@ -15,6 +15,7 @@ // API used: POST '/v1/payments/payment//execute'. $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/GetAuthorization.php b/samples/rest/payment/GetAuthorization.php index 237f381e..901c814e 100755 --- a/samples/rest/payment/GetAuthorization.php +++ b/samples/rest/payment/GetAuthorization.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/GetCapture.php b/samples/rest/payment/GetCapture.php index d397c1f9..ac8faac3 100755 --- a/samples/rest/payment/GetCapture.php +++ b/samples/rest/payment/GetCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/ListPayments.php b/samples/rest/payment/ListPayments.php index 5bada0e6..b3d40144 100755 --- a/samples/rest/payment/ListPayments.php +++ b/samples/rest/payment/ListPayments.php @@ -12,6 +12,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderAuthorize.php b/samples/rest/payment/OrderAuthorize.php index 97dba7a4..1c847cb5 100755 --- a/samples/rest/payment/OrderAuthorize.php +++ b/samples/rest/payment/OrderAuthorize.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderCapture.php b/samples/rest/payment/OrderCapture.php index 0d8f148d..85d83339 100755 --- a/samples/rest/payment/OrderCapture.php +++ b/samples/rest/payment/OrderCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderCreateForAuthorization.php b/samples/rest/payment/OrderCreateForAuthorization.php index 0d51e7ff..630af421 100644 --- a/samples/rest/payment/OrderCreateForAuthorization.php +++ b/samples/rest/payment/OrderCreateForAuthorization.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderCreateForCapture.php b/samples/rest/payment/OrderCreateForCapture.php index 710b2511..9e822db3 100644 --- a/samples/rest/payment/OrderCreateForCapture.php +++ b/samples/rest/payment/OrderCreateForCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderCreateForVoid.php b/samples/rest/payment/OrderCreateForVoid.php index d113ecad..1f175b65 100644 --- a/samples/rest/payment/OrderCreateForVoid.php +++ b/samples/rest/payment/OrderCreateForVoid.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderDoVoid.php b/samples/rest/payment/OrderDoVoid.php index 841f2025..290b6dff 100755 --- a/samples/rest/payment/OrderDoVoid.php +++ b/samples/rest/payment/OrderDoVoid.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/OrderGet.php b/samples/rest/payment/OrderGet.php index decf321e..a3c8ccc2 100755 --- a/samples/rest/payment/OrderGet.php +++ b/samples/rest/payment/OrderGet.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/Reauthorization.php b/samples/rest/payment/Reauthorization.php index 9d93a8d8..f3155e59 100644 --- a/samples/rest/payment/Reauthorization.php +++ b/samples/rest/payment/Reauthorization.php @@ -15,6 +15,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/RefundCapture.php b/samples/rest/payment/RefundCapture.php index ffb7761e..67f806e3 100755 --- a/samples/rest/payment/RefundCapture.php +++ b/samples/rest/payment/RefundCapture.php @@ -6,6 +6,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/ShowPaymentDetails.php b/samples/rest/payment/ShowPaymentDetails.php index 164835e0..8d4980fc 100755 --- a/samples/rest/payment/ShowPaymentDetails.php +++ b/samples/rest/payment/ShowPaymentDetails.php @@ -6,6 +6,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/ShowRefundDetails.php b/samples/rest/payment/ShowRefundDetails.php index 2e2c0d55..6e54a0ef 100644 --- a/samples/rest/payment/ShowRefundDetails.php +++ b/samples/rest/payment/ShowRefundDetails.php @@ -6,6 +6,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/UpdatePayment.php b/samples/rest/payment/UpdatePayment.php index 93ff519d..76432978 100644 --- a/samples/rest/payment/UpdatePayment.php +++ b/samples/rest/payment/UpdatePayment.php @@ -11,6 +11,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payment/VoidAuthorization.php b/samples/rest/payment/VoidAuthorization.php index b54008f3..ea32e286 100755 --- a/samples/rest/payment/VoidAuthorization.php +++ b/samples/rest/payment/VoidAuthorization.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paymentexperience/CreateWebProfile.php b/samples/rest/paymentexperience/CreateWebProfile.php index 80f01d89..fc7f0244 100755 --- a/samples/rest/paymentexperience/CreateWebProfile.php +++ b/samples/rest/paymentexperience/CreateWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paymentexperience/DeleteWebProfile.php b/samples/rest/paymentexperience/DeleteWebProfile.php index cf6561a3..efbdd3ea 100755 --- a/samples/rest/paymentexperience/DeleteWebProfile.php +++ b/samples/rest/paymentexperience/DeleteWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paymentexperience/GetWebProfile.php b/samples/rest/paymentexperience/GetWebProfile.php index 639d551d..43198c6c 100755 --- a/samples/rest/paymentexperience/GetWebProfile.php +++ b/samples/rest/paymentexperience/GetWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paymentexperience/ListWebProfiles.php b/samples/rest/paymentexperience/ListWebProfiles.php index ecc2fdd6..6c0630f4 100755 --- a/samples/rest/paymentexperience/ListWebProfiles.php +++ b/samples/rest/paymentexperience/ListWebProfiles.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paymentexperience/PartiallyUpdateWebProfile.php b/samples/rest/paymentexperience/PartiallyUpdateWebProfile.php index 82e22ec5..4c818829 100755 --- a/samples/rest/paymentexperience/PartiallyUpdateWebProfile.php +++ b/samples/rest/paymentexperience/PartiallyUpdateWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paymentexperience/UpdateWebProfile.php b/samples/rest/paymentexperience/UpdateWebProfile.php index ecbde5d9..eae05212 100755 --- a/samples/rest/paymentexperience/UpdateWebProfile.php +++ b/samples/rest/paymentexperience/UpdateWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payouts/CancelPayoutItem.php b/samples/rest/payouts/CancelPayoutItem.php index bdec26f2..4dbe353f 100755 --- a/samples/rest/payouts/CancelPayoutItem.php +++ b/samples/rest/payouts/CancelPayoutItem.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payouts/CreateBatchPayout.php b/samples/rest/payouts/CreateBatchPayout.php index 63ca1118..7b50ff52 100755 --- a/samples/rest/payouts/CreateBatchPayout.php +++ b/samples/rest/payouts/CreateBatchPayout.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payouts/CreateSinglePayout.php b/samples/rest/payouts/CreateSinglePayout.php index e2a976fd..ff804af7 100755 --- a/samples/rest/payouts/CreateSinglePayout.php +++ b/samples/rest/payouts/CreateSinglePayout.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payouts/GetPayoutBatchStatus.php b/samples/rest/payouts/GetPayoutBatchStatus.php index 2390167a..5ec2b04d 100755 --- a/samples/rest/payouts/GetPayoutBatchStatus.php +++ b/samples/rest/payouts/GetPayoutBatchStatus.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/payouts/GetPayoutItemStatus.php b/samples/rest/payouts/GetPayoutItemStatus.php index 912b9f65..d0676861 100755 --- a/samples/rest/payouts/GetPayoutItemStatus.php +++ b/samples/rest/payouts/GetPayoutItemStatus.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/paypal_sync/PaypalSyncTransactions.php b/samples/rest/paypal_sync/PaypalSyncTransactions.php index 3b1d0826..0e3ecefc 100644 --- a/samples/rest/paypal_sync/PaypalSyncTransactions.php +++ b/samples/rest/paypal_sync/PaypalSyncTransactions.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php b/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php index 958fb5b0..5b5192d7 100644 --- a/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php +++ b/samples/rest/referenced_payouts/CreateReferencedBatchPayout.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/sale/GetSale.php b/samples/rest/sale/GetSale.php index d8da30ba..564720d4 100644 --- a/samples/rest/sale/GetSale.php +++ b/samples/rest/sale/GetSale.php @@ -10,6 +10,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/sale/RefundSale.php b/samples/rest/sale/RefundSale.php index c71e2ae0..941ffa18 100644 --- a/samples/rest/sale/RefundSale.php +++ b/samples/rest/sale/RefundSale.php @@ -10,6 +10,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/vault/DeleteCreditCard.php b/samples/rest/vault/DeleteCreditCard.php index 2a8e8fa3..74abe113 100755 --- a/samples/rest/vault/DeleteCreditCard.php +++ b/samples/rest/vault/DeleteCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/vault/GetCardDetails.php b/samples/rest/vault/GetCardDetails.php index d2722a93..6fa44933 100644 --- a/samples/rest/vault/GetCardDetails.php +++ b/samples/rest/vault/GetCardDetails.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/vault/ListCreditCards.php b/samples/rest/vault/ListCreditCards.php index 65253954..9612f16f 100755 --- a/samples/rest/vault/ListCreditCards.php +++ b/samples/rest/vault/ListCreditCards.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/vault/StoreCreditCard.php b/samples/rest/vault/StoreCreditCard.php index 6814f941..89d04982 100644 --- a/samples/rest/vault/StoreCreditCard.php +++ b/samples/rest/vault/StoreCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/samples/rest/vault/UpdateCreditCard.php b/samples/rest/vault/UpdateCreditCard.php index d4723bc0..11730066 100755 --- a/samples/rest/vault/UpdateCreditCard.php +++ b/samples/rest/vault/UpdateCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/src/angelleye/PayPal/RestClass.php b/src/angelleye/PayPal/RestClass.php index 1b53f936..dfba6f13 100644 --- a/src/angelleye/PayPal/RestClass.php +++ b/src/angelleye/PayPal/RestClass.php @@ -72,8 +72,16 @@ public function __construct($configArray){ } } + $mode ='live'; + if(isset($configArray['Sandbox'])){ + if(($configArray['Sandbox'] == true || $configArray['Sandbox'] == 'true')){ + $mode ='sandbox'; + } + } + $this->_api_context->setConfig( array( + 'mode' => $mode, 'log.LogEnabled' => isset($configArray['LogResults']) ? $configArray['LogResults'] : false, 'log.FileName' => $path, 'log.LogLevel' => isset($configArray['LogLevel']) ? $configArray['LogPath'] : 'INFO' diff --git a/templates/rest/billing_agreements/BillAgreementBalance.php b/templates/rest/billing_agreements/BillAgreementBalance.php index ff489bbd..b6d6b1c4 100644 --- a/templates/rest/billing_agreements/BillAgreementBalance.php +++ b/templates/rest/billing_agreements/BillAgreementBalance.php @@ -5,6 +5,7 @@ // Create PayPal object. $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/CancelBillingAgreement.php b/templates/rest/billing_agreements/CancelBillingAgreement.php index 5bd071a3..57d3eee3 100644 --- a/templates/rest/billing_agreements/CancelBillingAgreement.php +++ b/templates/rest/billing_agreements/CancelBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php b/templates/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php index d33aa378..6540c390 100644 --- a/templates/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php +++ b/templates/rest/billing_agreements/CreateBillingAgreementWithCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/CreateBillingAgreementWithPayPal.php b/templates/rest/billing_agreements/CreateBillingAgreementWithPayPal.php index ce04217c..b50ec9b1 100644 --- a/templates/rest/billing_agreements/CreateBillingAgreementWithPayPal.php +++ b/templates/rest/billing_agreements/CreateBillingAgreementWithPayPal.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/ExecuteAgreement.php b/templates/rest/billing_agreements/ExecuteAgreement.php index 4ab4be30..00a52836 100644 --- a/templates/rest/billing_agreements/ExecuteAgreement.php +++ b/templates/rest/billing_agreements/ExecuteAgreement.php @@ -6,6 +6,7 @@ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/GetBillingAgreement.php b/templates/rest/billing_agreements/GetBillingAgreement.php index 06856133..2ffc2fff 100644 --- a/templates/rest/billing_agreements/GetBillingAgreement.php +++ b/templates/rest/billing_agreements/GetBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/ReactivateBillingAgreement.php b/templates/rest/billing_agreements/ReactivateBillingAgreement.php index 93b77c47..587f0dc2 100644 --- a/templates/rest/billing_agreements/ReactivateBillingAgreement.php +++ b/templates/rest/billing_agreements/ReactivateBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/SearchBillingTransactions.php b/templates/rest/billing_agreements/SearchBillingTransactions.php index c6f50db3..e2863ecf 100644 --- a/templates/rest/billing_agreements/SearchBillingTransactions.php +++ b/templates/rest/billing_agreements/SearchBillingTransactions.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/SetAgreementBalance.php b/templates/rest/billing_agreements/SetAgreementBalance.php index 22a149d5..2d2d628a 100644 --- a/templates/rest/billing_agreements/SetAgreementBalance.php +++ b/templates/rest/billing_agreements/SetAgreementBalance.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/SuspendBillingAgreement.php b/templates/rest/billing_agreements/SuspendBillingAgreement.php index 1cb4ec60..c4d98690 100644 --- a/templates/rest/billing_agreements/SuspendBillingAgreement.php +++ b/templates/rest/billing_agreements/SuspendBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_agreements/UpdateBillingAgreement.php b/templates/rest/billing_agreements/UpdateBillingAgreement.php index 8d35c867..cfca727d 100644 --- a/templates/rest/billing_agreements/UpdateBillingAgreement.php +++ b/templates/rest/billing_agreements/UpdateBillingAgreement.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_plans/CreatePlan.php b/templates/rest/billing_plans/CreatePlan.php index 8990695e..892f745c 100644 --- a/templates/rest/billing_plans/CreatePlan.php +++ b/templates/rest/billing_plans/CreatePlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_plans/DeletePlan.php b/templates/rest/billing_plans/DeletePlan.php index ceb96e7d..0ccbc0d4 100644 --- a/templates/rest/billing_plans/DeletePlan.php +++ b/templates/rest/billing_plans/DeletePlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_plans/GetPlan.php b/templates/rest/billing_plans/GetPlan.php index a405661b..70d6c238 100644 --- a/templates/rest/billing_plans/GetPlan.php +++ b/templates/rest/billing_plans/GetPlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_plans/ListPlans.php b/templates/rest/billing_plans/ListPlans.php index 173cde15..ba6eb45b 100644 --- a/templates/rest/billing_plans/ListPlans.php +++ b/templates/rest/billing_plans/ListPlans.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/billing_plans/UpdatePlan.php b/templates/rest/billing_plans/UpdatePlan.php index 72cd9759..9e7b2717 100644 --- a/templates/rest/billing_plans/UpdatePlan.php +++ b/templates/rest/billing_plans/UpdatePlan.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/AuthorizeOrder.php b/templates/rest/checkout_orders/AuthorizeOrder.php index 82275262..21ac6d32 100644 --- a/templates/rest/checkout_orders/AuthorizeOrder.php +++ b/templates/rest/checkout_orders/AuthorizeOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/CaptureAuthorizedPayment.php b/templates/rest/checkout_orders/CaptureAuthorizedPayment.php index 65e0aa02..14514a0c 100644 --- a/templates/rest/checkout_orders/CaptureAuthorizedPayment.php +++ b/templates/rest/checkout_orders/CaptureAuthorizedPayment.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/CaptureOrder.php b/templates/rest/checkout_orders/CaptureOrder.php index b8d894f3..9f230294 100644 --- a/templates/rest/checkout_orders/CaptureOrder.php +++ b/templates/rest/checkout_orders/CaptureOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/CreateAuthorizeOrder.php b/templates/rest/checkout_orders/CreateAuthorizeOrder.php index d19405b5..b110fd40 100644 --- a/templates/rest/checkout_orders/CreateAuthorizeOrder.php +++ b/templates/rest/checkout_orders/CreateAuthorizeOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/CreateCaptureOrder.php b/templates/rest/checkout_orders/CreateCaptureOrder.php index d19405b5..b110fd40 100644 --- a/templates/rest/checkout_orders/CreateCaptureOrder.php +++ b/templates/rest/checkout_orders/CreateCaptureOrder.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/GetAuthorizePaymentDetails.php b/templates/rest/checkout_orders/GetAuthorizePaymentDetails.php index 20944b15..fe439852 100644 --- a/templates/rest/checkout_orders/GetAuthorizePaymentDetails.php +++ b/templates/rest/checkout_orders/GetAuthorizePaymentDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/GetCapturedPaymentDetails.php b/templates/rest/checkout_orders/GetCapturedPaymentDetails.php index 5cd12b50..3e4d48e7 100644 --- a/templates/rest/checkout_orders/GetCapturedPaymentDetails.php +++ b/templates/rest/checkout_orders/GetCapturedPaymentDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/GetOrderDetails.php b/templates/rest/checkout_orders/GetOrderDetails.php index 4bc29235..86473513 100644 --- a/templates/rest/checkout_orders/GetOrderDetails.php +++ b/templates/rest/checkout_orders/GetOrderDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/Reauthorize.php b/templates/rest/checkout_orders/Reauthorize.php index e872fcee..2a0b7d5f 100644 --- a/templates/rest/checkout_orders/Reauthorize.php +++ b/templates/rest/checkout_orders/Reauthorize.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/RefundCapturedPayment.php b/templates/rest/checkout_orders/RefundCapturedPayment.php index a6de0b12..88a658c6 100644 --- a/templates/rest/checkout_orders/RefundCapturedPayment.php +++ b/templates/rest/checkout_orders/RefundCapturedPayment.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/ShowRefundDetails.php b/templates/rest/checkout_orders/ShowRefundDetails.php index e4b57666..303fbb28 100644 --- a/templates/rest/checkout_orders/ShowRefundDetails.php +++ b/templates/rest/checkout_orders/ShowRefundDetails.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/checkout_orders/VoidAuthorizedPayment.php b/templates/rest/checkout_orders/VoidAuthorizedPayment.php index 11d0f05c..511250af 100644 --- a/templates/rest/checkout_orders/VoidAuthorizedPayment.php +++ b/templates/rest/checkout_orders/VoidAuthorizedPayment.php @@ -7,6 +7,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/AcceptClaim.php b/templates/rest/customer-disputes/AcceptClaim.php index fa1876d3..983efc75 100644 --- a/templates/rest/customer-disputes/AcceptClaim.php +++ b/templates/rest/customer-disputes/AcceptClaim.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/DisputesAppeal.php b/templates/rest/customer-disputes/DisputesAppeal.php index 2161fe6a..5a25aa02 100644 --- a/templates/rest/customer-disputes/DisputesAppeal.php +++ b/templates/rest/customer-disputes/DisputesAppeal.php @@ -11,6 +11,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/DisputesEscalate.php b/templates/rest/customer-disputes/DisputesEscalate.php index 01b6084c..7e104415 100644 --- a/templates/rest/customer-disputes/DisputesEscalate.php +++ b/templates/rest/customer-disputes/DisputesEscalate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/DisputesMakeOffer.php b/templates/rest/customer-disputes/DisputesMakeOffer.php index 5baede6b..52eed2f3 100644 --- a/templates/rest/customer-disputes/DisputesMakeOffer.php +++ b/templates/rest/customer-disputes/DisputesMakeOffer.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/ListDisputes.php b/templates/rest/customer-disputes/ListDisputes.php index 64a53feb..9fb956a8 100644 --- a/templates/rest/customer-disputes/ListDisputes.php +++ b/templates/rest/customer-disputes/ListDisputes.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/ProvideEvidence.php b/templates/rest/customer-disputes/ProvideEvidence.php index a883a44d..11d0603e 100644 --- a/templates/rest/customer-disputes/ProvideEvidence.php +++ b/templates/rest/customer-disputes/ProvideEvidence.php @@ -16,6 +16,7 @@ */ $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/SendMessageToOtherParty.php b/templates/rest/customer-disputes/SendMessageToOtherParty.php index 8fbf4bd1..aa496d85 100644 --- a/templates/rest/customer-disputes/SendMessageToOtherParty.php +++ b/templates/rest/customer-disputes/SendMessageToOtherParty.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/SettleDispute.php b/templates/rest/customer-disputes/SettleDispute.php index 33a9ac66..f829a7b1 100644 --- a/templates/rest/customer-disputes/SettleDispute.php +++ b/templates/rest/customer-disputes/SettleDispute.php @@ -8,6 +8,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/ShowDisputeDetails.php b/templates/rest/customer-disputes/ShowDisputeDetails.php index 3a1456c1..6e432152 100644 --- a/templates/rest/customer-disputes/ShowDisputeDetails.php +++ b/templates/rest/customer-disputes/ShowDisputeDetails.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/customer-disputes/UpdateDisputeStatus.php b/templates/rest/customer-disputes/UpdateDisputeStatus.php index 02b254e2..1f03d2d8 100644 --- a/templates/rest/customer-disputes/UpdateDisputeStatus.php +++ b/templates/rest/customer-disputes/UpdateDisputeStatus.php @@ -16,6 +16,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/identity/GetUserConsentURL.php b/templates/rest/identity/GetUserConsentURL.php index bf57533b..63eb70d5 100644 --- a/templates/rest/identity/GetUserConsentURL.php +++ b/templates/rest/identity/GetUserConsentURL.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/identity/GetUserInfo.php b/templates/rest/identity/GetUserInfo.php index 497a35fb..63c6d793 100644 --- a/templates/rest/identity/GetUserInfo.php +++ b/templates/rest/identity/GetUserInfo.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/identity/UserConsentRedirect.php b/templates/rest/identity/UserConsentRedirect.php index a889327e..4fd1b666 100644 --- a/templates/rest/identity/UserConsentRedirect.php +++ b/templates/rest/identity/UserConsentRedirect.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice-templates/CreateInvoiceTemplate.php b/templates/rest/invoice-templates/CreateInvoiceTemplate.php index 0ae05929..15624dc8 100755 --- a/templates/rest/invoice-templates/CreateInvoiceTemplate.php +++ b/templates/rest/invoice-templates/CreateInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice-templates/DeleteInvoiceTemplate.php b/templates/rest/invoice-templates/DeleteInvoiceTemplate.php index aaaf3f0d..8f65ab79 100755 --- a/templates/rest/invoice-templates/DeleteInvoiceTemplate.php +++ b/templates/rest/invoice-templates/DeleteInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice-templates/GetAllInvoiceTemplates.php b/templates/rest/invoice-templates/GetAllInvoiceTemplates.php index 32ede487..5ed83b6e 100755 --- a/templates/rest/invoice-templates/GetAllInvoiceTemplates.php +++ b/templates/rest/invoice-templates/GetAllInvoiceTemplates.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice-templates/GetInvoiceTemplate.php b/templates/rest/invoice-templates/GetInvoiceTemplate.php index 6d701315..1ee790c2 100755 --- a/templates/rest/invoice-templates/GetInvoiceTemplate.php +++ b/templates/rest/invoice-templates/GetInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice-templates/UpdateInvoiceTemplate.php b/templates/rest/invoice-templates/UpdateInvoiceTemplate.php index 3103436e..0d463590 100755 --- a/templates/rest/invoice-templates/UpdateInvoiceTemplate.php +++ b/templates/rest/invoice-templates/UpdateInvoiceTemplate.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/CancelInvoice.php b/templates/rest/invoice/CancelInvoice.php index 68fe3544..6dfeb69d 100755 --- a/templates/rest/invoice/CancelInvoice.php +++ b/templates/rest/invoice/CancelInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/CreateInvoice.php b/templates/rest/invoice/CreateInvoice.php index a3b69d9e..a68a012e 100755 --- a/templates/rest/invoice/CreateInvoice.php +++ b/templates/rest/invoice/CreateInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/CreateThirdPartyInvoice.php b/templates/rest/invoice/CreateThirdPartyInvoice.php index 95a55c1f..b5f92185 100644 --- a/templates/rest/invoice/CreateThirdPartyInvoice.php +++ b/templates/rest/invoice/CreateThirdPartyInvoice.php @@ -10,13 +10,14 @@ require_once('../../../autoload.php'); require_once('../../../includes/config.php'); -$configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret, - 'LogResults' => $log_results, - 'LogPath' => $log_path, - 'LogLevel' => $log_level - ); +$configArray = array( + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret, + 'LogResults' => $log_results, + 'LogPath' => $log_path, + 'LogLevel' => $log_level +); $PayPal = new \angelleye\PayPal\rest\invoice\InvoiceAPI($configArray); diff --git a/templates/rest/invoice/DeleteInvoice.php b/templates/rest/invoice/DeleteInvoice.php index 76cae209..c5ffc45e 100755 --- a/templates/rest/invoice/DeleteInvoice.php +++ b/templates/rest/invoice/DeleteInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/GetInvoice.php b/templates/rest/invoice/GetInvoice.php index 11dd732f..e7e49234 100755 --- a/templates/rest/invoice/GetInvoice.php +++ b/templates/rest/invoice/GetInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/GetNextInvoiceNumber.php b/templates/rest/invoice/GetNextInvoiceNumber.php index 6492e5e9..cd4007ef 100755 --- a/templates/rest/invoice/GetNextInvoiceNumber.php +++ b/templates/rest/invoice/GetNextInvoiceNumber.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/GetThirdPartyInvoice.php b/templates/rest/invoice/GetThirdPartyInvoice.php index 5f37529b..60c670a5 100644 --- a/templates/rest/invoice/GetThirdPartyInvoice.php +++ b/templates/rest/invoice/GetThirdPartyInvoice.php @@ -13,6 +13,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/ListInvoice.php b/templates/rest/invoice/ListInvoice.php index 09ba91c7..80656a91 100755 --- a/templates/rest/invoice/ListInvoice.php +++ b/templates/rest/invoice/ListInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/RecordPayment.php b/templates/rest/invoice/RecordPayment.php index 62faa594..c08a53cc 100755 --- a/templates/rest/invoice/RecordPayment.php +++ b/templates/rest/invoice/RecordPayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/RecordRefund.php b/templates/rest/invoice/RecordRefund.php index f0f9f15f..3b4edf34 100755 --- a/templates/rest/invoice/RecordRefund.php +++ b/templates/rest/invoice/RecordRefund.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/RemindInvoice.php b/templates/rest/invoice/RemindInvoice.php index 3f0b2d26..0f74e7d1 100755 --- a/templates/rest/invoice/RemindInvoice.php +++ b/templates/rest/invoice/RemindInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/RetrieveQRCode.php b/templates/rest/invoice/RetrieveQRCode.php index 9ac2efc4..770662f6 100755 --- a/templates/rest/invoice/RetrieveQRCode.php +++ b/templates/rest/invoice/RetrieveQRCode.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/SearchInvoices.php b/templates/rest/invoice/SearchInvoices.php index c99064ff..9962e615 100755 --- a/templates/rest/invoice/SearchInvoices.php +++ b/templates/rest/invoice/SearchInvoices.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/SendInvoice.php b/templates/rest/invoice/SendInvoice.php index 37bfe84e..b32ca0cc 100755 --- a/templates/rest/invoice/SendInvoice.php +++ b/templates/rest/invoice/SendInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/invoice/UpdateInvoice.php b/templates/rest/invoice/UpdateInvoice.php index b37308e4..eafbda6b 100755 --- a/templates/rest/invoice/UpdateInvoice.php +++ b/templates/rest/invoice/UpdateInvoice.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/CreateWebhook.php b/templates/rest/notifications/CreateWebhook.php index 129a50bc..e6c12b5b 100644 --- a/templates/rest/notifications/CreateWebhook.php +++ b/templates/rest/notifications/CreateWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/DeleteWebhook.php b/templates/rest/notifications/DeleteWebhook.php index 35411062..f1e7caf6 100644 --- a/templates/rest/notifications/DeleteWebhook.php +++ b/templates/rest/notifications/DeleteWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/EventNotificationDetails.php b/templates/rest/notifications/EventNotificationDetails.php index 3f513828..01d0fb7b 100644 --- a/templates/rest/notifications/EventNotificationDetails.php +++ b/templates/rest/notifications/EventNotificationDetails.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/GetWebhook.php b/templates/rest/notifications/GetWebhook.php index 7fcafdff..71bfe620 100644 --- a/templates/rest/notifications/GetWebhook.php +++ b/templates/rest/notifications/GetWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/ListEventSubscriptionsForWebhook.php b/templates/rest/notifications/ListEventSubscriptionsForWebhook.php index 082ab408..82881c9c 100644 --- a/templates/rest/notifications/ListEventSubscriptionsForWebhook.php +++ b/templates/rest/notifications/ListEventSubscriptionsForWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/ListWebhooks.php b/templates/rest/notifications/ListWebhooks.php index bfb44126..f659a5e2 100644 --- a/templates/rest/notifications/ListWebhooks.php +++ b/templates/rest/notifications/ListWebhooks.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/ResendEventNotification.php b/templates/rest/notifications/ResendEventNotification.php index 892da201..6aacf17d 100644 --- a/templates/rest/notifications/ResendEventNotification.php +++ b/templates/rest/notifications/ResendEventNotification.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/SearchWebhookEvents.php b/templates/rest/notifications/SearchWebhookEvents.php index 84ef0337..43ea7ea2 100644 --- a/templates/rest/notifications/SearchWebhookEvents.php +++ b/templates/rest/notifications/SearchWebhookEvents.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/SimulateEvent.php b/templates/rest/notifications/SimulateEvent.php index 24879a29..5815c47b 100644 --- a/templates/rest/notifications/SimulateEvent.php +++ b/templates/rest/notifications/SimulateEvent.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/UpdateWebhook.php b/templates/rest/notifications/UpdateWebhook.php index ad463c5a..ae17367e 100644 --- a/templates/rest/notifications/UpdateWebhook.php +++ b/templates/rest/notifications/UpdateWebhook.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/VerifyWebhookSignature.php b/templates/rest/notifications/VerifyWebhookSignature.php index 2a2cdbc5..17d007b7 100644 --- a/templates/rest/notifications/VerifyWebhookSignature.php +++ b/templates/rest/notifications/VerifyWebhookSignature.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/notifications/WebhooksEventTypes.php b/templates/rest/notifications/WebhooksEventTypes.php index c5d45762..b299700d 100644 --- a/templates/rest/notifications/WebhooksEventTypes.php +++ b/templates/rest/notifications/WebhooksEventTypes.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/AuthorizationCapture.php b/templates/rest/payment/AuthorizationCapture.php index 6f091658..837eb7e8 100755 --- a/templates/rest/payment/AuthorizationCapture.php +++ b/templates/rest/payment/AuthorizationCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/CreatePayment.php b/templates/rest/payment/CreatePayment.php index 3a39f3c6..3b05c1d5 100755 --- a/templates/rest/payment/CreatePayment.php +++ b/templates/rest/payment/CreatePayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/CreatePaymentUsingPayPal.php b/templates/rest/payment/CreatePaymentUsingPayPal.php index a2eda9dc..3d9854c2 100755 --- a/templates/rest/payment/CreatePaymentUsingPayPal.php +++ b/templates/rest/payment/CreatePaymentUsingPayPal.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/CreatePaymentUsingSavedCardVault.php b/templates/rest/payment/CreatePaymentUsingSavedCardVault.php index 253bea13..ce9d80e2 100755 --- a/templates/rest/payment/CreatePaymentUsingSavedCardVault.php +++ b/templates/rest/payment/CreatePaymentUsingSavedCardVault.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/CreateThirdPartyPayment.php b/templates/rest/payment/CreateThirdPartyPayment.php index 66a38347..d3640b80 100644 --- a/templates/rest/payment/CreateThirdPartyPayment.php +++ b/templates/rest/payment/CreateThirdPartyPayment.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/ExecutePayment.php b/templates/rest/payment/ExecutePayment.php index 84be0c51..c1be6723 100755 --- a/templates/rest/payment/ExecutePayment.php +++ b/templates/rest/payment/ExecutePayment.php @@ -15,6 +15,7 @@ // API used: POST '/v1/payments/payment//execute'. $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/GetAuthorization.php b/templates/rest/payment/GetAuthorization.php index 60d57ae9..5ee5f764 100755 --- a/templates/rest/payment/GetAuthorization.php +++ b/templates/rest/payment/GetAuthorization.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/GetCapture.php b/templates/rest/payment/GetCapture.php index daf7099b..0c3ceeb3 100755 --- a/templates/rest/payment/GetCapture.php +++ b/templates/rest/payment/GetCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/ListPayments.php b/templates/rest/payment/ListPayments.php index f31c36ab..648b14c3 100755 --- a/templates/rest/payment/ListPayments.php +++ b/templates/rest/payment/ListPayments.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/OrderAuthorize.php b/templates/rest/payment/OrderAuthorize.php index 07ed2167..c9e68bbf 100755 --- a/templates/rest/payment/OrderAuthorize.php +++ b/templates/rest/payment/OrderAuthorize.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/OrderCapture.php b/templates/rest/payment/OrderCapture.php index f0b44043..e381f286 100755 --- a/templates/rest/payment/OrderCapture.php +++ b/templates/rest/payment/OrderCapture.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/OrderDoVoid.php b/templates/rest/payment/OrderDoVoid.php index 6861cc2b..9deaca77 100755 --- a/templates/rest/payment/OrderDoVoid.php +++ b/templates/rest/payment/OrderDoVoid.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/Reauthorization.php b/templates/rest/payment/Reauthorization.php index 0df5074b..6b08c478 100644 --- a/templates/rest/payment/Reauthorization.php +++ b/templates/rest/payment/Reauthorization.php @@ -15,6 +15,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/RefundCapture.php b/templates/rest/payment/RefundCapture.php index f71f28a7..21d3d903 100755 --- a/templates/rest/payment/RefundCapture.php +++ b/templates/rest/payment/RefundCapture.php @@ -12,6 +12,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/ShowPaymentDetails.php b/templates/rest/payment/ShowPaymentDetails.php index 13e53294..404fcb2b 100755 --- a/templates/rest/payment/ShowPaymentDetails.php +++ b/templates/rest/payment/ShowPaymentDetails.php @@ -6,6 +6,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/ShowRefundDetails.php b/templates/rest/payment/ShowRefundDetails.php index f76e0dc6..8b84e9c4 100644 --- a/templates/rest/payment/ShowRefundDetails.php +++ b/templates/rest/payment/ShowRefundDetails.php @@ -6,6 +6,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/UpdatePayment.php b/templates/rest/payment/UpdatePayment.php index ff1a0fdd..642d1d02 100644 --- a/templates/rest/payment/UpdatePayment.php +++ b/templates/rest/payment/UpdatePayment.php @@ -11,6 +11,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payment/VoidAuthorization.php b/templates/rest/payment/VoidAuthorization.php index eb45e4f6..0a618e6a 100755 --- a/templates/rest/payment/VoidAuthorization.php +++ b/templates/rest/payment/VoidAuthorization.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/paymentexperience/CreateWebProfile.php b/templates/rest/paymentexperience/CreateWebProfile.php index 88e687da..9fc3e645 100755 --- a/templates/rest/paymentexperience/CreateWebProfile.php +++ b/templates/rest/paymentexperience/CreateWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/paymentexperience/DeleteWebProfile.php b/templates/rest/paymentexperience/DeleteWebProfile.php index a14ff0c9..6bc07631 100755 --- a/templates/rest/paymentexperience/DeleteWebProfile.php +++ b/templates/rest/paymentexperience/DeleteWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/paymentexperience/GetWebProfile.php b/templates/rest/paymentexperience/GetWebProfile.php index 466fc421..60a71a82 100755 --- a/templates/rest/paymentexperience/GetWebProfile.php +++ b/templates/rest/paymentexperience/GetWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/paymentexperience/ListWebProfiles.php b/templates/rest/paymentexperience/ListWebProfiles.php index 8c5aa9a3..29e2079e 100755 --- a/templates/rest/paymentexperience/ListWebProfiles.php +++ b/templates/rest/paymentexperience/ListWebProfiles.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/paymentexperience/PartiallyUpdateWebProfile.php b/templates/rest/paymentexperience/PartiallyUpdateWebProfile.php index 92336c89..faec02d8 100755 --- a/templates/rest/paymentexperience/PartiallyUpdateWebProfile.php +++ b/templates/rest/paymentexperience/PartiallyUpdateWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/paymentexperience/UpdateWebProfile.php b/templates/rest/paymentexperience/UpdateWebProfile.php index 55ba1c5b..de4e26e4 100755 --- a/templates/rest/paymentexperience/UpdateWebProfile.php +++ b/templates/rest/paymentexperience/UpdateWebProfile.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/payouts/CancelPayoutItem.php b/templates/rest/payouts/CancelPayoutItem.php index e956a45d..6b8a796b 100755 --- a/templates/rest/payouts/CancelPayoutItem.php +++ b/templates/rest/payouts/CancelPayoutItem.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret ); diff --git a/templates/rest/payouts/CreateBatchPayout.php b/templates/rest/payouts/CreateBatchPayout.php index 369fce05..72d064cf 100755 --- a/templates/rest/payouts/CreateBatchPayout.php +++ b/templates/rest/payouts/CreateBatchPayout.php @@ -4,9 +4,10 @@ require_once('../../../includes/config.php'); $configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret - ); + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret +); $PayPal = new \angelleye\PayPal\rest\payouts\PayoutsAPI($configArray); diff --git a/templates/rest/payouts/CreateSinglePayout.php b/templates/rest/payouts/CreateSinglePayout.php index bb4121c2..951cd3bf 100755 --- a/templates/rest/payouts/CreateSinglePayout.php +++ b/templates/rest/payouts/CreateSinglePayout.php @@ -3,10 +3,11 @@ require_once('../../../autoload.php'); require_once('../../../includes/config.php'); -$configArray = array( - 'ClientID' => $rest_client_id, - 'ClientSecret' => $rest_client_secret - ); +$configArray = array( + 'Sandbox' => $sandbox, + 'ClientID' => $rest_client_id, + 'ClientSecret' => $rest_client_secret +); $PayPal = new \angelleye\PayPal\rest\payouts\PayoutsAPI($configArray); diff --git a/templates/rest/payouts/GetPayoutBatchStatus.php b/templates/rest/payouts/GetPayoutBatchStatus.php index 04e6eec4..e6391d56 100755 --- a/templates/rest/payouts/GetPayoutBatchStatus.php +++ b/templates/rest/payouts/GetPayoutBatchStatus.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret ); diff --git a/templates/rest/payouts/GetPayoutItemStatus.php b/templates/rest/payouts/GetPayoutItemStatus.php index ba8df2d0..1f1a9dd0 100755 --- a/templates/rest/payouts/GetPayoutItemStatus.php +++ b/templates/rest/payouts/GetPayoutItemStatus.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret ); diff --git a/templates/rest/paypal_sync/paypal_sync_transactions.php b/templates/rest/paypal_sync/paypal_sync_transactions.php index bcc4b479..c91fa586 100644 --- a/templates/rest/paypal_sync/paypal_sync_transactions.php +++ b/templates/rest/paypal_sync/paypal_sync_transactions.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/referenced_payouts/create_referenced_batch_payout.php b/templates/rest/referenced_payouts/create_referenced_batch_payout.php index ac3be6ee..395e5f27 100644 --- a/templates/rest/referenced_payouts/create_referenced_batch_payout.php +++ b/templates/rest/referenced_payouts/create_referenced_batch_payout.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/sale/GetSale.php b/templates/rest/sale/GetSale.php index ee11e034..d2a7a130 100644 --- a/templates/rest/sale/GetSale.php +++ b/templates/rest/sale/GetSale.php @@ -10,6 +10,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/sale/RefundSale.php b/templates/rest/sale/RefundSale.php index bce8275b..51858f97 100644 --- a/templates/rest/sale/RefundSale.php +++ b/templates/rest/sale/RefundSale.php @@ -10,6 +10,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/vault/DeleteCreditCard.php b/templates/rest/vault/DeleteCreditCard.php index 8b3ce02f..2b019c75 100755 --- a/templates/rest/vault/DeleteCreditCard.php +++ b/templates/rest/vault/DeleteCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/vault/GetCardDetails.php b/templates/rest/vault/GetCardDetails.php index 2c1a6f7e..2a653182 100644 --- a/templates/rest/vault/GetCardDetails.php +++ b/templates/rest/vault/GetCardDetails.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/vault/ListCreditCards.php b/templates/rest/vault/ListCreditCards.php index 5d46530c..00054ed4 100755 --- a/templates/rest/vault/ListCreditCards.php +++ b/templates/rest/vault/ListCreditCards.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/vault/StoreCreditCard.php b/templates/rest/vault/StoreCreditCard.php index db5de426..c1ebf867 100644 --- a/templates/rest/vault/StoreCreditCard.php +++ b/templates/rest/vault/StoreCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results, diff --git a/templates/rest/vault/UpdateCreditCard.php b/templates/rest/vault/UpdateCreditCard.php index 7c980e65..f1ce23df 100755 --- a/templates/rest/vault/UpdateCreditCard.php +++ b/templates/rest/vault/UpdateCreditCard.php @@ -4,6 +4,7 @@ require_once('../../../includes/config.php'); $configArray = array( + 'Sandbox' => $sandbox, 'ClientID' => $rest_client_id, 'ClientSecret' => $rest_client_secret, 'LogResults' => $log_results,