wip
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user