from weasyprint import HTML import base64 # Data for the receipt customer_name = "Suriani Ramli" customer_email = "surianinani131@gmail.com" booking_no = "2002553051" payment_date = "April 18, 2026" hotel_name = "Cinta Sayang Resort" period = "April 19, 2026 - April 21, 2026 (2 night(s))" room_type = "Deluxe Queen Room" myr_amount = "350.00" usd_amount = "88.54" html_content = f"""
| Customer Details | Booking Information |
|---|---|
|
{customer_name} {customer_email} |
Booking No: {booking_no} Payment Date: {payment_date} |
| Description | Amount |
|---|---|
|
Hotel Name: {hotel_name} Period: {period} Room Type: {room_type} # of Rms: 1 |
|
| Total Room Charges | USD {usd_amount} |
| Total Extra Bed Charges | USD 0.00 |
| GRAND TOTAL | USD {usd_amount} |
| Total Charge (Converted) | MYR {myr_amount} |
Amount to be split into multiple tranches and deducted on a deferred basis as agreed. For more information, please refer to your payment schedule set out in your Account on the Atome Platform.