It’s really simple to sell a membership using Bizify.me on your website or blog! However you need to know some basic programming skills!
1
Activate advanced features
Login to your Bizify.me account and then go to the menu option Account.
Check the box I want to use advanced merchant features and click the Save changes button.
2
Link to the membership area
Then go to the menu option Objects for sale.
To create a new digital object for sale (in this case, a link to the membership area) click the button New object.
Pick the option Link to an object and then paste the web address (URL) to the membership area and add the following text ?$key at the end of the web address.
The link could for example look like this:
http://www.webpage.se/membership/?$key
3
Select price and availability
Choose the price for the membership, also choose how long time the buyer should have access to the membership area after a purchase has been made.
Then click the button Save object to save the link.
4
Add the link on your website/blog
After saving the link, a new unique link is created. Copy the address to the new link and paste it into your website/blog at the location where you want the link to the membership area to be displayed.
The new unique link might for example look like this:
<a href="https://bizify.me/123456789">Go to the membership area</a>
5
Restrict the access to unauthorized users
To prevent that unauthorized users without a membership, gets access to the membership area you must add the following code on your membership site.
Choose the programming language suitable for your web server and add the code at the top of the membership site.
<?php
session_start();
if($_GET["\$key"] != "")
{
$respons = file_get_contents("https://bizify.me/?\$key=" . $_GET["\$key"] . "&\$link=https://bizify.me/XXXXXXXX);
$respons = substr($respons, 10, 36); //Extract the $key from the JSON field
if(strpos($_GET["\$key"], $respons) !== false) $_SESSION["login"] = true;
}
if($_SESSION["login"] != true)
{
print "You are not logged in. Please login.";
exit();
}
?>
<script runat="server">
Sub Page_Load
If Request.Querystring("logout") = "true" Then Session("login") = false
Dim bizifyKey = Request.QueryString("$key")
If bizifyKey <> "" Then
Dim requestURL = "https://bizify.me/?$key=" & bizifyKey & "&$link=https://bizify.me/XXXXXXXX"
Dim httpClient as New WebClient()
Dim httpReader as New StreamReader(httpClient.OpenRead(requestUrl))
Dim verifyKey = httpReader.ReadToEnd()
verifyKey = verifyKey.Substring(10, 36) ’Extract the $key from the JSON field
If InStr(bizifyKey, verifyKey) Then Session("login") = true
End If
If Session("login") <> true Then
Response.Write("You are not logged in. Please login.")
Response.End
End If
End Sub
</script>
<script runat="server">
protected void Page_Load()
{
if (Request.QueryString["logout"] == "true") Session["login"] = false;
var bizifyKey = Request.QueryString["$key"];
if (!string.IsNullOrEmpty(bizifyKey))
{
var requestUrl = "https://bizify.me/?$key=" + bizifyKey + "&$link=https://bizify.me/XXXXXXXX";
using (var webClient = new WebClient())
using (var streamreader = new StreamReader(webClient.OpenRead(requestUrl)))
{
var verifyKey = streamreader.ReadToEnd();
verifyKey = verifyKey.Substring(10, 36); //Extract the $key from the JSON field
if (bizifyKey.Contains(verifyKey)) Session["login"] = true;
}
}
if (Session["login"] == null || (bool)Session["login"] != true)
{
Response.Write("You are not logged in. Please login.");
Response.End();
}
}
</script>
<%@page contentType="text/html" import="java.net.*, java.io.*" %>
<%
if(request.getParameter("$key") != null)
{
URL url = new URL("https://bizify.me/?$key=" + request.getParameter("$key") + "&$link=https://bizify.me/XXXXXXXX");
BufferedInputStream buffer = new BufferedInputStream(url.openConnection().getInputStream());
String output = "";
int byteRead;
while((byteRead = buffer.read()) != -1) output+= (char)byteRead;
buffer.close();
output = output.substring(10, 46); //Extract the $key from the JSON field
if(request.getParameter("$key").indexOf(output) >= 0) session.setAttribute("login", "true");
}
if(session.getAttribute("login") != "true")
{
out.print("You are not logged in. Please login.");
return;
}
%>
<%
If Request.Querystring("$key") <> "" Then
Set XmlHttp = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
XmlHttp.Open "GET", "https://bizify.me/?$key=" & Request.Querystring("$key") & "&$link=https://bizify.me/XXXXXXXX"
XmlHttp.Send
key = Mid(XmlHttp.responseText, 11, 36) ’Extract the $key from the JSON field
If InStr(Request.Querystring("$key"), key) Then Session("login") = true
Set XmlHttp = Nothing
End If
If Session("login") <> true Then
Response.Write("You are not logged in. Please login.")
Response.End
End If
%>
6
Prevent others from selling access to your membership area
To prevent other sellers at Bizify.me from selling a membership to your membership area, you must lock the membership site to your personal Bizify.me account. This means that it is only you who can charge for a membership when you have locked the membership site to your Bizify.me account.
Copy your unique link:
<a href="https://bizify.me/123456789">Go to membership area</a>
And change the XXXXXXXX in the code to your unique link.
$respons = file_get_contents("https://bizify.me/?\$key=" . $_GET["\$key"] . "&\$link=https://bizify.me/123456789");
Dim requestURL = "https://bizify.me/?$key=" & bizifyKey & "&$link=https://bizify.me/123456789"
var requestUrl = "https://bizify.me/?$key=" + bizifyKey + "&$link=https://bizify.me/123456789";
URL url = new URL("https://bizify.me/?$key=" + request.getParameter("$key") + "&$link=https://bizify.me/123456789");
XmlHttp.Open "GET", "https://bizify.me/?$key=" & Request.Querystring("$key") & "&$object=123456789"
Now you can start selling access to your membership area.