I am still having the issue of the status of the member not being "Active" immediately after payment.
Even though payment for the membership already made through PayPal, member's status still shows "Pending".
The admin has to manually change it to "Active" before the membership ID and invoice is generated.
Please let me know what I need to do to make status as "Active" after payment.
Thank you for your soonest reply.