PayPal requires a public URL and an SSL-enabled domain to function properly. Since you are currently working on localhost, PayPal will not work in this environment.
Please try using it on a public domain with SSL (HTTPS) enabled for proper functionality.
Regarding the custom Razorpay module not showing as a payment option after checkout
the payment options on the checkout page in the front end are displayed using the displayPayment hook in QloApps.
To understand how this works, you can:
Check Hooks usage in QloApps developer docs – Visit
QloApps Hooks Documentation for details on how hooks function.
Review Existing Payment Gateways – Look into the code of already provided payment modules like
PayPal or
Bank Wire to see how they implement the displayPayment hook.