first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Modules\Payment;
use JsonSerializable;
abstract class GatewayResponse implements JsonSerializable
{
abstract public function getOrderId();
public function toArray()
{
$data = ['orderId' => $this->getOrderId()];
if ($this instanceof ShouldRedirect) {
$data['redirectUrl'] = $this->getRedirectUrl();
}
return $data;
}
public function jsonSerialize()
{
return $this->toArray();
}
public function __toString()
{
return json_encode($this->jsonSerialize());
}
}