id = 'payment_received'; $this->title = __('Payment Received', 'advanced-connector-for-uplisting'); $this->description = __('Sent to the guest when payment for a booking is completed.', 'advanced-connector-for-uplisting'); $this->subject = __('Payment Received - {property_title}', 'advanced-connector-for-uplisting'); $this->heading = __('Payment Received', 'advanced-connector-for-uplisting'); $this->template = 'customer/payment-received'; } /** * Guest email address from the booking. * * @since 1.0.0 * @param BookingDetails $booking Booking model. * @return string */ public function get_recipient(BookingDetails $booking): string { $email = $booking->get_email(); return is_email($email) ? (string) $email : ''; } }