📜  2checkout python代码示例

📅  最后修改于: 2022-03-11 14:45:29.583000             🧑  作者: Mango

代码示例1
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