This commit is contained in:
2025-03-19 09:47:28 +05:00
parent 0e8a34a84b
commit 1181100e29
5 changed files with 29 additions and 11 deletions

View File

@@ -186,8 +186,6 @@ class OnlinePaymentRepo
/**
* Successfully payment response
*
* @return array{success: bool, title: string, pnr: string, branch_name: string, price_amount: string, return_url: string}
*/
public static function successfulPaymentResponse(
OnlinePaymentHistory $paymentHistory,
@@ -202,13 +200,14 @@ class OnlinePaymentRepo
'branch_name' => $bank_branch->name,
'price_amount' => \convertToOriginalFormat($paymentHistory->amount).' TMT',
'return_url' => $returnURL,
'bank_branch' => $bank_branch,
'resource' => $resource,
'paymentHistory' => $paymentHistory,
];
}
/**
* Failed payment response
*
* @return array{success: bool, title: string, pnr: string, branch_name: string, price_amount: string, return_url: string}
*/
public static function failedPaymentResponse(
OnlinePaymentHistory $paymentHistory,
@@ -223,13 +222,14 @@ class OnlinePaymentRepo
'branch_name' => $bank_branch->name,
'price_amount' => convertToOriginalFormat($paymentHistory->amount).' TMT',
'return_url' => $returnURL,
'paymentHistory' => $paymentHistory,
'bank_branch' => $bank_branch,
'resource' => $resource,
];
}
/**
* Resource not found
*
* @return array{success: bool, title: string, pnr: string, branch_name: string, price_amount: string, return_url: string}
*/
protected static function resourceNotFound(): array
{
@@ -240,6 +240,9 @@ class OnlinePaymentRepo
'branch_name' => '',
'price_amount' => '',
'return_url' => url('/'),
'bank_branch' => null,
'resource' => null,
'paymentHistory' => null,
];
}
}