Shopee SG Chargeback Portal

โ€“
Total Cases
โ€“
Unique Checkouts
โ€“
Screenshots Uploaded
โ€“
Reports Ready

Cases from Google Sheet

 Loading cases...
Chargeback Ref NoCheckout IDOrder IDOrder SNBuyer ID Buyer UsernameAddressTypeCard Device IDGrand TotalPay Date

Upload Screenshots

Upload a ZIP of your output\ folder, select individual PNG files, or select a folder. All methods can be used together โ€” files accumulate.

๐Ÿ“
Drag & drop ZIP file or PNG files here

Or use the buttons below

Reports

โš ๏ธ Sessions expire regularly. Always run check_sessions.py before run_all.py to avoid partial or missing screenshots.

Section 1 โ€” Prerequisites

What to Install

Scripts Required

All scripts in C:\Users\giaing.yap\Desktop\playwright test\

Script What it does
run_all.pyMain script โ€” reads cases from Google Sheet, navigates all 4 portals, captures and saves all screenshots per case
check_sessions.pyChecks whether all 4 portal sessions are still valid or expired, tells you which ones need renewal
save_session.pySaves a fresh session for order-admin.shopee.sg โ†’ outputs shopee_session.json
save_session_dms.pySaves a fresh session for dms.cs.shopee.sg โ†’ outputs dms_session.json
save_session_user_admin.pySaves a fresh session for admin.user.shopee.io โ†’ outputs user_admin_session.json
save_session_antifraud.pySaves a fresh session for antifraud.admin.shopee.io โ†’ outputs antifraud_session.json

Section 2 โ€” Step by Step

1

Check Sessions

Before running anything, verify all portal sessions are still valid:

python "C:\Users\giaing.yap\Desktop\playwright test\check_sessions.py"

For any EXPIRED session, run the suggested save_session_*.py script, log in manually in the browser that opens, then press Enter to save.

2

Run Screenshots

Once all sessions are OK, run the main script from any terminal โ€” it automatically navigates to the correct folder:

python "C:\Users\giaing.yap\Desktop\playwright test\run_all.py"

Screenshots are saved to:

output\
  โ””โ”€โ”€ {order_id}\
        โ”œโ”€โ”€ {checkout_id}_{order_id}_status_timeline.png
        โ”œโ”€โ”€ {checkout_id}_{buyer_id}_admin_user.png
        โ”œโ”€โ”€ {checkout_id}_{buyer_id}_antifraud_device.png
        โ”œโ”€โ”€ {checkout_id}_{buyer_id}_antifraud_cc.png
        โ””โ”€โ”€ {checkout_id}_{order_id}_dms_rating.png  โ† only if buyer rating exists
3

Upload Screenshots

Go to the Upload Screenshots tab. Three options โ€” all accumulate, can be mixed:

  • Upload ZIP โ€” zip the output\ contents and upload in one go. Recommended.
  • Select PNG Files โ€” pick individual PNG files
  • Select Folder โ€” pick a single order ID subfolder
4

Generate & Review Reports

Go to the Reports tab:

  • Click โšก Generate per case or โšก Generate Selected for all at once
  • Click ๐Ÿ‘ Preview to review before exporting
  • If anything is wrong, fix data in the Google Sheet, refresh Cases tab, and regenerate
  • Use โฌ‡ DOCX to download an editable Word file if manual edits are needed
5

Package for Bank

Select all approved cases and click ๐Ÿ“ฆ Package for Bank. A ZIP named {YYYYMMDD_HHMM}.zip will download:

{YYYYMMDD_HHMM}.zip
  โ””โ”€โ”€ {chargeback_ref_no}/
        โ”œโ”€โ”€ {chargeback_ref_no}.pdf          โ† full investigation report
        โ”œโ”€โ”€ address_binding_time.pdf
        โ”œโ”€โ”€ card_binding_time.pdf
        โ”œโ”€โ”€ device_binding_time.pdf
        โ”œโ”€โ”€ POD_1 Order ID {order_id}.pdf
        โ”œโ”€โ”€ POD_2 Order ID {order_id}.pdf    โ† if multiple orders
        โ””โ”€โ”€ Rating_1.pdf                     โ† only if buyer rating exists

Note: / in chargeback ref numbers is replaced with - in folder/file names (e.g. 7M3/V1C052586 โ†’ 7M3-V1C052586).