Skip to content

Commit

Permalink
Adds hooks to override PayFlow Pro endpoint, ref #843
Browse files Browse the repository at this point in the history
  • Loading branch information
WORKSTATION\andre committed Aug 21, 2017
1 parent dab4724 commit d53d14f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d53d14f

Please sign in to comment.