API Reference

Checksum Beta Testing Notification

Dear Developers,

We are pleased to inform you that the checksum feature is currently undergoing beta testing within our system. As a valued member of our development community, we want to keep you informed about the status of this feature and its implications for your projects.

  1. Beta Testing Phase:

The checksum feature is presently in beta testing, which means it is being evaluated and refined before full deployment.
During this phase, checksum implementation is not mandatory for system functionality.

  1. Purpose of Checksums:

Checksums serve as cryptographic values computed to ensure data integrity and security during transmission and storage.
They provide a means to validate the integrity of transmitted data, safeguarding against errors and tampering.

  1. Development Considerations:

While checksum implementation is optional during beta testing, we encourage developers to familiarize themselves with the concept and prepare for its eventual integration.
Understanding checksums and their role in data validation will better equip you to adapt to future system requirements.

  1. Testing Environment:

Developers are invited to explore checksum implementation in a controlled testing environment to assess its impact on their systems.
This environment offers an opportunity to experiment with different checksum algorithms and configurations.

  1. Future Integration:

Once the beta testing phase concludes and the checksum feature is ready for production, developers will receive comprehensive guidelines for integrating checksum functionality into their applications.
Stay tuned for updates and announcements regarding the official launch and integration timeline.

  1. Stay Informed:

Regularly check our developer documentation and communication channels for updates on the checksum feature and related developments.
Feel free to reach out to our support team with any questions or feedback regarding checksum implementation and its implications for your projects.
We appreciate your engagement and collaboration as we work to enhance the security and reliability of our system. Your feedback and insights are invaluable as we strive to deliver the best possible experience for our users.

Thank you for your attention to this notification, and we look forward to your continued involvement in the beta testing process.

// Define your secret key
$secret_key = "key_f709d88a8e3d2d";

// Define each parameter as a variable
$app_id = "mid_787dd6ddc39acc9";
$customer_address_city = "Mumbai";
$customer_address_country = "India";
$customer_address_line1 = "123 Main Street";
$customer_address_line2 = "Apt 4B";
$customer_address_postal_code = "400001";
$customer_address_state = "Maharashtra";
$customer_email = "[email protected]";
$customer_name = "John Doe";
$customer_phone = "+919876543210";
$order_amount = "1000";
$order_currency = "INR";
$order_id = "order12345";
$order_note = "Order for electronics";
$return_url = "https://localhost/callback?order_id={order_id}";
$service_type = "service1";




$sortedString = 'app_id' . $app_id . 'customer_address_city' . $customer_address_city . 'customer_address_country' . $customer_address_country . 'customer_address_line1' . $customer_address_line1 . 'customer_address_line2' . $customer_address_line2 . 'customer_address_postal_code' . $customer_address_postal_code . 'customer_address_state' . $customer_address_state . 'customer_email' . $customer_email . 'customer_name' . $customer_name . 'customer_phone' . $customer_phone . 'order_amount' . $order_amount . 'order_currency' . $order_currency . 'order_id' . $order_id . 'order_note' . $order_note . 'return_url' . $return_url . 'service_type' . $service_type;

// Generate the HMAC signature
$signature = hash_hmac('sha256', $sortedString, $secret_key, true);
$signature = base64_encode($signature);

// Output the generated signature
echo "Generated Signature: " . $signature;