On the payment application rules page you can set rules to determine how payment is automatically matched to open invoices. To automatically post and apply a credit card or ACH payment when your processor confirms it, you need a payment add-on solution that supports automatic posting and application. Once the full balance is applied, Business Central closes the invoice.