wip
This commit is contained in:
@@ -31,7 +31,7 @@ class OnlinePaymentController extends Controller
|
|||||||
/** @var \App\Models\Branch\Branch */
|
/** @var \App\Models\Branch\Branch */
|
||||||
$bank = $data['bank_branch'];
|
$bank = $data['bank_branch'];
|
||||||
|
|
||||||
info([$paymentHistory->api_response]);
|
info(gettype($paymentHistory->api_response));
|
||||||
|
|
||||||
// if ($data['success'] && $paymentHistory) {
|
// if ($data['success'] && $paymentHistory) {
|
||||||
// info(OnlinePaymentRepo::syncWithBilling(
|
// info(OnlinePaymentRepo::syncWithBilling(
|
||||||
|
|||||||
@@ -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 ?array $api_response
|
* @property $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,16 +41,4 @@ 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',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ trait HandlesVisaMasterPayments
|
|||||||
'paymentStatus' => OnlinePaymentRepo::FAILED,
|
'paymentStatus' => OnlinePaymentRepo::FAILED,
|
||||||
'cardholderName' => $cardholderName,
|
'cardholderName' => $cardholderName,
|
||||||
'pan' => $cardPan,
|
'pan' => $cardPan,
|
||||||
'api_response' => $response->body(),
|
'api_response' => $response->json(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL);
|
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL);
|
||||||
|
|||||||
Reference in New Issue
Block a user