Billing Integration Tech

Our access code system allows for you to bridge your billing platform to our esports platform(s). 
On successful billing, users will be able to claim their own premium platform account and unlock the full capabilities of the esports platform(s).

How it works
Register URL with access code is sent to the user via SMS (or other channel) after successful billing.
(example SMS: Your link for service is: https://www.glitch.win/register?a=accesscode your access code is “{accesscode}”)
Once the user clicks the register link, they will visit a special registration page, their access code and username will be prepopulated.
Once the user registers an account with their access code, they will be logged into the clipfeed user database and can be tracked by their access code.

Special Registration Page Structure
Below is the structure of the page that the user will visit, once the user clicks the special registration URL that they receive via SMS (or other channel) .
Access Code (Pre-populated)
Username (Pre-populated)

Users can add their email and change password from the account details page after registration.


Automatic Access Code Verification process:

We recommend that you use the customers mobile number (or similar) as access code. This will allow team clipfeed to efficiently manage and cross-reference users.

All access codes must be encrypted with following function: 

function encrypt($accessCode, $private_key) { 

$input=$accessCode.":".$private_key; 

return rtrim(strtr(base64_encode(gzdeflate($input, 9)), '+/', '-_'), '='); 


Function has two parameters:
First parameter ---> Access Code
Second parameter ---> Secret Key
How to call function :
$output= encrypt($accesscode, $private_key);

$output is the final code that has been encrypted, it should be sent to user on sms with link.
Note: If Access Codes are not encrypted using the given method, then the platform will consider it invalid so it must be structured before passing on the function.