Hi
That depends on the payment gateway you are using. Usually, after users complete payment at the payment gateway, the payment gateway will make a call back to the following url:
yoursite.com/index.php?option=com_osmemb...me_of_payment_plugin
When that URL is called by the payment gateway, the method verifyPayment in the payment plugin will be called. In that method, you will need to validate the payment, make sure it is valid, then update status of the record, perform sending emails.....
In your case, I think you haven't handled this callback notification properly and that's the reason causing the issue
Regards,
Tuan