fix 1.26.1: public order settle uses StatusPaidResponse
This commit is contained in:
parent
39e5eccc25
commit
bc785f8466
6 changed files with 34 additions and 54 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue