def pay(invoice, send_receipt=True):
    if not invoice.paid and not invoice.closed:
        stripe_invoice = invoice.stripe_invoice.pay()
        sync_invoice_from_stripe_data(stripe_invoice, send_receipt=send_receipt)
        return True
    return False
Cause an invoice to be paid
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/actions/invoices.py/pay