Yes, you could change the code that processes the transaction through paypal to process through your bank server.
You will likely have to modify the code provided by the bank to get it to work, If you are comfortable coding in PHP, it should not be that difficult.