21 lines
499 B
PHP
21 lines
499 B
PHP
<?php
|
|
|
|
namespace App\Services;
|
|
|
|
class PaymentGateway
|
|
{
|
|
/**
|
|
* Simulate charging a payment method for a reservation.
|
|
* Replace with real gateway (Stripe, Mollie, etc.) integration later.
|
|
*/
|
|
public function charge(int $reservationId, int $amountCents, array $options = []): array
|
|
{
|
|
// Simulated success response
|
|
return [
|
|
'status' => 'succeeded',
|
|
'id' => 'sim_charge_'.uniqid(),
|
|
'amount' => $amountCents,
|
|
];
|
|
}
|
|
}
|