For some odd reason, $_POST['txn_id'] comes out incomplete in the URL. If the value is 46YBNENJ, only the 46 comes out in the URL. This is a problem because it's not the full order ID, but also because several orders will start with that and duplicate URLs with the shortener won't work.