If the payment for the just generated invoice has been made via cash or bank payment, you can reconcile/approve the payment immediately to generate the payment receipt.\
\
If the payment is to be made via online payment method, then the payment gateway will take care of the payment approval/reconciliation automatically.