A company using the perpetual inventory system purchased inventory worth $500,000 on account with credit terms of 3/15, n/45. Defective inventory of $50,000 was returned 3 days later, and the accounts were appropriately adjusted. If the company paid the invoice 25 days later, the journal entry to record the payment would be ________.