allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
35
vendor/anandsiddharth/laravel-paytm-wallet/src/Traits/HasTransactionStatus.php
vendored
Normal file
35
vendor/anandsiddharth/laravel-paytm-wallet/src/Traits/HasTransactionStatus.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Anand\LaravelPaytmWallet\Traits;
|
||||
use Anand\LaravelPaytmWallet\Facades\PaytmWallet;
|
||||
|
||||
trait HasTransactionStatus {
|
||||
|
||||
public function isOpen(){
|
||||
if ($this->response['STATUS'] == PaytmWallet::STATUS_OPEN){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isFailed(){
|
||||
if ($this->response['STATUS'] == PaytmWallet::STATUS_FAILURE) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isSuccessful(){
|
||||
if($this->response['STATUS'] == PaytmWallet::STATUS_SUCCESSFUL){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isPending(){
|
||||
if($this->response['STATUS'] == PaytmWallet::STATUS_PENDING){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user