📅  最后修改于: 2022-03-11 14:45:29.583000             🧑  作者: Mango
try:
sale = twocheckout.Sale.find(EXAMPLE_SALE)
invoice = sale.invoices[0]
lineitem = invoice.lineitems[0]
result = lineitem.refund(EXAMPLE_REFUND)
except TwocheckoutError as error:
error.message