protected function getFormatters()
 {
     $formatters = parent::getFormatters();
     return $formatters + [Status::INVALID_REFERENCE => InformationFormatter::class];
 }
Пример #2
0
 public function __construct(SimpleXMLElement $xml, QueryRequest $request)
 {
     parent::__construct($xml, $request);
     $this->succeed = $this->status === Status::SUCCESS && $this->reason === Reason::ACCEPTED;
 }
 protected function getFormatters()
 {
     $formatters = parent::getFormatters();
     return $formatters + [Status::LUHN_CHECK_FAILS => InformationFormatter::class, Status::INVALID_PAYMENT_REFERENCE => InformationFormatter::class, Status::THREE_DS_FIELD_MISSING => ThreeDSFieldMissingFormatter::class];
 }
 protected function getFormatters()
 {
     $formatters = parent::getFormatters();
     return $formatters + [Status::SIMILAR_PASSWORD => InformationFormatter::class, Status::UNKNOWN_ERROR => ReasonFormatter::class, Status::UPDATE_CONFIGURATION_FAILED => ReasonFormatter::class];
 }