From d53d14f91de3415b4e48f454fb7fcad55b91b9fa Mon Sep 17 00:00:00 2001 From: "WORKSTATION\\andre" Date: Mon, 21 Aug 2017 11:05:25 -0500 Subject: [PATCH] Adds hooks to override PayFlow Pro endpoint, ref #843 --- .../paypal-php-library/includes/paypal.payflow.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/lib/angelleye/paypal-php-library/includes/paypal.payflow.class.php b/classes/lib/angelleye/paypal-php-library/includes/paypal.payflow.class.php index 2119967e8..a57308d33 100644 --- a/classes/lib/angelleye/paypal-php-library/includes/paypal.payflow.class.php +++ b/classes/lib/angelleye/paypal-php-library/includes/paypal.payflow.class.php @@ -51,11 +51,11 @@ function __construct($DataArray) if($this->Sandbox) { - $this->APIEndPoint = 'https://pilot-payflowpro.paypal.com'; + $this->APIEndPoint = apply_filters('aepfw_payments_pro_payflow_endpoint_sandbox', 'https://pilot-payflowpro.paypal.com'); } else { - $this->APIEndPoint = 'https://payflowpro.paypal.com'; + $this->APIEndPoint = apply_filters('aepfw_payments_pro_payflow_endpoint', 'https://payflowpro.paypal.com'); } $this->NVPCredentials = 'BUTTONSOURCE['.strlen($this->APIButtonSource).']='.$this->APIButtonSource.'&VERBOSITY['.strlen($this->Verbosity).']='.$this->Verbosity.'&USER['.strlen($this->APIUsername).']='.$this->APIUsername.'&VENDOR['.strlen($this->APIVendor).']='.$this->APIVendor.'&PARTNER['.strlen($this->APIPartner).']='.$this->APIPartner.'&PWD['.strlen($this->APIPassword).']='.$this->APIPassword;