any time a payment or refund is made in sugarcrm jbilling is updated in realtime a payment will be automatically created and associated to the invoice