Carrier billing return URLs should reconnect the browser to an existing purchase attempt, then check who may view it. Keep purchase ownership on the server, verify payment through the provider's documented backend mechanism, and restrict onward navigation to approved destinations. A copied link or edited browser parameter must not transfer a purchase to another account.
This review applies to mVAS portals that send subscribers to a hosted payment or authorization page and receive them back afterward. It focuses on the return handoff, rather than payment retry policy or subscription cancellation.
1. Define what the return link may decide
Start by separating three questions: which purchase attempt returned, whether the payment succeeded, and whether the current visitor may access its details. A browser return can help identify the attempt. It should not independently settle the other questions.
OWASP warns that redirect parameters are untrusted and recommends backend payment verification, matching the expected order, amount and currency, and authenticating callbacks. Its payment gateway integration guidance provides a general security baseline, rather than a carrier-specific API contract.
For a carrier integration, ask the provider which backend evidence confirms the relevant operation. Authorization, a subscription agreement and a completed charge may represent different events. Record their meanings in the integration specification before writing success-page copy.
Give the return handler a narrow job: locate the stored attempt, enforce viewing permissions and present its verified state. Keep it separate from the endpoint that receives provider notifications. This makes the two trust boundaries easier to review.
2. Preserve account ownership across the handoff
A practical design is to create a purchase attempt before sending the subscriber away. Store the intended service account, product and provider reference together. Returning browser data can locate this record, but should not overwrite its owner.
Consider a subscriber who starts checkout in one tab, signs out, and then signs into a different account before returning. Decide the recovery behaviour explicitly. The recommended acceptance criterion is that the second account cannot claim or inspect the first account's purchase merely because the browser carries its return link.
OWASP explains that complex identifiers do not replace access checks. Its object-reference prevention guidance recommends checking permission whenever a referenced object is accessed. Apply that check to purchase summaries and status endpoints as well as content access.
For account-based portals, ask for sign-in when ownership cannot be established. For guest purchases, specify a separate recovery method suited to the service. Do not quietly treat possession of an order reference as proof of identity. A carrier-recognized subscriber and a portal account also need an explicit association rule; the return handler should not invent that association.
3. Restrict the destination after checkout
After processing the return, the portal may send the visitor to a receipt, content library or account page. Prefer a stored destination choice that maps to an approved route. Avoid accepting a complete onward URL from the browser when a small set of destinations will do.
OWASP's unvalidated redirects guidance recommends server-side destination mappings. Where external destinations are necessary, it advises validating parsed URL components against an explicit allowlist rather than relying on raw prefix or suffix matching.
Use the following proposed review criteria to decide how each destination should work. These are implementation choices to validate against your provider's supported flow.
| Destination requirement | Suggested approach | Acceptance check |
|---|---|---|
| Return to the portal's content library | Store an approved internal route choice | An edited parameter cannot select an external site |
| Return to one of several partner portals | Map a destination identifier to an approved HTTPS endpoint | Unknown identifiers lead to a safe local page |
| Resume a specific purchase summary | Resolve the attempt and check the visitor's permission | Another account cannot view the summary |
| Open a mobile app after checkout | Review the app handoff separately and retain a web recovery page | An unsuccessful app launch leaves a usable recovery route |
A valid destination does not prove payment or ownership. Test those decisions separately, even when the provider sends the browser directly to your preferred page.
4. Keep sensitive context out of the return address
Design return addresses around the minimum reference required by the integration. Review whether subscriber numbers, account details or reusable credentials appear in the address, and remove anything the flow does not need. A purchase reference should also have a defined purpose: correlation, authenticated lookup or recovery. Avoid letting one reference silently perform all three roles.
Review what happens immediately after the return page loads. Analytics scripts, support widgets and onward navigation deserve attention before adding them to this route. The page should not send checkout context to tools simply because the rest of the website uses those tools.
MDN documents how the Referrer-Policy header controls information included in the browser's Referer header. For example, the no-referrer policy omits that header. Select and test a policy deliberately. It does not control information collected directly by scripts or retained by your own infrastructure.
Give support teams an internal correlation reference that does not require customers to forward the full return address. The related guide to carrier billing support logs without unnecessary subscriber exposure covers the investigation side of this design.
5. Test copied links, account changes and repeated returns
A successful checkout demonstration proves little about ownership boundaries. Build an acceptance exercise with two test accounts, separate purchase attempts and the provider's approved testing environment. OWASP specifically recommends multiple accounts when checking object-level access controls.
Use this checklist before approving the return flow:
- Copy one account's return link into the other account's browser session. Confirm that purchase details remain inaccessible.
- Change the purchase reference to another valid test reference. Check both the page and its background status requests.
- Sign out during the provider handoff. Verify that the portal offers recovery without assigning the purchase to the next signed-in account.
- Alter the onward destination. Confirm that an unapproved address cannot redirect the visitor.
- Reload a completed return page and reopen it in another tab. Confirm that it cannot create another entitlement.
- Remove required correlation information. Check that the page explains how to recover without revealing another purchase.
- Inspect the address bar, outgoing requests and permitted diagnostic records for unnecessary checkout data.
Record the expected result and an owner for each check. Include the support response for an ownership mismatch, since a technically correct rejection can still leave a paying customer unsure what to do.
Payment evidence and content entitlement need their own acceptance criteria. The existing article on when pending carrier payments should unlock content addresses that separate decision.
6. Fix common mistakes and assign the next step
A frequent design mistake is allowing the current browser session to replace the account stored at checkout. Make reassignment a separate, deliberate support or product workflow if the service needs it. Returning from a provider page should not perform that change implicitly.
Another mistake is treating a signed return value as sufficient permission to display a purchase. Authenticity, payment evidence and viewer authorization answer different questions. Likewise, an unpredictable reference reduces guessing but does not establish that its holder owns the purchase.
Avoid using a friendly error page that reveals the original customer's name or subscriber details. Test rejection messages with the same care as success messages. Also check that a repeated return only displays the existing result rather than rerunning fulfillment.
The next step is a focused handoff review: select one live integration, document where purchase ownership is fixed, and run the two-account exercise in its approved test environment. Ask engineering to demonstrate each rejection and ask support to review the recovery wording. Expand the review to other carrier flows only after the first flow has clear evidence and an agreed recovery path.
India
UAE
KSA
USA
UK
Canada
Oman
Kuwait
Australia
Thailand