Manually created appointments are created as paid

🛠 Planned

If I create one or more appointments manually, because they are registered by phone, for example, then they are marked in the system as paid, with the note (paid by admin).
Then I set them to "Pending", but they are still not shown as "not paid", e.g. in the invoice addon.
The customer looks at the invoice and it says fully paid.

Chris

1 year ago

Activity
Armando A

if ($bookingpress_payment_gateway == "on-site" || $bookingpress_payment_gateway == "manual") {
$payment_status = 2;

line 1238 (wp-content/plugins/bookingpress-appointment-booking-pro/core/classes/class.bookingpress_pro_payment_gateways.php)

Explanation of the code:

This PHP code snippet is designed to check the payment method used for a booking within the BookingPress plugin.

  • if ($bookingpress_payment_gateway == "on-site" || $bookingpress_payment_gateway == "manual")

    : This conditional statement evaluates if the payment was processed either "on-site" (directly at the location) or "manually" (outside of the online system).
  • $payment_status = 2;

    : If the payment method matches either "on-site" or "manual", this line sets the

    $payment_status

    variable to 2. This typically indicates a specific payment status, such as "pending confirmation" or "processing", which might require additional verification or manual input.

What does this change do?

By combining the conditions for "on-site" and "manual" payments, the code ensures that whenever a booking is made using either of these methods, the

$payment_status

is consistently set to 2. This can be useful for:

I hope this explanation is helpful!

0    3 months ago    Reply

Comment must be at least 20 characters.
Cancel

We love to listen to our customers.

Reputeinfosystems changed status to 🛠 Planned

9 months ago

3 votes
Categories
🪲 Bug