Skip to content

Instantly share code, notes, and snippets.

@JoaoVagner
Created December 10, 2014 19:35
Show Gist options
  • Save JoaoVagner/59dbac78042c0e6726e8 to your computer and use it in GitHub Desktop.
Save JoaoVagner/59dbac78042c0e6726e8 to your computer and use it in GitHub Desktop.
if(isset($this->gatewayInfos['BoletoUrl'])) { //exist Boleto URL?
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'), array('boleto' => $this->gatewayInfos['BoletoUrl']), false, 'secure'))
} elseif(isset($this->gatewayInfos['PaypalUrl'])) { //Exist Paypal URL?
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno'), array('paypal' => $this->gatewayInfos['PaypalUrl']), false, 'secure'))
} else { // redirect norm|l
$returnArray = array('redirect' => URI::build_url(array('comprar', 'retorno')))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment