/** * Constructor * * Loads json request source and decodes it in php array and sets id * and method members * @return void */ public function __construct() { $data = SkrillPsp_Json::getQIWIJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->json['method'] = $this->method; }
/** * Constructor * * Decodes json source in php array and sets id and method members of json request * @return void */ public function __construct() { $data = SkrillPsp_Json::getAlternativeWithoutAccountJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->json['method'] = $this->method; }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id and * method parameters * * @return void */ public function __construct() { parent::__construct(); $data = SkrillPsp_Json::getPaySafeCardCreateDispositionJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id member * and referenceid parameter * * @param string $token * @return void */ public function __construct($token) { $data = SkrillPsp_Json::getOneTapJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->json['params']['account']['token'] = $token; }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id member * * * @return void */ public function __construct() { $data = SkrillPsp_Json::getOneTapRegisterJson(); $this->json = $this->decode($data, true); if (empty($this->json['params']['merchant'])) { unset($this->json['params']['merchant']); } $this->json['id'] = $this->setId(); }
/** * Constructor * * Decodes json source in php array and sets id and method members of json request * @return void */ public function __construct() { $data = SkrillPsp_Json::getSkrillWalletRecurringBillingJson(); $this->json = $this->decode($data, true); if (empty($this->json['params']['merchant'])) { unset($this->json['params']['merchant']); } $this->json['id'] = $this->setId(); }
/** * Constructor * * Decodes json source in php array and sets id and method members of json request * @return void */ public function __construct() { $data = SkrillPsp_Json::getAlternativeWithAccountJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->json['method'] = $this->method; $this->json['params']['account']['paysource'] = self::PAYSOURCE; $this->json['params']['account']['money_source'] = $this->moneySource; }
/** * Constructor * * Loads json request source and decodes it in php array and sets id and method members * @param string $referenceId * @return void */ public function __construct($referenceId = null) { $data = SkrillPsp_Json::getRefundJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); unset($this->json['params']['identification']['customerid']); if (!empty($this->referenceId)) { $this->json['params']['identification']['referenceid'] = $this->referenceId; } }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id, * method, country and fiscalId parameters * * @return void */ public function __construct() { $data = SkrillPsp_Json::getBoletoJson(); // $data = SkrillPsp_Json::test(); $this->json = $this->decode($data, true); $this->json['method'] = $this->method; $this->json['id'] = $this->setId(); $this->json['params']['payment']['country'] = self::COUNTRY; $this->json['params']['account']['fiscal_id'] = array(); }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id, * method, issuerid and other modifications for correct request * * @return void */ public function __construct() { $data = SkrillPsp_Json::getAlternativeWithAccountJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->json['method'] = $this->method; $this->json['params']['account']['issuerid'] = $this->issuerid; $this->json['params'][$this->customer]['name']['company'] = ''; unset($this->json['params']['payment']['country']); }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id member * and referenceid parameter * * @param string $referenceId optional * @throws SkrillPsp_Exception * @return void */ public function __construct($referenceId = null) { $data = SkrillPsp_Json::getCaptureJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); $this->referenceId = $referenceId; if (!empty($this->referenceId)) { $this->json['params']['identification']['referenceid'] = $this->referenceId; } else { throw new SkrillPsp_Exception('Reference Id is mandatory for capture request'); } }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id member and * email parameter * @param string $email * @throws InvalidArgumentException * @return void */ public function __construct($email) { $this->email = $email; $data = SkrillPsp_Json::getEmailCheckJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); if (!empty($this->email)) { $this->json['id'] = $this->setId(); $this->json['params']['account']['email'] = $this->email; } else { throw new InvalidArgumentException("Please provide email"); } }
/** * Constructor * * Loads json request source and decodes it in php array and sets id member, * checks for token and if it is set, unset card data * * @param string $token optional * @return void */ public function __construct($token = null) { $this->token = $token; $data = SkrillPsp_Json::getCreditJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); if ($this->token) { $this->json['params'][$this->account]['token'] = $this->token; unset($this->json['params'][$this->account]['cardholder']); unset($this->json['params'][$this->account]['number']); unset($this->json['params'][$this->account]['expiry']); unset($this->json['params'][$this->account]['cvv']); } }
public function __construct() { $data = SkrillPsp_Json::getSkrillWalletSendMoneyJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); }
/** * Constructor * * Loads json request source and decodes it in php array and sets id and method members * and paysource of json request * @return void */ public function __construct() { $data = SkrillPsp_Json::getQIWICreateInvoiceJson(); $this->json = $this->decode($data, true); $this->json['params']['account']['paysource'] = self::PAYSOURCE; }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id and * method parameters * @return void */ public function __construct() { $data = SkrillPsp_Json::getPaySafeCardPAJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); }
/** * Constructor * * Decodes json source in php array and sets id and method members of json request * @return void */ public function __construct() { $data = SkrillPsp_Json::getSkirllDirectJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); }
/** * Constructor * * Loads json request source and and decodes it in php array and sets id member * @return void */ public function __construct() { $data = SkrillPsp_Json::getPreauthorisationJson(); $this->json = $this->decode($data, true); $this->json['id'] = $this->setId(); }