temprory stan error fixes
This commit is contained in:
@@ -27,7 +27,7 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
* @property string $username
|
* @property string $username
|
||||||
* @property int $online_paymantable_id
|
* @property int $online_paymantable_id
|
||||||
* @property string $online_paymantable_type
|
* @property string $online_paymantable_type
|
||||||
* @property $api_response
|
* @property ?array $api_response
|
||||||
* @property \Illuminate\Support\Carbon $created_at
|
* @property \Illuminate\Support\Carbon $created_at
|
||||||
* @property \Illuminate\Support\Carbon $updated_at
|
* @property \Illuminate\Support\Carbon $updated_at
|
||||||
*/
|
*/
|
||||||
@@ -41,4 +41,16 @@ class OnlinePaymentHistory extends Model
|
|||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $table = 'online_payment_histories';
|
protected $table = 'online_payment_histories';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the attributes that should be cast.
|
||||||
|
*
|
||||||
|
* @return array<string, string>
|
||||||
|
*/
|
||||||
|
protected function casts(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'api_response' => 'array',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ trait HandlesBillingSyncing
|
|||||||
string $rrn,
|
string $rrn,
|
||||||
string $amount,
|
string $amount,
|
||||||
string $pay_purpose,
|
string $pay_purpose,
|
||||||
) {
|
): mixed {
|
||||||
$body = sprintf('{
|
$body = sprintf('{
|
||||||
"ecomId": "%s",
|
"ecomId": "%s",
|
||||||
"agentId": "%s",
|
"agentId": "%s",
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ class OnlinePaymentRepo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Successfully payment response
|
* Successfully payment response
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
*/
|
*/
|
||||||
public static function successfulPaymentResponse(
|
public static function successfulPaymentResponse(
|
||||||
OnlinePaymentHistory $paymentHistory,
|
OnlinePaymentHistory $paymentHistory,
|
||||||
@@ -208,6 +210,8 @@ class OnlinePaymentRepo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Failed payment response
|
* Failed payment response
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
*/
|
*/
|
||||||
public static function failedPaymentResponse(
|
public static function failedPaymentResponse(
|
||||||
OnlinePaymentHistory $paymentHistory,
|
OnlinePaymentHistory $paymentHistory,
|
||||||
@@ -230,6 +234,8 @@ class OnlinePaymentRepo
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Resource not found
|
* Resource not found
|
||||||
|
*
|
||||||
|
* @return array<string, mixed>
|
||||||
*/
|
*/
|
||||||
protected static function resourceNotFound(): array
|
protected static function resourceNotFound(): array
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ trait HandlesVisaMasterPayments
|
|||||||
* Check payment payment visa master
|
* Check payment payment visa master
|
||||||
*
|
*
|
||||||
* @param Request $request
|
* @param Request $request
|
||||||
|
*
|
||||||
|
* @return array<string, string|bool>
|
||||||
*/
|
*/
|
||||||
public static function checkPaymentVisaMaster(Request $request): array
|
public static function checkPaymentVisaMaster(Request $request): array
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user