In your payment plugin's options, you can sometimes specify these URLs,and mainly the first one with the "return url" parameter. For the other ones, what usually happens is that the order is cancelled and you're redirected to the cart so that you can choose another payment method if you want.