/** * 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 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']); }