When making a payment, the Store Code on the receipt will default to the Store Code of the invoice.
The Store Code can be changed if the payment is being taken at another store, and the Receipt Register will default to the correct Register for the store selected.