JazzCash is Pakistan's leading mobile payments platform with over 25 million users. Integrating it into your PHP app opens your store to a massive local market.
Getting Your Credentials
Apply for a merchant account at merchant.jazzcash.com.pk. You will receive a Merchant ID, Password, and Integrity Salt.
Hash Generation
JazzCash uses HMAC-SHA256 for request signing. The hash is computed from a concatenated string of all parameters sorted alphabetically:
$hashStr = implode("&", $sortedParams);
$hash = hash_hmac("sha256", $hashStr, JAZZCASH_INTEGRITY_SALT);
Callback Handling
JazzCash posts a callback to your URL after payment. Always verify the response hash before updating the order status.