new Payment(paymentId, amount, method)
Creates a Payment instance.
Parameters:
| Name | Type | Description |
|---|---|---|
paymentId |
number | Unique payment ID. |
amount |
number | The amount to be paid. |
method |
string | The payment method (e.g., 'card', 'cash'). |
- Source: