示例#1
0
 /**
  * @param \Generated\Shared\Transfer\PayoneCreditCardCheckRequestDataTransfer $creditCardCheckRequestDataTransfer
  *
  * @return array
  */
 public function getCreditCardCheckRequestData(PayoneCreditCardCheckRequestDataTransfer $creditCardCheckRequestDataTransfer)
 {
     $this->standardParameter->fromArray($creditCardCheckRequestDataTransfer->toArray(), true);
     $creditCardCheck = new CreditCardCheck($this->standardParameter, $this->hashGenerator, $this->modeDetector);
     $data = $creditCardCheck->mapCreditCardCheckData();
     return $data->toArray();
 }
示例#2
0
 /**
  * @param array $defaults
  *
  * @return \Generated\Shared\Transfer\PayoneStandardParameterTransfer
  */
 protected function createStandardParameter(array $defaults)
 {
     $standardParameterTransfer = new PayoneStandardParameterTransfer();
     $standardParameterTransfer->fromArray($defaults);
     /********************************
      * @todo get params from config (like in PayoneConfig zed bundle)
      ********************************/
     return $standardParameterTransfer;
 }