fix 1.26.1: public order settle uses StatusPaidResponse

This commit is contained in:
Hernâni Marques 2026-08-31 21:18:31 +02:00
parent 39e5eccc25
commit bc785f8466
No known key found for this signature in database
GPG key ID: CB5738652768F7E9
6 changed files with 34 additions and 54 deletions

View file

@ -223,17 +223,7 @@ order_public() {
}
order_is_paid() {
python3 -c 'import json,sys
try:
d=json.load(open(sys.argv[1]))
except Exception:
raise SystemExit(1)
if d.get("paid") is True or str(d.get("order_status","")).lower()=="paid":
raise SystemExit(0)
if "refunded" in d or "refund_amount" in d:
raise SystemExit(0)
raise SystemExit(1)
' "$1"
merchant_order_json_is_paid "$1"
}
wallet_handle_done() {