You're not really supposed to ship/not-ship anything based on a page callback... these can be faked by anyone with a browser,
You should use webhooks and a confirmation call to retrieve payment status.
The redirects are really just a thing to give the user a nice message.