PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
payulatam
/
lib
/
PayU
/
api
<?php /** * This class helps to build the request api info * * @author PayU Latam * @since 1.0.0 * @version 1.0.0, 29/10/2013 * */ class PayUHttpRequestInfo{ /** the http method to the request */ var $method; /** the environment to the request*/ var $environment; /** the segment to add the url to the request*/ var $segment; /** the user for Basic Http authentication */ var $user; /** the password for Basic Http authentication */ var $password; /** the language to be include in the header request */ var $lang; /** * * @param string $environment * @param string $method * @param string $segment */ function __construct($environment, $method, $segment = null) { $this->environment = $environment; $this->method = $method; $this->segment = $segment; } /** * Builds the url for the environment selected */ public function getUrl(){ if(isset($this->segment)){ return Environment::getApiUrl($this->environment) . $this->segment; }else{ return Environment::getApiUrl($this->environment); } } }
[+]
..
[-] Environment.php
[edit]
[-] PaymentMethods.php
[edit]
[-] PayuPaymentMethodType.php
[edit]
[-] PayUKeyMapName.php
[edit]
[-] RequestMethod.php
[edit]
[-] PayUCommands.php
[edit]
[-] SupportedLanguages.php
[edit]
[-] PayUResponseCode.php
[edit]
[-] PayUCountries.php
[edit]
[-] PayUTransactionResponseCode.php
[edit]
[-] PayUConfig.php
[edit]
[-] TransactionType.php
[edit]
[-] PayUHttpRequestInfo.php
[edit]