Redirects



Clients will be returned to the user on either a Complete or Termination redirect link when a session ends, based on the outcome of the session. If no complete happens, the default redirect is a termination. If the client abandons the session, the Magnatefy is unable to return the client and no redirect happens.

Redirect Requirements:

  • The redirect protocol must be https://

Complete Redirect

A complete successfully ends a Magnatefy session. The client will be redirected back on the complete redirect link immediately after completing a payment. The table below outlines the order variables will be returned in the query string for a Complete redirect link.

Redirect example:

https://www.domain.com/success?cid=TestProd001_19-995&mid=testUserMID&gid=835b35a1-4779-4ea5-ad0d-8061eac02a06&hash=RiNPoR2Bu4ZqhGXQrcK6IL2BcRElctks

Termination Redirect

If a payment rejected. The client will be returned on the Termination redirect link. The table below outlines the order variables will be returned in the query string for a Termination redirect link.

Redirect example:

https://www.domain.com/failure?cid=TestProd001_19-995&mid=testUserMID&hash=RiNPoR2Bu4ZqhGXQrcK6IL2BcRElctks

Redirect Variables

Variable Returned on Description
cid Complete, Termination Unique client identifier created by user.
mid Complete, Termination Optional secondary identifier passed in on entry. Value returns blank if not passed in on entry.
gid Complete Product UUID.
hash Complete, Termination HMAC SHA1 hash signature of the entire URL. Used by user to validate whether URL has been manipulated during redirect.