You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
payment/app/Helper/OmiPay/Result.php

23 lines
357 B
PHP

<?php
declare(strict_types=1);
namespace App\Helper\OmiPay;
class Result
{
private $data;
public function __construct($data)
{
$this->data = $data;
}
public function isSuccess() {
return $this->data['return_code'] == 'SUCCESS';
}
public function get($key) {
return $this->data[$key] ?? null;
}
}