You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BillStatusBoolean.php 528B

12345678910111213141516171819202122232425
  1. <?php
  2. /** @noinspection PhpUndefinedMethodInspection */
  3. namespace MirfalahTech\Laravel\Payment\Traits;
  4. use Illuminate\Http\Request;
  5. trait BillStatusBoolean
  6. {
  7. public function isBillSuccess(Request $request): bool
  8. {
  9. return $this->getBillStatus($request) > 0;
  10. }
  11. public function isBillFailed(Request $request): bool
  12. {
  13. return $this->getBillStatus($request) < 0;
  14. }
  15. public function isBillPending(Request $request): bool
  16. {
  17. return $this->getBillStatus($request) == 0;
  18. }
  19. }