# Yeah the payment needs to have been processed prior to refunding. Also, should I use the charge from the invoice or the payment_intent from the invoice when creating the refund? Thanks! Doesn't matter