How to Register JazzCash Sandbox Account and Test Integration Using Custom PHP Website Part 1

Jazzcash Payment Gateway

An e-commerce site is not complete without a payment gateway. There are many payment gateways in Pakistan one can choose from like 2checkout, stripe, easypay etc., but the most famous online payment gateway in Pakistan is JazzCash payment gateway.

PHP is one of the most common platforms for e-commerce sites. PHP is a secure, fast, and trusted language when it comes to the banking and financial industry. Today various e-commerce websites run on PHP. That’s why I choose PHP for this tutorial.

In this tutorial I will explain the complete registration process for JazzCash merchant account. I will also explain how to integrate JazzCash payment gateway HTTP POST (Page Redirection) mode into any website using php.

What is Payment Gateway

The definition of a payment gateway is the technology that captures and transfers payment data from the customer to the acquiring banks and then transfers the payment acceptance or decline back to the customer.

In other words, the payment gateway works as the middleman between your customer and the merchant, ensuring the transaction is carried out securely and promptly. An online payment gateway can simplify the integration process. As the middleman during the payment processing, the gateway manages the customer’s sensitive card details between the acquiring banks and the merchant.

How Payment Gateway Works

A payment gateway validates the customer’s card details securely, ensures the funds are available and eventually enables merchants to get paid. It acts as an interface between a merchant’s website and its acquiring banks. It encrypts sensitive credit card details, ensuring that information is passed securely from the customer to the acquiring bank, via the merchant.

Working of Payment Gateway

Setting Up a JazzCash Sandbox Account

Go to https://sandbox.jazzcash.com.pk

JazzCash Sandbox Home Page

Click Signup button.

The following form will appear.

Signup Form

Enter email and phone number and then click on Register button.

OR

Alternatively, you can signup with Google, Twitter or Facebook.

The following screen will appear.

Email Sent Page

Login to your email account.

Open the email received from JazzCash.

Click on the link in email “Merchant Registration Form“.

See the email screenshot below.

Welcome to JazzCash Screen Shot

The following Merchant Registration Form will appear.

Merchant Registration Form

Fill the register form and clicked on Add button twice, located at the end of the form above the Submit button.

Note: You must add one technical and one business contact person.

Merchant Registration Form – Contact Persons Screen Shot

Then click on Submit button.

Your Merchant Sandbox Account will be registered successfully and the following email will be sent to you with test credentials such as Merchant ID, Password, Integrity Salt. These credentials will be used to testing payments.

Now you can login to your account using your email and password.

If all goes smoothly, the you get the successful response message displayed on the screen. After successful registration, login to your merchant account and your dashboard will appear.

Login Link:  https://sandbox.jazzcash.com.pk

Merchant Dashboard

JazzCash Api Testing

Login to your JazzCash account.

Login Link:  https://sandbox.jazzcash.com.pk

Click on sandbox testing from the left side bar.

To start testing, provide a Return URL and click on update button

Note down the credentials such as Merchant ID, Password, Integrity Salt and Return URL. These credential will be used to test the payment.

Credentials

JazzCash allows merchants to integrate their website with our payment gateway via following modes

  • HTTP POST (Page Redirection)
  • API Testing
  • Hosted Payment Checkout(V2.0)
  • Mobile SDK

This tutorial focus on HTTP POST (Page Redirection) Mode. I will discuss and implement the other modes in the next tutorial.

How HTTP POST (Page Redirection) Works

  1. Customer purchase a product or service from the merchant website.
  2. Customer is sent to JAZZCASH payment gateway website.
  3. Customer pay using debit/credit card or JAZZCASH mobile account.
  4. After payment process is done customer is returned back to the URL that is provided in credentials above.
  5. Merchant can check the transaction status from his merchant’s account logs.

Conclusion

In the next part I will show you how to integrate it into a custom PHP website. If you have any question about the tutorial comment below.

YouTube Video

One thought on “How to Register JazzCash Sandbox Account and Test Integration Using Custom PHP Website Part 1

Leave a comment

Design a site like this with WordPress.com
Get started