{"info":{"_postman_id":"77865adb-1366-4a1b-a0d4-f7c789228060","name":"Blaaiz Checkout Docs","description":"<html><head></head><body><p>CHECKOUT GATEWAY DOCUMENTATION</p>\n<p>The checkout gateway allows merchant to receive payment in different currencies.</p>\n<p>There are different payment methods available to make payment and different apis to call. Payment methods include card, bank transfer, USSD, pay with bank account</p>\n<p>There are 3 major operations to perform so as to complete a payment. The api request body is passed as an encrypted data using the RSA encryption algorithm.</p>\n<p>To authorise the api request, public key (which is provided from the merchant dashboard) is required to be passed. on the header on all the requests.</p>\n<p>The 3 operations are</p>\n<ol>\n<li><p>Create Order</p>\n</li>\n<li><p>Pay Order</p>\n</li>\n<li><p>Verify Payment Status</p>\n</li>\n</ol>\n<ul>\n<li>Create Order</li>\n</ul>\n<p>Create order is the point where the customer details, the order details and every other information is been passed to create an order. which then returns the merchant information, the order details including the reference and the payment options available for the selected currency.</p>\n<p>A unique reference is required to be passed which is used to identifier the order payment between the different systems involved.</p>\n<ul>\n<li>Pay Order</li>\n</ul>\n<p>This is the point where the customer select the payment method they prefer to use either Card, USSD, Bank transfer or any other method available.<br>For Card payment different authorisation and authentication is used based on the card type.</p>\n<p>After a payment has been made. the success response respond return from this endpoint does not guarantee the payment is successful because in some cases the customer would have to go through verification and validation process. This is where the 3rd operation comes in</p>\n<ul>\n<li>Verify Payment Status</li>\n</ul>\n<p>This is the point where the status of the payment can be confirmed. this endpoint can be called couple of times to get the update on a payment</p>\n<p>Point to Note</p>\n<p>For easy integration, an endpoint is provided only for staging (it is not available on production) to encrypt data to be send for each of this operations</p>\n<p>SAMPLE ENCRYPTION CODE</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">import rsa from 'node-forge'\nconst BigInteger = rsa.jsbn.BigInteger\nlet parser = new DOMParser()\nfunction encryptForge(data, rsa_pub_key) {\n  let pk = rsa_pub_key\n  let rsaKeyValue = atob(pk)\n  rsaKeyValue = rsaKeyValue.split('!')[1]\n  const xmlDoc = parser.parseFromString(rsaKeyValue, 'text/xml')\n  const modulus = xmlDoc.getElementsByTagName('Modulus')[0].innerHTML\n  const exponent = xmlDoc.getElementsByTagName('Exponent')[0].innerHTML\n  const pubKey = rsa.pki.setRsaPublicKey(\n    parseBigInteger(modulus),\n    parseBigInteger(exponent),\n  ) // e\n  let encryptText = pubKey.encrypt(rsa.util.encodeUtf8(data))\n  return btoa(encryptText)\n}\nfunction parseBigInteger(b64) {\n  return new BigInteger(\n    rsa.util.createBuffer(rsa.util.decode64(b64)).toHex(),\n    16,\n  )\n}\nexport default encryptForge\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import base64\nfrom Crypto.PublicKey import RSA\nfrom Crypto.Cipher import PKCS1_v1_5\nfrom Crypto.Util.Padding import pad\nimport xml.etree.ElementTree as ET\ndef encrypt(data, public_xml):\n    try:\n        if not data:\n            raise Exception(\"Data sent for encryption is empty\")\n        print(data)\n        # Decode the Base64 string\n        decoded_bytes = base64.b64decode(public_xml)\n        # Convert the decoded bytes to a string\n        decoded_string = decoded_bytes.decode('utf-8')\n        public_xml_key = decoded_string.split('!')[1]\n        modulus = getXmlComponent(public_xml_key, \"Modulus\")\n        exponent = getXmlComponent(public_xml_key, \"Exponent\")\n        modulus_bytes = base64.b64decode(modulus)\n        exponent_bytes = base64.b64decode(exponent)\n        # Create an RSA public key from Modulus and Exponent\n        key = RSA.construct((int.from_bytes(modulus_bytes, byteorder='big'), int.from_bytes(exponent_bytes, byteorder='big')))\n        # Initialize the Cipher for encryption\n        cipher = PKCS1_v1_5.new(key)\n        # Encrypt data\n        encrypted_bytes = cipher.encrypt(bytes(data, 'utf-8'))\n        print(encrypted_bytes)\n        #Convert to base 64 string\n        encrypted_bytes_ = base64.b64encode(encrypted_bytes)\n        print(encrypted_bytes_)\n        return encrypted_bytes\n    except Exception as e:\n        raise e\ndef getXmlComponent(xmlstring, _field):\n    try:\n        # Parse the XML string\n        root = ET.fromstring(xmlstring)\n        # Find elements with the specified field name\n        modulusElements = root.findall(_field)\n        modulusValue = \"\"\n        if modulusElements:\n            # Extract the Modulus value from the first element\n            modulusValue = modulusElements[0].text\n            print(\"Modulus Value:\", modulusValue)\n        else:\n            print(\"Modulus element not found.\")\n        return modulusValue\n    except Exception as e:\n        # Handle exceptions (e.g., parsing errors)\n        print(\"Error:\", str(e))\n        return \"\"\n# Example usage:\n_data = \"{\\\"order\\\":{}}\"\npublic_xml = \"ODE5MiE8UlNBS2V5VmFsdWU+PE1vZHVsdXM+cUZ0a3JQN2lTdlZqQkMxTEN0Y0hST01CSnF6OS9HME9EVHhWZHVadjQvVEhidGh0bXlQeURPeG9vd25uV1czKzNIWXNhZ3FKRWZjUUF2RWwwSkRtMkF3Zmtpdm1ja1JJV0dLMXE2bjhoUnNKMHZhZlUreEJsbGFHZHl0V09mV2xjUFBSSEI0NWhsWVZpWWd0ZDdZSVFRVWlKcXdkRTNmRTNFSHJHenJraUxVMktoRHIxRDBTMVB1Q2k5SFpsUGZacDJiRmlwU2dKK1FpN0FweGZ6dGZVVk0xM1g3bUZ1OVUzZE1LQS9rNndhS1RYTTRjdUxocnpwUElxYW1wbEtXTE11aXNxSjc2c2FSSnhscFNEaHF3eTVtc2Z3VTludkVqYjZ2STk2SVZlU1hBYWdHQlZDeEFqMlc0dkZrZEhjSnloRy9vQlgrUEtqUklEM1FINXU1SVRjY2JiTlp1aGRVMVMrRkJFdzFpYW9zemN0RCszV3ovY0U2TmsrRDJsaXpDVWF1QWpxMTA2V3g4bE80Wno5TTVlbG94Vkw0UU00dDk1c2E5OENXWlc2ZHFZazB3TTFRTHNFYTJNclJEZXFxdDlrRUZLN0xzelNqY2xvaWs3YlJDajBzT3BrSUZxSDlkUzJhbmVQaUhIT21zQVNaZyt2UDExa01VeTdoSkwxQTJMQy9LMzFlWWZzWG9JREVzTVovTW5jV3UyZ3cyTnlBMUgzRTFmdUZ4T0VCOXV3MDNxK29sbzdGdDZkYWNmY1Z0cmY2eFdNVVY1c2F5VmxueXphTDh0UFI5QTJmeWtwdncycDNlQnIrcDIwOEIrYmpEOU1CWHJxdGFXNGQ4RDZPRWtwNEFHYmowZ1dITWxWVGRSamxrcnFvTVhaVm1na0Z2OC9QdG9RMDdXREZGQmRzekNUK0ZTa2tXQUpHRUtMcDhxMTVHUHNLQ0dCMXQ1S1R1cDVnb2pNTXptNXIwK2ZVYnk4MHFYUzNoL0lIM0FvSFhOdS8rUUhmbnpaYkM0MlpJSzZtVFJMU0ZjK3dOQ1VSMUUrMEVPQWZ1bnUwVDNVWkZKVXBiZERZMHRDaXl5WkxaeTdTRDFVUlN4aERPZmVhTkJJUlI3QWFxTk5HSE1GTjgrdlNMczBhWjUyUndUVi9zWWJDNnBjWUdxT2RCa20xRE96MS9ndzlUeEZIR0lCWXI2c3grWjIxVjJlRXBMd0hiOHIrT1FROTlHek1NMGFEYUljd1IwR28yb2pwQUZUZ2U1cWI5WWVwRVBGREZGd2I1TFd6QlErUE5aNS9mZURHL2E3cVBsZ29XaFRiQXB0OXJzWmVpL2xNZndtSlN6RXNKazdIcVExQkwvemtwOGE4a0pxbGNtUUpQWUMzOExub01jV0dRWHNOSnhSdlMwUm8yRjNBeFNjR2JuZER3UHMvdmp6c0UyUlhRTmUvQWJINUdxY3FTZENsTW5heTY2OXlEUnlHbXZjTk02RHVEZUxwZGlTQ0tNeUtjOHhIS1JHRXNnVGlZYm5OTkNCNUp0VWpzTWowWWdMSE4zRkw1L3hlTWxhRCs5K3dkNkxidm5uTEpPb01qWGtGYUFJNTlaWDNPR2FlVzlFSUpwZmJDK1Y1bmhCRmhyNExXOUtUaVljRHlPelRzdTJGa1U5WXBYNEphc2tVN1pLblVRVDFMTk9uMlNDNkFZRzRKVStmQmRneWx3WTBDVFB1YXJqUmlUYXFMTnFLQ2xPbnpXV3VmR0k5ODFaS1pmUVVSVHorWTJmbExkWUxoWHBkbm9zTmlqeTZic0xUMHBSSGUrRWFmZmY4NEd1NUFXUT09PC9Nb2R1bHVzPjxFeHBvbmVudD5BUUFCPC9FeHBvbmVudD48L1JTQUtleVZhbHVlPg==\"\nencrypted_data = encrypt(_data, public_xml)\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-java\">import org.w3c.dom.Document;\nimport org.w3c.dom.Element;\nimport org.w3c.dom.NodeList;\nimport org.xml.sax.SAXException;\nimport javax.crypto.Cipher;\nimport javax.xml.parsers.DocumentBuilder;\nimport javax.xml.parsers.DocumentBuilderFactory;\nimport javax.xml.parsers.ParserConfigurationException;\nimport java.io.File;\nimport java.io.FileOutputStream;\nimport java.io.IOException;\nimport java.io.UnsupportedEncodingException;\nimport java.nio.charset.StandardCharsets;\nimport java.security.*;\nimport java.security.spec.InvalidKeySpecException;\nimport java.security.spec.RSAPublicKeySpec;\nimport java.security.spec.X509EncodedKeySpec;\nimport java.util.Base64;\n//import javax.xml.bind.DatatypeConverter;\npublic class EncryptionHelper {\n    private PrivateKey privateKey;\n    private PublicKey publicKey;\n    public  static String getXmlComponent(String xmlstring, String _field) throws IOException, SAXException, ParserConfigurationException {\n        // Create a DocumentBuilder\n        DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n        DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n        // Parse the XML string\n        Document doc = dBuilder.parse(new java.io.ByteArrayInputStream(xmlstring.getBytes(\"UTF-8\")));\n        // Normalize the document\n        doc.getDocumentElement().normalize();\n        NodeList modulusNodeList = doc.getElementsByTagName(_field);\n        String modulusValue = \"\";\n        if (modulusNodeList.getLength() &gt; 0) {\n            Element modulusElement = (Element) modulusNodeList.item(0);\n            // Extract the Modulus value\n            modulusValue = modulusElement.getTextContent();\n            System.out.println(\"Modulus Value: \" + modulusValue);\n        } else {\n            System.out.println(\"Modulus element not found.\");\n        }\n        return modulusValue;\n    }\n    public static byte[] encrypt(String _data, String publicXml) throws Exception {\n        try {\n            var data = _data.getBytes();\n            if (data == null || data.length &lt; 1) {\n                throw new Exception(\"Data sent for encryption is empty\");\n            }\n            // Extract the Modulus and Exponent from the XML\n            // Decode the Base64 string\n            byte[] decodedBytes = Base64.getDecoder().decode(publicXml);\n            // Convert the decoded bytes to a string\n            String decodedString = new String(decodedBytes);\n            var publicxmllkey = decodedString.split(\"!\")[1];\n            System.out.println(publicxmllkey);\n            var modulus = getXmlComponent(publicxmllkey, \"Modulus\");\n            var exponent = getXmlComponent(publicxmllkey, \"Exponent\");\n            String modulusBase64 = modulus;\n            String exponentBase64 = exponent/* extract Exponent from publicXml */;\n            // Convert the Base64-encoded Modulus and Exponent to byte arrays\n            byte[] modulusBytes = Base64.getDecoder().decode(modulusBase64);\n            byte[] exponentBytes =Base64.getDecoder().decode(exponentBase64);\n            // Create RSAPublicKeySpec from Modulus and Exponent\n            RSAPublicKeySpec keySpec = new RSAPublicKeySpec(\n                    new java.math.BigInteger(1, modulusBytes),\n                    new java.math.BigInteger(1, exponentBytes)\n            );\n            // Generate the PublicKey from the RSAPublicKeySpec\n            KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n            PublicKey publicKey = keyFactory.generatePublic(keySpec);\n            // Initialize the Cipher for encryption\n            Cipher cipher = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n            cipher.init(Cipher.ENCRYPT_MODE, publicKey);\n            // Encrypt the data\n            byte[] encryptedBytes = cipher.doFinal(data);\n            return encryptedBytes;\n        } catch (Exception e) {\n            throw e;\n        }\n    }\n    public EncryptionHelper() throws Exception {\n        var rowdata = \"Hello World\";\n        var publicxml = \"ODE5MiE8UlNBS2V5VmFsdWU+PE1vZHVsdXM+cUZ0a3JQN2lTdlZqQkMxTEN0Y0hST01CSnF6OS9HME9EVHhWZHVadjQvVEhidGh0bXlQeURPeG9vd25uV1czKzNIWXNhZ3FKRWZjUUF2RWwwSkRtMkF3Zmtpdm1ja1JJV0dLMXE2bjhoUnNKMHZhZlUreEJsbGFHZHl0V09mV2xjUFBSSEI0NWhsWVZpWWd0ZDdZSVFRVWlKcXdkRTNmRTNFSHJHenJraUxVMktoRHIxRDBTMVB1Q2k5SFpsUGZacDJiRmlwU2dKK1FpN0FweGZ6dGZVVk0xM1g3bUZ1OVUzZE1LQS9rNndhS1RYTTRjdUxocnpwUElxYW1wbEtXTE11aXNxSjc2c2FSSnhscFNEaHF3eTVtc2Z3VTludkVqYjZ2STk2SVZlU1hBYWdHQlZDeEFqMlc0dkZrZEhjSnloRy9vQlgrUEtqUklEM1FINXU1SVRjY2JiTlp1aGRVMVMrRkJFdzFpYW9zemN0RCszV3ovY0U2TmsrRDJsaXpDVWF1QWpxMTA2V3g4bE80Wno5TTVlbG94Vkw0UU00dDk1c2E5OENXWlc2ZHFZazB3TTFRTHNFYTJNclJEZXFxdDlrRUZLN0xzelNqY2xvaWs3YlJDajBzT3BrSUZxSDlkUzJhbmVQaUhIT21zQVNaZyt2UDExa01VeTdoSkwxQTJMQy9LMzFlWWZzWG9JREVzTVovTW5jV3UyZ3cyTnlBMUgzRTFmdUZ4T0VCOXV3MDNxK29sbzdGdDZkYWNmY1Z0cmY2eFdNVVY1c2F5VmxueXphTDh0UFI5QTJmeWtwdncycDNlQnIrcDIwOEIrYmpEOU1CWHJxdGFXNGQ4RDZPRWtwNEFHYmowZ1dITWxWVGRSamxrcnFvTVhaVm1na0Z2OC9QdG9RMDdXREZGQmRzekNUK0ZTa2tXQUpHRUtMcDhxMTVHUHNLQ0dCMXQ1S1R1cDVnb2pNTXptNXIwK2ZVYnk4MHFYUzNoL0lIM0FvSFhOdS8rUUhmbnpaYkM0MlpJSzZtVFJMU0ZjK3dOQ1VSMUUrMEVPQWZ1bnUwVDNVWkZKVXBiZERZMHRDaXl5WkxaeTdTRDFVUlN4aERPZmVhTkJJUlI3QWFxTk5HSE1GTjgrdlNMczBhWjUyUndUVi9zWWJDNnBjWUdxT2RCa20xRE96MS9ndzlUeEZIR0lCWXI2c3grWjIxVjJlRXBMd0hiOHIrT1FROTlHek1NMGFEYUljd1IwR28yb2pwQUZUZ2U1cWI5WWVwRVBGREZGd2I1TFd6QlErUE5aNS9mZURHL2E3cVBsZ29XaFRiQXB0OXJzWmVpL2xNZndtSlN6RXNKazdIcVExQkwvemtwOGE4a0pxbGNtUUpQWUMzOExub01jV0dRWHNOSnhSdlMwUm8yRjNBeFNjR2JuZER3UHMvdmp6c0UyUlhRTmUvQWJINUdxY3FTZENsTW5heTY2OXlEUnlHbXZjTk02RHVEZUxwZGlTQ0tNeUtjOHhIS1JHRXNnVGlZYm5OTkNCNUp0VWpzTWowWWdMSE4zRkw1L3hlTWxhRCs5K3dkNkxidm5uTEpPb01qWGtGYUFJNTlaWDNPR2FlVzlFSUpwZmJDK1Y1bmhCRmhyNExXOUtUaVljRHlPelRzdTJGa1U5WXBYNEphc2tVN1pLblVRVDFMTk9uMlNDNkFZRzRKVStmQmRneWx3WTBDVFB1YXJqUmlUYXFMTnFLQ2xPbnpXV3VmR0k5ODFaS1pmUVVSVHorWTJmbExkWUxoWHBkbm9zTmlqeTZic0xUMHBSSGUrRWFmZmY4NEd1NUFXUT09PC9Nb2R1bHVzPjxFeHBvbmVudD5BUUFCPC9FeHBvbmVudD48L1JTQUtleVZhbHVlPg==\";\n        var result = encrypt(rowdata, publicxml);\n        // Encode the byte array to a Base64 string\n        String base64String = Base64.getEncoder().encodeToString(result);\n        System.out.println(\"Converted successfully\");\n        System.out.println(base64String);\n    }\n    public static void main(String[] args) throws Exception {\n        EncryptionHelper keyPairGenerator = new EncryptionHelper();\n    }\n}\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-php\">require 'vendor/autoload.php';\nuse phpseclib3\\Crypt\\RSA;\nuse phpseclib3\\Math\\BigInteger;\nfunction getXmlComponent($xmlstring, $field)\n{\n    try {\n        // Load XML\n        $xml = new SimpleXMLElement($xmlstring);\n        // Register namespaces if any\n        $namespaces = $xml-&gt;getNamespaces(true);\n        foreach ($namespaces as $prefix =&gt; $namespace) {\n            if ($prefix === '') {\n                $prefix = 'default';\n            }\n            $xml-&gt;registerXPathNamespace($prefix, $namespace);\n        }\n        // Construct the correct XPath query\n        $result = null;\n        if (!empty($namespaces)) {\n            foreach ($namespaces as $prefix =&gt; $namespace) {\n                $prefix = $prefix ?: 'default';\n                $result = $xml-&gt;xpath(\"//$prefix:$field\");\n                if ($result) {\n                    break;\n                }\n            }\n        } else {\n            $result = $xml-&gt;xpath(\"//$field\");\n        }\n        // Check if the element was found\n        if ($result &amp;&amp; count($result) &gt; 0) {\n            return (string)$result[0];\n        } else {\n            echo \"Element $field not found.\\n\";\n            return \"\";\n        }\n    } catch (Exception $e) {\n        echo \"Error: \" . $e-&gt;getMessage() . \"\\n\";\n        return \"\";\n    }\n}\nfunction encryptData($data, $public_xml)\n{\n    try {\n        if (!$data) {\n            throw new Exception(\"Data sent for encryption is empty\");\n        }\n        // Decode the Base64 string\n        $decoded_bytes = base64_decode($public_xml);\n        $decoded_string = mb_convert_encoding($decoded_bytes, 'UTF-8');\n        $public_xml_key = explode('!', $decoded_string)[1];\n        echo $public_xml_key;\n        $modulus = getXmlComponent($public_xml_key, \"Modulus\");\n        $exponent = getXmlComponent($public_xml_key, \"Exponent\");\n        $modulus_bytes = base64_decode($modulus);\n        $exponent_bytes = base64_decode($exponent);\n        // Create an RSA public key from Modulus and Exponent\n        $rsa = RSA::loadFormat('raw', [\n            'n' =&gt; new BigInteger($modulus_bytes, 256),\n            'e' =&gt; new BigInteger($exponent_bytes, 256)\n        ]);\n        echo \"Trying to encrypt data\" . \"\\n\";\n        // Encrypt data\n        $rsa = $rsa-&gt;withPadding(RSA::ENCRYPTION_PKCS1);\n        $encrypted = $rsa-&gt;encrypt($data);\n        // Convert to base 64 string\n        $encrypted_base64 = base64_encode($encrypted);\n        echo \"base 64 value\" . \"\\n\";\n        echo $encrypted_base64 . \"\\n\";\n        return $encrypted_base64;\n    } catch (Exception $e) {\n        echo \"Error: \" . $e-&gt;getMessage() . \"\\n\";\n        return \"No encrypted ata\";\n    }\n}\n// Example usage\n$data = \"{\\r\\n    \\\"customer\\\": {\\r\\n        \\\"firstname\\\": \\\"firstname\\\",\\r\\n        \\\"lastname\\\": \\\"lastname\\\",\\r\\n        \\\"mobile\\\": \\\"+2348158200000\\\",\\r\\n        \\\"country\\\": \\\"NG\\\",\\r\\n        \\\"email\\\": \\\"email@pay.dev\\\"\\r\\n    },\\r\\n    \\\"order\\\": {\\r\\n        \\\"amount\\\": 3,\\r\\n       \n\\\"reference\\\": \\\"223232323121212122121QWW2QWWW\\\",\\r\\n        \\\"description\\\": \\\"Pay\\\",\\r\\n        \\\"currency\\\": \\\"USD\\\"\\r\\n    },\\r\\n    \\\"payment\\\": {\\r\\n        \\\"RedirectUrl\\\": \\\"https://www.hi.com\\\"\\r\\n    }\\r\\n}\";\n$public_xml = \"ODE5MiE8UlNBS2V5VmFsdWU+PE1vZHVsdXM+cUZ0a3JQN2lTdlZqQkMxTEN0Y0hST01CSnF6OS9HME9EVHhWZHVadjQvVEhidGh0bXlQeURPeG9vd25uV1czKzNIWXNhZ3FKRWZjUUF2RWwwSkRtMkF3Zmtpdm1ja1JJV0dLMXE2bjhoUnNKMHZhZlUreEJsbGFHZHl0V09mV2xjUFBSSEI0NWhsWVZpWWd0ZDdZSVFRVWlKcXdkRTNmRTNFSHJHenJraUxVMktoRHIxRDBTMVB1Q2k5SFpsUGZacDJiRmlwU2dKK1FpN0FweGZ6dGZVVk0xM1g3bUZ1OVUzZE1LQS9rNndhS1RYTTRjdUxocnpwUElxYW1wbEtXTE11aXNxSjc2c2FSSnhscFNEaHF3eTVtc2Z3VTludkVqYjZ2STk2SVZlU1hBYWdHQlZDeEFqMlc0dkZrZEhjSnloRy9vQlgrUEtqUklEM1FINXU1SVRjY2JiTlp1aGRVMVMrRkJFdzFpYW9zemN0RCszV3ovY0U2TmsrRDJsaXpDVWF1QWpxMTA2V3g4bE80Wno5TTVlbG94Vkw0UU00dDk1c2E5OENXWlc2ZHFZazB3TTFRTHNFYTJNclJEZXFxdDlrRUZLN0xzelNqY2xvaWs3YlJDajBzT3BrSUZxSDlkUzJhbmVQaUhIT21zQVNaZyt2UDExa01VeTdoSkwxQTJMQy9LMzFlWWZzWG9JREVzTVovTW5jV3UyZ3cyTnlBMUgzRTFmdUZ4T0VCOXV3MDNxK29sbzdGdDZkYWNmY1Z0cmY2eFdNVVY1c2F5VmxueXphTDh0UFI5QTJmeWtwdncycDNlQnIrcDIwOEIrYmpEOU1CWHJxdGFXNGQ4RDZPRWtwNEFHYmowZ1dITWxWVGRSamxrcnFvTVhaVm1na0Z2OC9QdG9RMDdXREZGQmRzekNUK0ZTa2tXQUpHRUtMcDhxMTVHUHNLQ0dCMXQ1S1R1cDVnb2pNTXptNXIwK2ZVYnk4MHFYUzNoL0lIM0FvSFhOdS8rUUhmbnpaYkM0MlpJSzZtVFJMU0ZjK3dOQ1VSMUUrMEVPQWZ1bnUwVDNVWkZKVXBiZERZMHRDaXl5WkxaeTdTRDFVUlN4aERPZmVhTkJJUlI3QWFxTk5HSE1GTjgrdlNMczBhWjUyUndUVi9zWWJDNnBjWUdxT2RCa20xRE96MS9ndzlUeEZIR0lCWXI2c3grWjIxVjJlRXBMd0hiOHIrT1FROTlHek1NMGFEYUljd1IwR28yb2pwQUZUZ2U1cWI5WWVwRVBGREZGd2I1TFd6QlErUE5aNS9mZURHL2E3cVBsZ29XaFRiQXB0OXJzWmVpL2xNZndtSlN6RXNKazdIcVExQkwvemtwOGE4a0pxbGNtUUpQWUMzOExub01jV0dRWHNOSnhSdlMwUm8yRjNBeFNjR2JuZER3UHMvdmp6c0UyUlhRTmUvQWJINUdxY3FTZENsTW5heTY2OXlEUnlHbXZjTk02RHVEZUxwZGlTQ0tNeUtjOHhIS1JHRXNnVGlZYm5OTkNCNUp0VWpzTWowWWdMSE4zRkw1L3hlTWxhRCs5K3dkNkxidm5uTEpPb01qWGtGYUFJNTlaWDNPR2FlVzlFSUpwZmJDK1Y1bmhCRmhyNExXOUtUaVljRHlPelRzdTJGa1U5WXBYNEphc2tVN1pLblVRVDFMTk9uMlNDNkFZRzRKVStmQmRneWx3WTBDVFB1YXJqUmlUYXFMTnFLQ2xPbnpXV3VmR0k5ODFaS1pmUVVSVHorWTJmbExkWUxoWHBkbm9zTmlqeTZic0xUMHBSSGUrRWFmZmY4NEd1NUFXUT09PC9Nb2R1bHVzPjxFeHBvbmVudD5BUUFCPC9FeHBvbmVudD48L1JTQUtleVZhbHVlPg==\";\n$encrypted_data = encryptData($data, $public_xml);\necho \"Encrypted data\" . \"\\n\";\necho $encrypted_data . \"\\n\";\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10904236","collectionId":"77865adb-1366-4a1b-a0d4-f7c789228060","publishedId":"2sAXxMfDTH","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-04T20:20:02.000Z"},"item":[{"name":"Checkout service","item":[{"name":"Create Order","item":[{"name":"Sample Payload to encrypt","event":[{"listen":"prerequest","script":{"id":"428b6157-7145-4782-a8c0-094644713bd5","exec":["    pm.collectionVariables.set('reference', Math.floor(Math.random() * 1000000000));"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"8549e6a7-6b5d-475a-9a8b-9367dec224d1","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"fa8e02ee-4c9a-4605-84a3-319ccac8baea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"customer\": {\r\n        \"firstname\": \"test\",\r\n        \"lastname\": \"pay\",\r\n        \"mobile\": \"+2348158200000\",\r\n        \"country\": \"NG\",\r\n        \"email\": \"email@test.dev\"\r\n    },\r\n    \"order\": {\r\n        \"amount\": 10,\r\n        \"reference\": \"{{yourreference}}\",\r\n        \"description\": \"Pay\",\r\n        \"currency\": \"USD\"\r\n    },\r\n    \"payment\": {\r\n        \"RedirectUrl\": \"https://www.hi.com\"\r\n    },\r\n    \"paymentMeta\": {\r\n        \"ipAddress\": \"127.0.0.0\",\r\n        \"UserAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"bf00e6b7-38de-4d01-b8b3-18b24ed4500e","name":"Sample Payload to encrypt","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"customer\": {\r\n        \"firstname\": \"test\",\r\n        \"lastname\": \"pay\",\r\n        \"mobile\": \"+2348158200000\",\r\n        \"country\": \"NG\",\r\n        \"email\": \"email@test.dev\"\r\n    },\r\n    \"order\": {\r\n        \"amount\": 10,\r\n        \"reference\": \"{{yourreference}}\",\r\n        \"description\": \"Pay\",\r\n        \"currency\": \"USD\"\r\n    },\r\n    \"payment\": {\r\n        \"RedirectUrl\": \"https://www.hi.com\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 04 Oct 2024 19:52:49 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"mqLJ+iUTxAG/y6O7Xe8ZyxT8VFVEDQvc99UEp3mk8ntPnphZ7/zaGwovPypaG3mlGTyoIy7Ac6Bq6osG7OVusXUbabjn1SJMOvJTYg7KuFolhwnwQKBW7Daz+Vte8ERukqq+okDPBB37Yl06emKCd98lwHW/no69Ezg3m95t1rNFltfK5Nm75X5oZslX6ezksItxPlCxVQdK+f2pQOpNYrgPU5jt0QT1MjxOBU20fDIcXYCyv2ZO0re1QjyPxjsLJgh4pOqoGKrWs5/kRdiVpl1Tz+ntJ10h2eN6c0VquyS6hcE1tXw4hsTaV6ITyv00JisPnEGKmsfeUv03tOq1pSXpDrY+jGqAefeZMc+3NdE3De1RtOe7EqM8nSYYA1F4C/0CCf+6jg2gjzEcnQKH6jvTcz4R9taxKl0Qa0D8U8kbdA2LbhZynrNah1Za09Yqcv9kqMsKgK3RmHQgMp98jKQ8Hs9UDr43beXmoJlbY7sSx1Y+IvBkRProrA2eBSF7erB+YZD9lAO385viG5InAI9DU1QKiQz840Le8nDElCTjRFsBQIY3miG0S4CgbzgHGB9M8EtqsBT67JqFs88DG6hDIG6zbmmGJ2lUz9U7lPRnML64T2+lSNL5hd0dY3akjtIkXrG3NRMHh+vUcoBbDCjeRLeIo8djM9oKmxTErrU=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"fa8e02ee-4c9a-4605-84a3-319ccac8baea"},{"name":"Create Order Api Request","event":[{"listen":"prerequest","script":{"id":"8af1c30d-03d3-4bd3-a729-d10d0dd0ba31","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"25e22335-2c44-41dd-894e-590f619f8d75","exec":["if (pm.response.code == 200) {","    pm.collectionVariables.set('orderreference', pm.response.json().data.order.reference);","}"],"type":"text/javascript","packages":{}}}],"id":"1f0d7155-8885-443c-905e-b0614b9e7f9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/create","urlObject":{"path":["charge","order","create"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[{"disabled":true,"key":"api-key","value":""}],"variable":[]}},"response":[{"id":"c622d17a-15fd-4bfc-8085-6460fe009623","name":"Create Order Api Request","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://checkout-api-service.payment.blaaiz.com/charge/order/create","host":["https://checkout-api-service.payment.blaaiz.com"],"path":["charge","order","create"],"query":[{"key":"api-key","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"936"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 04 Oct 2024 19:53:03 GMT"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"order\": {\n            \"reference\": \"856772289\",\n            \"processorReference\": \"IDPAY-44881C80828A11EFA2D8022E6061EEF7\",\n            \"orderPaymentReference\": null,\n            \"amount\": 10,\n            \"fee\": 0,\n            \"feeRate\": null,\n            \"statusId\": 1,\n            \"status\": \"Initiated\",\n            \"currency\": \"USD\",\n            \"narration\": \"Pay\"\n        },\n        \"subsidiary\": {\n            \"id\": 1,\n            \"name\": \"Merchant Blaaiz\",\n            \"country\": \"NG\",\n            \"supportEmail\": \"merchant@blaaiz.com\",\n            \"customization\": []\n        },\n        \"customer\": {\n            \"email\": \"email@test.dev\",\n            \"firstName\": \"test\",\n            \"lastName\": \"pay\",\n            \"mobile\": \"+2348158200000\",\n            \"country\": \"NG\"\n        },\n        \"payment\": {\n            \"code\": null,\n            \"source\": null,\n            \"selectedOption\": null,\n            \"accountNumber\": null,\n            \"bankProviderName\": null\n        },\n        \"otherPaymentOptions\": [\n            {\n                \"code\": \"C\",\n                \"name\": \"Card Payment\",\n                \"currency\": \"USD\"\n            }\n        ],\n        \"savedCards\": [],\n        \"subsidiaryOrderSummary\": {\n            \"orderName\": \"Merchant Blaaiz Order 856772289\",\n            \"totalAmount\": 10,\n            \"reference\": \"856772289\",\n            \"currency\": \"USD\",\n            \"orderItems\": [\n                {\n                    \"name\": \"Summary\",\n                    \"amount\": 10\n                }\n            ]\n        }\n    },\n    \"status\": \"success\",\n    \"statusCode\": \"01\",\n    \"message\": \"Created order successfully\"\n}"}],"_postman_id":"1f0d7155-8885-443c-905e-b0614b9e7f9e"}],"id":"5eb2537e-11d7-4eb2-9e10-71f5e9125a39","_postman_id":"5eb2537e-11d7-4eb2-9e10-71f5e9125a39","description":""},{"name":"Pay Order","item":[{"name":"Sample Pay With Card","item":[{"name":"3DS Sample Payload to encrypt","event":[{"listen":"test","script":{"id":"c02a386c-eba5-4736-8b8f-3a2a4f1b8733","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"3326752d-63e1-4a4e-8721-13b2eeeed8e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"card\": {\r\n        \"cardnumber\": \"534671200006135\",\r\n        \"expirymonth\": \"03\",\r\n        \"expiryyear\": \"28\",\r\n        \"cvv\": \"573\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"4b9befb2-fe78-43e1-af1f-0fd7d78c6cde","name":"3DS Sample Payload to encrypt","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"card\": {\r\n        \"cardnumber\": \"534671200006135\",\r\n        \"expirymonth\": \"03\",\r\n        \"expiryyear\": \"28\",\r\n        \"cvv\": \"573\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Date","value":"Fri, 04 Oct 2024 20:00:40 GMT"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"5WJ7/gQ6cZgAreymOdC83IT0tfA7Pb2yF339kYGy8kfDdA1PFD5YyB4LDnGxa0GZyB7XPIlRpkKFzxIA1Y9ShVBr6s1AL0KyuG8cdlhzMM4QBdFjPdEG+vnmRRk3cVlhOcw4Z944dZ1KbR/jZ2V9DN/RTULMLOR4O/opaQa+Cqi3IL/V+tcMrITDfGJbsz/yiazdUIF3XSaBqc0kvcnNrpPWsw7dpcAsCkgLtl5Q0MfJhald3nLp7bq7x6HsqKwZI11iOe8zK4NC5ZznO324p4bt5k4fBfLm6lFoCwgbbTU2xWAwo/utkgp/PqbSw5pO5WvxEW+gCX3LdgbmFxiiUWCylE1Q3zwEcwMf8bgJz4cb0UHXujJobiaYqhemIRWKxfRDU/LOvcqjKbWF1f38wwDLgx/zScskkpu7GdxGPoz83ScekvW8I+E0IDShAPX9CYzFVTF+ydSeM529t5kyj0C+l8X9saCG62uU3PUEbhkfhslodSocbG14nm1c8wRK88+/ALWi9QTF9ZgwbGFJZ+qSvycvqWcLSrjr/QFdv0yWNYT+IIfXwiM2GH6bn0Xqy5hw/cc9K2r/WTvy4CYTaEjDfe/7z3YYFfdSaCSpZCfWLZ3goVjozWhoOtPdK52T/LhfbOiHds+4CGo6doKh088pjFC+qw1eAINr9ZSRzkQ=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"3326752d-63e1-4a4e-8721-13b2eeeed8e8"},{"name":"3DS to save card for customer","event":[{"listen":"test","script":{"id":"c02a386c-eba5-4736-8b8f-3a2a4f1b8733","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"da46cf28-4ed5-46c7-983c-16b443324593","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"country\": \"NG\",\r\n    \"card\": {\r\n        \"cardnumber\": \"534671300006135\",\r\n        \"expirymonth\": \"06\",\r\n        \"expiryyear\": \"26\",\r\n        \"cvv\": \"049\",\r\n        \"saveCard\": true\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"68110ae6-4bb3-404f-9f05-c6ff235771fb","name":"card 3ds-payload","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"country\": \"NG\",\r\n    \"card\": {\r\n        \"cardnumber\": \"5120050000784608\",\r\n        \"expirymonth\": \"01\",\r\n        \"expiryyear\": \"39\",\r\n        \"cvv\": \"193\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/payment/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 31 Mar 2024 14:07:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"L5j3aO/R7dFkhC79naBxPbMehPXJ5H8Oehb5m2orJElB8ARCwsofnVjdROvVvT5cTIMw+ZlAcj9dHTJHp3x62A4VHArrjenFbs8IwMZmhmhr2cZGUp26U6J0glNxJdKO+/L/U6Q6W9c1ja3cRGeP3ozzcv59WnaeWUQ5q6kOHbWSCml1BnmQrIV/tfA9d1ry1M8g01Nm6F1RHK/1r3lyTebHiJDJ6N/oAGWfYnss/l/thy+K56krHP4Pww7dUUymeQvE86p1pLpm3bp+wzngvbiRyZQpaHz2c0r926lJCP1xCJiv5KXnwHmFo7tJCqTg3FtjElEatvzmI97VXBX8bMTisXVfMvnqJtyOGj5qKDMCYb3hrqXB77FLl+hNMkkI5pEAN45re+2zESJoChiJDgqXgnxTwWyXiTnXVTwFyKi2FzvNfuArz0nifwVEb+0mIXSU7wsucdoJ2rdr0McDDYSPRUNHqspvmb7Sy+F1CgRIOCS9Df730CwCzGZlBFvdkBX1+r4wEKpYT30d67y0jukygmtsnt6gcfnMttkcsFCRmp348pGx9I3g/3xkNL8zAnDpeH+muzLritKrYvmGXX4MrKwl3cPwP11P42t2G1wNBflx1HjYX7u3YYLj4joAVleo43Say3l5Q7nD/LVqW19teHHOOjUZA9KBX3eWuEk=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"da46cf28-4ed5-46c7-983c-16b443324593"},{"name":"2DS - NOAUTH Sample Payload to encrypt","event":[{"listen":"test","script":{"id":"c02a386c-eba5-4736-8b8f-3a2a4f1b8733","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"89542c7d-cb2e-400c-b7a1-c518007b2102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"country\": \"NG\",\r\n    \"card\": {\r\n        \"cardnumber\": \"534671210006135\",\r\n        \"expirymonth\": \"10\",\r\n        \"expiryyear\": \"24\",\r\n        \"cvv\": \"123\",\r\n        \"authOption\": \"NOAUTH\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"5ab4946c-68a2-492c-94da-cf3df12993f1","name":"card 3ds-payload","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"country\": \"NG\",\r\n    \"card\": {\r\n        \"cardnumber\": \"5120050000784608\",\r\n        \"expirymonth\": \"01\",\r\n        \"expiryyear\": \"39\",\r\n        \"cvv\": \"193\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/payment/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 31 Mar 2024 14:07:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"L5j3aO/R7dFkhC79naBxPbMehPXJ5H8Oehb5m2orJElB8ARCwsofnVjdROvVvT5cTIMw+ZlAcj9dHTJHp3x62A4VHArrjenFbs8IwMZmhmhr2cZGUp26U6J0glNxJdKO+/L/U6Q6W9c1ja3cRGeP3ozzcv59WnaeWUQ5q6kOHbWSCml1BnmQrIV/tfA9d1ry1M8g01Nm6F1RHK/1r3lyTebHiJDJ6N/oAGWfYnss/l/thy+K56krHP4Pww7dUUymeQvE86p1pLpm3bp+wzngvbiRyZQpaHz2c0r926lJCP1xCJiv5KXnwHmFo7tJCqTg3FtjElEatvzmI97VXBX8bMTisXVfMvnqJtyOGj5qKDMCYb3hrqXB77FLl+hNMkkI5pEAN45re+2zESJoChiJDgqXgnxTwWyXiTnXVTwFyKi2FzvNfuArz0nifwVEb+0mIXSU7wsucdoJ2rdr0McDDYSPRUNHqspvmb7Sy+F1CgRIOCS9Df730CwCzGZlBFvdkBX1+r4wEKpYT30d67y0jukygmtsnt6gcfnMttkcsFCRmp348pGx9I3g/3xkNL8zAnDpeH+muzLritKrYvmGXX4MrKwl3cPwP11P42t2G1wNBflx1HjYX7u3YYLj4joAVleo43Say3l5Q7nD/LVqW19teHHOOjUZA9KBX3eWuEk=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"89542c7d-cb2e-400c-b7a1-c518007b2102"},{"name":"2D Charge With Saved Card","event":[{"listen":"test","script":{"id":"c02a386c-eba5-4736-8b8f-3a2a4f1b8733","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"16af4982-70a6-4bf7-b0cc-78e46e95b8f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"country\": \"NG\",\r\n    \"card\": {\r\n        \"savedCardId\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"462b7331-87f6-4ef1-b06d-eefd850b227e","name":"card 3ds-payload","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"C\",\r\n    \"country\": \"NG\",\r\n    \"card\": {\r\n        \"cardnumber\": \"5120050000784608\",\r\n        \"expirymonth\": \"01\",\r\n        \"expiryyear\": \"39\",\r\n        \"cvv\": \"193\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/payment/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 31 Mar 2024 14:07:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"L5j3aO/R7dFkhC79naBxPbMehPXJ5H8Oehb5m2orJElB8ARCwsofnVjdROvVvT5cTIMw+ZlAcj9dHTJHp3x62A4VHArrjenFbs8IwMZmhmhr2cZGUp26U6J0glNxJdKO+/L/U6Q6W9c1ja3cRGeP3ozzcv59WnaeWUQ5q6kOHbWSCml1BnmQrIV/tfA9d1ry1M8g01Nm6F1RHK/1r3lyTebHiJDJ6N/oAGWfYnss/l/thy+K56krHP4Pww7dUUymeQvE86p1pLpm3bp+wzngvbiRyZQpaHz2c0r926lJCP1xCJiv5KXnwHmFo7tJCqTg3FtjElEatvzmI97VXBX8bMTisXVfMvnqJtyOGj5qKDMCYb3hrqXB77FLl+hNMkkI5pEAN45re+2zESJoChiJDgqXgnxTwWyXiTnXVTwFyKi2FzvNfuArz0nifwVEb+0mIXSU7wsucdoJ2rdr0McDDYSPRUNHqspvmb7Sy+F1CgRIOCS9Df730CwCzGZlBFvdkBX1+r4wEKpYT30d67y0jukygmtsnt6gcfnMttkcsFCRmp348pGx9I3g/3xkNL8zAnDpeH+muzLritKrYvmGXX4MrKwl3cPwP11P42t2G1wNBflx1HjYX7u3YYLj4joAVleo43Say3l5Q7nD/LVqW19teHHOOjUZA9KBX3eWuEk=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"16af4982-70a6-4bf7-b0cc-78e46e95b8f4"}],"id":"666b0e66-1ffa-44a1-b240-6b3642d62479","_postman_id":"666b0e66-1ffa-44a1-b240-6b3642d62479","description":""},{"name":"Sample Pay With Bank Transfer","item":[{"name":"pay with bank transfer","event":[{"listen":"test","script":{"id":"c02a386c-eba5-4736-8b8f-3a2a4f1b8733","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"2f76c841-4587-43de-8a1b-52f29c4c555b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"paymentoption\": \"bank-transfer\",\r\n    \"country\": \"NG\",\r\n    \"BankTransfer\": {\r\n        \"bankcode\": \"00017\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"67e14eee-62d6-4a8d-be33-fda68f70ca82","name":"Data Encrypt","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"customer\": {\r\n        \"First_Name\": \"Aje\",\r\n        \"Last_Name\": \"Aje\",\r\n        \"Mobile_Number\": \"Jae\",\r\n        \"Country_Id\": 1,\r\n        \"Email_Address\": \"johndoe@gmail.com\"\r\n    },\r\n    \"Subsidiary\": {\r\n        \"Send_Customiza_tion\": true\r\n    },\r\n    \"Payment\": {\r\n        \"Payment_Option\": 1\r\n    },\r\n    \"Order\": {\r\n        \"Amount\": 5000,\r\n        \"Order_Reference\": \"ORD12345678\",\r\n        \"Description_Of_Order\": \"Test Payment\",\r\n        \"Currency_Id\": 1\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"{{uri}}/checkout/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 10 May 2021 00:33:14 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"704"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"nginx/1.18.0"}],"cookie":[],"responseTime":null,"body":"{\n    \"EncryptedData\": \"BsBpN1YiG5Ey5S3pZZfu5s5k1jU4yijm9+S/oBY35ian8WJp1ymMIj1rZxDIfTYe2W9kNjiuXJQPBpkmzvwuhouPlO12NVLHaf2FiE7s+6RcJnUb+yWc+qrdxeKz9UivyTiW1FO8XwTRobwzC1vZ9DqeNXzJ8pNefJjpP707LCWu9bBdrtrN9D71R9wW8oYQDwt0YW27EJeD7Egu+vleoc6BeOb1dU2E//vJOcZ8GddqX1g6HT3ewFvgLzRJgw/2G50YL4J4S67AQuZmGKzMjwgsiSAsFyFVoW+bzd/CWqMKLm3jrk7PtcpvEKfDtVCsMx3kehll29yCrtmJs8yedrQPORUnm/wHhS3d9RYYgN0CqOcgZCClqvbBGUbylpphMf337euC+5s/iIrRgjdoTYpKWTesc5FJCL1XBQcQL4UkAHRtwyvqigE32+by1vqab/gYRNlro6QkYbc3tfVw65/kU92HKOd68/D9SMS7d+PPsbHeqPlWe3Td2vH2UwMgUoDd27AAjTajqrFlIxLLCbTe463UXNTKHjXNM27ueymzUGPfsBxge/4alK+yDG0Oc4m0z4hIFNPrlet9jack+kHf9YR3YU6V3Cy/m3ZuEjj8nyij2AfyWYBtGnps6lm7QUX5C8B51xk+ybFM/4pzuVTh48LT1gojNMOjM5lDULA=\"\n}"},{"id":"ff3c0043-c9bb-448e-a06c-f39242089c2d","name":"Pay with card payload","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\":\"ORD12DC89289033323387\",\r\n    \"payment_option\":\"C\",\r\n    \"card\":{\r\n        \"cvv\":\"214\",\r\n        \"card_number\":\"4456530000000007\",\r\n        \"expiry_month\":\"12\",\r\n        \"expiry_year\":\"2025\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 13 Jun 2021 07:22:00 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Server","value":"Kestrel"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"adMeady/dFZjx2Rrty9Mn3yAJhD1eXNtTn3PzYD9H05Rx+oVohkEaovvAKGARvOmIrsLZ6Oi9KnYx+9hmyG/YEn1W5v833QyCUN34NaRjEz8YZAccEvk5n6ZJziwdAOzN3yo4gWUliN37alO2afn2QDZ8KfhFPh7+oXRBnYae4l9hTX6pWJHb4oahp36lfoK04XCRDhgFCgerqrCIkZQ/5FWbecpfsf7dSDTTqJLWqk+8AXghwq0sku20Izc15ShU0KMKiYBPIhSsFMa6j5g5STFtVRgrPxDnyrdTue6ANc1o1iL04bpB3nFz43scwvPEsdqnux94wuyDEldbCMdL542h+ZyLTpUOKu32IMIDGRBepSTaWNEz9q7A+ez0XXZNlK+JYHJZBitiPzaQla/mLvAC7fKrl0XvBVrL9bLz+AbOfYKrDY04LC5ADBacJ3FiRCTNLmiswRauUDCdo7DBkkEeL85eeg8E32i+xxnqUpkSGsxO69g7jNVKvsoHSCjO2ZYo+QIKSMuMU+5q46ipYXvHmjKJgPbvuG6R1SoFRoY/ATQEEe0WgPiO1tRVkLm/23wKlBu/uEKNeODBxtkG2U9vdzVE0oYmcXVWXi4WoCPpzZ9xNfaXqn26VfHzPaVwPSw9D4Y5s/7tA6H+FmR7lbqzcjdOlkCH/5kFSTnCwc=\"\n}"},{"id":"6bed5826-791c-4e3b-bc8d-84cb4b24b4f3","name":"Card Payment Response","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{baseurl}}/checkout/order/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 09 May 2022 04:22:14 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"687"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Microsoft-IIS/10.0"},{"key":"X-Powered-By","value":"ASP.NET"},{"key":"X-Powered-By","value":"ASP.NET"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"card\": null,\n        \"payment_detail\": {\n            \"redirect_url\": \"http://payinvert-collection-service-dev.us-east-2.elasticbeanstalk.com/web/authorize/card/CP11931069-D9E9-4F56-BEB1-9815AF4E8A1D/initiate\",\n            \"payment_reference\": \"CP11931069-D9E9-4F56-BEB1-9815AF4E8A1D\"\n        },\n        \"bank_transfer_details\": null,\n        \"order_payment\": {\n            \"order_id\": 1218,\n            \"order_payment_reference\": \"PA-REF-EED87B40-658D-417A-95AE-D53DE49CBA6C\",\n            \"currency\": \"NGN\",\n            \"status_id\": 1,\n            \"order_payment_response_code\": \"01\",\n            \"order_payment_response_message\": \"Initiated\",\n            \"order_payment_instrument\": null,\n            \"remarks\": \"Order payment initiated\",\n            \"total_amount\": 112,\n            \"fee\": 12\n        }\n    },\n    \"status\": \"success\",\n    \"status_code\": \"00\",\n    \"message\": \"Card order created successfully\"\n}"}],"_postman_id":"2f76c841-4587-43de-8a1b-52f29c4c555b"}],"id":"eb2add9c-cef6-4bb7-a972-7634b3b57fa4","_postman_id":"eb2add9c-cef6-4bb7-a972-7634b3b57fa4","description":""},{"name":"Pay Order Api Request","id":"bf1d806c-0276-4134-b642-a8126cfd6a0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/pay","urlObject":{"path":["charge","order","pay"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"0614e386-7a1e-4f1c-85f1-0cab233a6d15","name":"Pay Order Api Request","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/pay"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"652"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 04 Oct 2024 20:02:12 GMT"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"paymentDetail\": {\n            \"redirectUrl\": \"https://core-api-service.payment.blaaiz.com/web/card/authorize/CP6A39208B-F834-4A7A-93CA-2101D870D049/initiate\",\n            \"recipientAccount\": null,\n            \"paymentReference\": \"CP6A39208B-F834-4A7A-93CA-2101D870D049\"\n        },\n        \"bankTransferDetails\": null,\n        \"orderPayment\": {\n            \"orderId\": 2,\n            \"orderPaymentReference\": \"BLZPGW-PAYREF-878E58BF2D764D1EB7ADC0878944FD46\",\n            \"currency\": \"USD\",\n            \"statusId\": 2,\n            \"orderPaymentResponseCode\": \"02\",\n            \"orderPaymentResponseMessage\": \"pending-authenticaion\",\n            \"orderPaymentInstrument\": null,\n            \"remarks\": \"Order payment initiated\",\n            \"totalAmount\": 10.6,\n            \"fee\": 0.6\n        }\n    },\n    \"status\": \"success\",\n    \"statusCode\": \"02\",\n    \"message\": \"pending-authenticaion\"\n}"}],"_postman_id":"bf1d806c-0276-4134-b642-a8126cfd6a0c"}],"id":"bf2c0d25-a9e3-4062-a06b-35ab04a6a0ed","description":"<p>Pay Order</p>\n<p>After completing the pay order request.</p>\n<p>It's important to keep pulling the order status/verify endpoint to know when the status of the order has changed and customer can be notified properly of successful payment. If the status of the order didn't change after about 5 minutes then the status of the order can be on pending and customer would be notified once the transaction has been completed</p>\n","_postman_id":"bf2c0d25-a9e3-4062-a06b-35ab04a6a0ed"},{"name":"Get Order Status","item":[{"name":"Sample Payload to encrypt","event":[{"listen":"test","script":{"id":"87062bdc-dd20-4bbd-b1e6-caadba10fa66","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"ef342d40-c84e-49aa-8a1e-6bf6c53d669e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"2037b9aa-ac1c-40aa-94f1-4d8c86962b6c","name":"Encrypt Order Status payload","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/payment/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 31 Mar 2024 14:09:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"ASK7UxU45861CgMkQGlcUbQgLcWBpuw4sUEnd4+xWfD5VnEK6rT07cBb32VLcHK910Hpf3K+RD5n4JSwZC6Eu0PvBLAIPjH8FCkGATyo9+C2IS8OcNGLB4cHYNIfdUAUUmDFXqXMW5uz7gmJdfH47TyTmIbEh7ErJyGnM/vDdIUHJD0eh/m/xr1xdCXIUITQyIQ9ABu6MH4W8vjFg3MaW2iJC6wJVoKejd5HomJtUiGBOrlri1tUx0xuQs3rS0/Z2qxEed0j6aZHy1wfifHY6p4WOok7umx4FTTU1In3xS8Fwh2GB4YZizFVAtrghioL2IiXNauTgV+hKk9X56Ti3A7+VOm7ytPduysitaDWL6ZxNEEyepy83amFOGBIYySUGNrltCkUx2sSezH8Zdwv9IqlFoplo5zViSqyAjUB8BP86H0YF+Toc9s9c/XjVK+w811ypVVcVlKJL6I86usKwvDgZqR8s2ExUAJBvNZFSJ+RZE9Y3JBzUm2iKPTffGO90rVX30GsGZmTVwsVw/FPPP9iUOKxFXWplXmS/5mL5R0XTh3DL3gte8FyLjMkf9BPcCiCJ6L5910Iolb2PDC/jVBqoMVRRuMO30Qgy1UuFFQ6XmHEyzXh7WUPd12l00vi3s6AOp7+J6ZMzWp42AD75K7iQ9T5GkTj0tBBmpVGrMI=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"ef342d40-c84e-49aa-8a1e-6bf6c53d669e"},{"name":"Order status Api Request","id":"eea2802d-b89e-472c-8c57-daf65c997fc5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/status","urlObject":{"path":["charge","order","status"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"753b8971-06dc-4849-8150-fdca75ed061f","name":"Order status Api Request","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/status"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Length","value":"1441"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Fri, 04 Oct 2024 20:03:45 GMT"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"Successful\",\n    \"statusCode\": \"00\",\n    \"message\": \"Transaction was completed successfully\",\n    \"data\": {\n        \"isFinalStatus\": true,\n        \"requeryNeeded\": false,\n        \"requeryType\": null,\n        \"orderSummary\": {\n            \"id\": 2,\n            \"paymentReference\": \"IDPAY-44881C80828A11EFA2D8022E6061EEF7\",\n            \"orderReference\": \"856772289\",\n            \"totalChargedAmount\": 10.6,\n            \"fee\": 0.6,\n            \"statusId\": 5,\n            \"status\": \"Successful\",\n            \"paymentType\": \"C\",\n            \"currencyId\": 6,\n            \"paymentResponseCode\": \"00\",\n            \"paymentResponseMessage\": \"Transaction was completed successfully\",\n            \"providerResponseDate\": null,\n            \"datePaymentConfirmed\": null,\n            \"dateCreated\": \"2024-10-04T19:53:03\",\n            \"narration\": \"Pay\",\n            \"remarks\": \"Order initiated and created successfully\"\n        },\n        \"orderPayments\": [\n            {\n                \"orderId\": 2,\n                \"orderPaymentReference\": \"BLZPGW-PAYREF-878E58BF2D764D1EB7ADC0878944FD46\",\n                \"paymentOptionId\": 2,\n                \"statusId\": 5,\n                \"orderPaymentResponseCode\": \"00\",\n                \"orderPaymentResponseMessage\": \"Transaction was completed successfully\",\n                \"orderPaymentInstrument\": null,\n                \"remarks\": \"Order payment initiated\",\n                \"providerReference\": \"CP6A39208B-F834-4A7A-93CA-2101D870D049\",\n                \"providerResponseCode\": \"02\",\n                \"paymentUrl\": \"https://core-api-service.payment.blaaiz.com/web/card/authorize/CP6A39208B-F834-4A7A-93CA-2101D870D049/initiate\",\n                \"externalReference\": \"40878740125146805\",\n                \"authOption\": null,\n                \"saveCard\": null,\n                \"processorProviderBank\": \"FCMB\",\n                \"order\": null,\n                \"id\": 2,\n                \"dateCreated\": \"2024-10-04T20:02:07.144019\",\n                \"dateUpdated\": \"2024-10-04T20:02:25.548306\",\n                \"dateDeleted\": null,\n                \"createdBy\": -1,\n                \"updatedBy\": -1,\n                \"deletedBy\": null\n            }\n        ]\n    }\n}"}],"_postman_id":"eea2802d-b89e-472c-8c57-daf65c997fc5"}],"id":"dd804ab0-f305-4eed-800d-9c76cb4f3f1e","_postman_id":"dd804ab0-f305-4eed-800d-9c76cb4f3f1e","description":""},{"name":"Save Card After Charge","item":[{"name":"Sample Payload to encrypt","event":[{"listen":"test","script":{"id":"87062bdc-dd20-4bbd-b1e6-caadba10fa66","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"fac871fd-b71e-410f-8ff3-8d738b70ea9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"8bd50065-b604-4012-8f32-c2cb668768cb","name":"Encrypt Order Status payload","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/payment/data/encrypt"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 31 Mar 2024 14:09:29 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Server","value":"Kestrel"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": \"ASK7UxU45861CgMkQGlcUbQgLcWBpuw4sUEnd4+xWfD5VnEK6rT07cBb32VLcHK910Hpf3K+RD5n4JSwZC6Eu0PvBLAIPjH8FCkGATyo9+C2IS8OcNGLB4cHYNIfdUAUUmDFXqXMW5uz7gmJdfH47TyTmIbEh7ErJyGnM/vDdIUHJD0eh/m/xr1xdCXIUITQyIQ9ABu6MH4W8vjFg3MaW2iJC6wJVoKejd5HomJtUiGBOrlri1tUx0xuQs3rS0/Z2qxEed0j6aZHy1wfifHY6p4WOok7umx4FTTU1In3xS8Fwh2GB4YZizFVAtrghioL2IiXNauTgV+hKk9X56Ti3A7+VOm7ytPduysitaDWL6ZxNEEyepy83amFOGBIYySUGNrltCkUx2sSezH8Zdwv9IqlFoplo5zViSqyAjUB8BP86H0YF+Toc9s9c/XjVK+w811ypVVcVlKJL6I86usKwvDgZqR8s2ExUAJBvNZFSJ+RZE9Y3JBzUm2iKPTffGO90rVX30GsGZmTVwsVw/FPPP9iUOKxFXWplXmS/5mL5R0XTh3DL3gte8FyLjMkf9BPcCiCJ6L5910Iolb2PDC/jVBqoMVRRuMO30Qgy1UuFFQ6XmHEyzXh7WUPd12l00vi3s6AOp7+J6ZMzWp42AD75K7iQ9T5GkTj0tBBmpVGrMI=\",\n    \"message\": \"Operation successful\"\n}"}],"_postman_id":"fac871fd-b71e-410f-8ff3-8d738b70ea9c"},{"name":"Save Card Api Request","id":"dac6dae6-2a67-4e77-bc44-a438107375f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/save-card","urlObject":{"path":["charge","order","save-card"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dac6dae6-2a67-4e77-bc44-a438107375f6"}],"id":"90449c08-4888-4715-8e19-65b7b6228b81","_postman_id":"90449c08-4888-4715-8e19-65b7b6228b81","description":""},{"name":"Get Order Fee","item":[{"name":"Sample Encrypt Order fee","event":[{"listen":"test","script":{"id":"8691c2d5-28be-4694-b20d-3e3859c481b5","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"1f03c313-3c31-4f23-b433-7673ecd24e47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 100,\r\n    \"paymentoption\": \"C\",\r\n    \"currency\": \"USD\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f03c313-3c31-4f23-b433-7673ecd24e47"},{"name":"Get fee Api Request","id":"e3c4b591-57de-4b28-a136-18b87f1bb2df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"data\": \"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/fee","urlObject":{"path":["charge","order","fee"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3c4b591-57de-4b28-a136-18b87f1bb2df"}],"id":"7ae90c2b-b42e-449f-b4d0-9dd076e3430f","_postman_id":"7ae90c2b-b42e-449f-b4d0-9dd076e3430f","description":""},{"name":"Track event","item":[{"name":"Sample Encrypt Payload","event":[{"listen":"test","script":{"id":"837e086f-69c3-47be-8fa2-ad432751c8a3","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"8321ee68-f10c-4af8-ba40-eb3a7936a1e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"eventname\": \"CARD-ENTERED\",\r\n    \"orderreference\": {{yourreference}},\r\n    \"meta\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/data/encrypt","urlObject":{"path":["charge","data","encrypt"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8321ee68-f10c-4af8-ba40-eb3a7936a1e2"},{"name":"Track event Api request","id":"11042d12-5fd2-443a-9f65-d4f2af9bf0bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Data\":\"{{encrypteddata}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/event/track","urlObject":{"path":["charge","order","event","track"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"11042d12-5fd2-443a-9f65-d4f2af9bf0bd"}],"id":"0765dd66-427c-45a1-b5e9-cd37cf82bc71","_postman_id":"0765dd66-427c-45a1-b5e9-cd37cf82bc71","description":""},{"name":"Banks","item":[{"name":"Get All banks","id":"1e6414cc-bf40-4469-81a0-7f4f8625d08e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/banks","urlObject":{"path":["charge","banks"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[{"disabled":true,"key":"paymentmethod","value":"ussd"}],"variable":[]}},"response":[],"_postman_id":"1e6414cc-bf40-4469-81a0-7f4f8625d08e"},{"name":"Get Banks for USSD","id":"4b399570-0df8-44c3-bd67-1b68a9ac9316","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/banks?paymentmethod=ussd","urlObject":{"path":["charge","banks"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[{"key":"paymentmethod","value":"ussd"}],"variable":[]}},"response":[],"_postman_id":"4b399570-0df8-44c3-bd67-1b68a9ac9316"},{"name":"Get Banks for Bank transfer","id":"b7f6831c-e37f-43e0-9b84-dbed745ee89f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/banks?paymentmethod=ussd","urlObject":{"path":["charge","banks"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[{"key":"paymentmethod","value":"ussd"}],"variable":[]}},"response":[],"_postman_id":"b7f6831c-e37f-43e0-9b84-dbed745ee89f"}],"id":"8be4fb50-ab78-44d1-994c-d2fc35b2cab3","_postman_id":"8be4fb50-ab78-44d1-994c-d2fc35b2cab3","description":""},{"name":"Payment links","item":[{"name":"Fetch Payment link","event":[{"listen":"prerequest","script":{"id":"c8bac655-4ba0-41d3-b804-26fcf2070102","exec":["pm.environment.set('reference','DWErSBFXJW51b#xTY_8yFJDmg2JT#zVuJxYQMkHwE1ze124')"],"type":"text/javascript","packages":{}}}],"id":"de09916d-2f12-4126-b2b6-d01f9b3cae07","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/paymentlink/info?reference=rferfefhfhfhfh","urlObject":{"path":["charge","paymentlink","info"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[{"key":"reference","value":"rferfefhfhfhfh"}],"variable":[]}},"response":[],"_postman_id":"de09916d-2f12-4126-b2b6-d01f9b3cae07"},{"name":"Get Payment Keys","id":"c70bfc04-3f1f-4409-9201-c2be2db56771","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reference\":\"vGKillnWfoEajA5mUXe8qoDGAIn9xv8Y4xbO4O8Us4PIPbM6hRq36\"\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/paymentlink/get-keys","urlObject":{"path":["charge","paymentlink","get-keys"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c70bfc04-3f1f-4409-9201-c2be2db56771"}],"id":"2b81b3c7-957a-4656-85b1-36f28de8ea3e","_postman_id":"2b81b3c7-957a-4656-85b1-36f28de8ea3e","description":""},{"name":"Tokenize Charge with Seck key","item":[{"name":"Tokenize Charge","event":[{"listen":"prerequest","script":{"id":"1a5f5a30-e357-4590-891c-f67e4650e3b0","exec":["    pm.collectionVariables.set('reference', Math.floor(Math.random() * 1000000000));"],"type":"text/javascript","packages":{}}}],"id":"8006a7e4-6ef0-4415-96af-a28d34d2383f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"customer\": {\r\n        \"firstname\": \"testtoken\",\r\n        \"lastname\": \"pay\",\r\n        \"mobile\": \"+23481582333444\",\r\n        \"country\": \"NG\",\r\n        \"email\": \"etokenmail@test.com\"\r\n    },\r\n    \"order\": {\r\n        \"amount\": 2,\r\n        \"reference\": \"{{yourreference}}\",\r\n        \"description\": \"Pay\",\r\n        \"currency\": \"NGN\"\r\n    },\r\n    \"payment\": {\r\n        \"RedirectUrl\": \"https://www.hi.com\"\r\n    },\r\n    \"authorization\": {\r\n        \"cardToken\": \"TKNMDU4MzU4NzUwNTk0Mjg5NzQwMzgwNDA0NzQ1ODkz2173\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/card/tokenized/pay","urlObject":{"path":["charge","order","card","tokenized","pay"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8006a7e4-6ef0-4415-96af-a28d34d2383f"}],"id":"01bd0fe5-4c15-4d4f-966d-970720a2cc58","_postman_id":"01bd0fe5-4c15-4d4f-966d-970720a2cc58","description":""},{"name":"Verify Order with Sec Key","item":[{"name":"verify status","id":"8881dcb3-222b-4cbc-b5a5-a03a7631f020","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}1\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/verify","urlObject":{"path":["charge","order","verify"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8881dcb3-222b-4cbc-b5a5-a03a7631f020"}],"id":"e70014fb-a406-4509-98bc-71092715a478","_postman_id":"e70014fb-a406-4509-98bc-71092715a478","description":""},{"name":"Refund Order with Sec Key","item":[{"name":"Refund order","id":"6431389b-c495-456f-9760-443aad4ffa5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"reason\": \"customer request\", // reason for refund\r\n    \"amount\": \"\" // optional\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/refund","urlObject":{"path":["charge","order","refund"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[{"id":"a563901c-9e90-429b-b46b-0c35d55fcf99","name":"Refund order","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"reason\": \"customer request\", // reason for refund\r\n    \"amount\": \"\" // optional\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/refund"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 Oct 2026 17:49:32 GMT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"427"},{"key":"connection","value":"keep-alive"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"referrer-policy","value":"no-referrer-when-downgrade"},{"key":"permissions-policy","value":"interest-cohort=()"},{"key":"cache-control","value":"no-cache, no-store, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"0"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"content-security-policy","value":"default-src 'self' *.payment.blaaiz.com; connect-src 'self' *.payment.blaaiz.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.payment.blaaiz.com; img-src 'self' data: https: *.payment.blaaiz.com; style-src 'self' 'unsafe-inline' *; font-src 'self' *;"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n    \"orderId\": 998371,\n    \"refundStatusId\": 5,\n    \"refundReference\": \"REFUND-256966922\",\n    \"amountRefunded\": 10,\n    \"providerResponse\": \"Refund completed successfully\",\n    \"reason\": \"customer request\",\n    \"refundStatus\": null,\n    \"id\": 2293,\n    \"dateCreated\": \"2026-10-12T17:49:32.368996Z\",\n    \"dateUpdated\": null,\n    \"dateDeleted\": null,\n    \"createdBy\": -1,\n    \"updatedBy\": null,\n    \"deletedBy\": null\n  },\n  \"status\": \"success\",\n  \"statusCode\": \"00\",\n  \"message\": \"Refund completed successfully\"\n}"}],"_postman_id":"6431389b-c495-456f-9760-443aad4ffa5d"},{"name":"Get refunds","id":"0dd79f90-b9a0-4708-924d-635c18c21a95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/refunds/all?Id=<id>","urlObject":{"path":["charge","order","refunds","all"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[{"disabled":true,"key":"PaymentReference","value":"<paymentreference>"},{"key":"Id","value":"<id>"}],"variable":[]}},"response":[],"_postman_id":"0dd79f90-b9a0-4708-924d-635c18c21a95"},{"name":"Get chargebacks","id":"df052a52-6d4e-465d-9070-221837d77c1e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/chargebacks/all","urlObject":{"path":["charge","order","chargebacks","all"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"df052a52-6d4e-465d-9070-221837d77c1e"}],"id":"83be4d4e-c8be-49c5-b5ba-efc86e4c8035","_postman_id":"83be4d4e-c8be-49c5-b5ba-efc86e4c8035","description":""},{"name":"Callback Samples","item":[{"name":"Successful Order","id":"e7912a27-2a5b-4b87-ae93-172f340a7aaf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"Data\": {\r\n        \"OrderReference\": \"CCCTRSCNL68GIUV\",\r\n        \"PaymentReference\": \"BLZPAY-7C620F6E1ADC6026C64B362BB\",\r\n        \"ProductName\": \"Collection\",\r\n        \"TotalAmountCharged\": 6.0500,\r\n        \"StatusId\": 5,\r\n        \"Status\": \"Successful\",\r\n        \"PaymentMethod\": \"Card Payment\",\r\n        \"PaymentResponseCode\": \"00\",\r\n        \"PaymentResponseMessage\": \"Transaction was completed successfully\",\r\n        \"Narration\": \"Funded USD wallet\",\r\n        \"Remarks\": \"Order initiated and created successfully\",\r\n        \"CurrencyId\": 6,\r\n        \"CurrencyName\": \"USD\",\r\n        \"Fee\": 0.0000,\r\n        \"FeeRate\": 0.0000,\r\n        \"SubsidiaryFee\": 0.0000,\r\n        \"CustomerFee\": 0.0000,\r\n        \"DateCreated\": \"2026-10-12T01:37:29\",\r\n        \"DateUpdated\": \"2026-10-12T01:38:11.192367\",\r\n        \"DatePaymentConfirmed\": null,\r\n        \"NotificationType\": \"Payment\",\r\n        \"OrderPayments\": [\r\n            {\r\n                \"OrderId\": 998131,\r\n                \"OrderPaymentReference\": \"BLZPGW-PAYREF-B9391F20E05D60C2DF3\",\r\n                \"PaymentOptionId\": 2,\r\n                \"PaymentOption\": \"Card Payment\",\r\n                \"StatusId\": 5,\r\n                \"Status\": \"Successful\",\r\n                \"ResponseCode\": \"00\",\r\n                \"ResponseMessage\": \"Transaction was completed successfully\",\r\n                \"OrderPaymentInstrument\": null,\r\n                \"Remarks\": \"Order payment initiated\",\r\n                \"DateCreated\": \"2026-10-12T01:37:29.385393\",\r\n                \"DateUpdated\": \"2026-10-12T01:38:11.192474\"\r\n            }\r\n        ],\r\n        \"Customer\": {\r\n            \"CustomerId\": \"phe9@gmail.com\",\r\n            \"FirstName\": \"PHI\",\r\n            \"LastName\": \"EZE\",\r\n            \"EmailAddress\": \"phe9@gmail.com\",\r\n            \"CountryShortName\": \"NG\",\r\n            \"CustomerGroup\": \"Default\",\r\n            \"CountryId\": 1,\r\n            \"GlobalStatusId\": 2,\r\n            \"GlobalStatus\": \"Active\",\r\n            \"MobileNumber\": \"+1234560\",\r\n            \"IsBlacklisted\": false,\r\n            \"ReasonBlacklisted\": null,\r\n            \"DateCreated\": \"2026-06-20T17:58:59\",\r\n            \"DateUpdated\": null\r\n        },\r\n        \"CardDetails\": [\r\n            {\r\n                \"OrderPaymentId\": 998816,\r\n                \"Status\": true,\r\n                \"Country\": \"NG\",\r\n                \"CardToken\": \"TKNMzYzMjQ2xxxxxxxxx98078\",\r\n                \"CardExpiryMonth\": \"07\",\r\n                \"CardExpiryYear\": \"27\",\r\n                \"CardType\": \"MASTERCARD\",\r\n                \"CardIssuer\": \"MASTERCARD\",\r\n                \"CardFirstSixDigits\": \"559111\",\r\n                \"CardLastFourDigits\": \"0000\",\r\n                \"DateCreated\": \"2026-10-12T01:38:11.202155\",\r\n                \"AppEnvironmentId\": 2\r\n            }\r\n        ],\r\n        \"PaymentLink\": null\r\n    },\r\n    \"Status\": \"success\",\r\n    \"StatusCode\": \"00\",\r\n    \"Message\": \"Order details fetched successfully\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://sample-merchant-url.com","urlObject":{"protocol":"https","host":["sample-merchant-url","com"],"query":[],"variable":[]}},"response":[{"id":"4ef8f32d-86f6-4f71-a40c-87635d5c1e14","name":"Refund order","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"reason\": \"customer request\", // reason for refund\r\n    \"amount\": \"\" // optional\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/refund"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 Oct 2026 17:49:32 GMT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"427"},{"key":"connection","value":"keep-alive"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"referrer-policy","value":"no-referrer-when-downgrade"},{"key":"permissions-policy","value":"interest-cohort=()"},{"key":"cache-control","value":"no-cache, no-store, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"0"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"content-security-policy","value":"default-src 'self' *.payment.blaaiz.com; connect-src 'self' *.payment.blaaiz.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.payment.blaaiz.com; img-src 'self' data: https: *.payment.blaaiz.com; style-src 'self' 'unsafe-inline' *; font-src 'self' *;"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n    \"orderId\": 998371,\n    \"refundStatusId\": 5,\n    \"refundReference\": \"REFUND-256966922\",\n    \"amountRefunded\": 10,\n    \"providerResponse\": \"Refund completed successfully\",\n    \"reason\": \"customer request\",\n    \"refundStatus\": null,\n    \"id\": 2293,\n    \"dateCreated\": \"2026-10-12T17:49:32.368996Z\",\n    \"dateUpdated\": null,\n    \"dateDeleted\": null,\n    \"createdBy\": -1,\n    \"updatedBy\": null,\n    \"deletedBy\": null\n  },\n  \"status\": \"success\",\n  \"statusCode\": \"00\",\n  \"message\": \"Refund completed successfully\"\n}"}],"_postman_id":"e7912a27-2a5b-4b87-ae93-172f340a7aaf"},{"name":"Failed Order","id":"647d0bf1-1516-4d45-a4fa-8b6eb11c0f47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"Data\": {\r\n        \"OrderReference\": \"CCC4WV3IO2MZ\",\r\n        \"PaymentReference\": \"BLZPAY-D4D2BF15026C64B362BB\",\r\n        \"ProductName\": \"Collection\",\r\n        \"TotalAmountCharged\": 200.0000,\r\n        \"StatusId\": 4,\r\n        \"Status\": \"Failed\",\r\n        \"PaymentMethod\": \"Card Payment\",\r\n        \"PaymentResponseCode\": \"PG04\",\r\n        \"PaymentResponseMessage\": \"Transaction failed: Request does not match any supported operation\",\r\n        \"Narration\": \"Funded USD wallet\",\r\n        \"Remarks\": \"Order initiated and created successfully\",\r\n        \"CurrencyId\": 6,\r\n        \"CurrencyName\": \"USD\",\r\n        \"Fee\": 0.0000,\r\n        \"FeeRate\": 0.0000,\r\n        \"SubsidiaryFee\": 0.0000,\r\n        \"CustomerFee\": 0.0000,\r\n        \"DateCreated\": \"2026-10-12T08:27:58\",\r\n        \"DateUpdated\": \"2026-10-12T08:28:00.966904\",\r\n        \"DatePaymentConfirmed\": null,\r\n        \"NotificationType\": \"Payment\",\r\n        \"OrderPayments\": [\r\n            {\r\n                \"OrderId\": 99800028,\r\n                \"OrderPaymentReference\": \"BLZPGW-PAYREF-6474CD98D5DDE5E89C51C3\",\r\n                \"PaymentOptionId\": 2,\r\n                \"PaymentOption\": \"Card Payment\",\r\n                \"StatusId\": 4,\r\n                \"Status\": \"Failed\",\r\n                \"ResponseCode\": \"PG04\",\r\n                \"ResponseMessage\": \"Transaction failed: Request does not match any supported operation\",\r\n                \"OrderPaymentInstrument\": null,\r\n                \"Remarks\": \"Order payment initiated\",\r\n                \"DateCreated\": \"2026-10-12T08:27:59.157323\",\r\n                \"DateUpdated\": \"2026-10-12T08:28:00.967225\"\r\n            }\r\n        ],\r\n        \"Customer\": {\r\n            \"CustomerId\": \"djbc@gmail.com\",\r\n            \"FirstName\": \"Aji\",\r\n            \"LastName\": \"Emmanuel\",\r\n            \"EmailAddress\": \"djbc@gmail.com\",\r\n            \"CountryShortName\": \"NG\",\r\n            \"CustomerGroup\": \"Default\",\r\n            \"CountryId\": 1,\r\n            \"GlobalStatusId\": 2,\r\n            \"GlobalStatus\": \"Active\",\r\n            \"MobileNumber\": \"+123490\",\r\n            \"IsBlacklisted\": false,\r\n            \"ReasonBlacklisted\": null,\r\n            \"DateCreated\": \"2026-01-22T09:01:55\",\r\n            \"DateUpdated\": null\r\n        },\r\n        \"CardDetails\": [\r\n            {\r\n                \"OrderPaymentId\": 998913,\r\n                \"Status\": true,\r\n                \"Country\": null,\r\n                \"CardToken\": null,\r\n                \"CardExpiryMonth\": null,\r\n                \"CardExpiryYear\": null,\r\n                \"CardType\": null,\r\n                \"CardIssuer\": null,\r\n                \"CardFirstSixDigits\": null,\r\n                \"CardLastFourDigits\": null,\r\n                \"DateCreated\": \"2026-10-12T08:28:00.977046\",\r\n                \"AppEnvironmentId\": 2\r\n            }\r\n        ],\r\n        \"PaymentLink\": null\r\n    },\r\n    \"Status\": \"success\",\r\n    \"StatusCode\": \"00\",\r\n    \"Message\": \"Order details fetched successfully\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://sample-merchant-url.com","urlObject":{"protocol":"https","host":["sample-merchant-url","com"],"query":[],"variable":[]}},"response":[{"id":"a54afe8d-b623-4760-b8e9-70e586685663","name":"Refund order","originalRequest":{"method":"POST","header":[{"key":"api-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"}],"body":{"mode":"raw","raw":"{\r\n    \"reference\": \"{{yourreference}}\",\r\n    \"reason\": \"customer request\", // reason for refund\r\n    \"amount\": \"\" // optional\r\n}","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/order/refund"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"date","value":"Mon, 12 Oct 2026 17:49:32 GMT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"427"},{"key":"connection","value":"keep-alive"},{"key":"x-frame-options","value":"SAMEORIGIN"},{"key":"x-content-type-options","value":"nosniff"},{"key":"x-xss-protection","value":"1; mode=block"},{"key":"referrer-policy","value":"no-referrer-when-downgrade"},{"key":"permissions-policy","value":"interest-cohort=()"},{"key":"cache-control","value":"no-cache, no-store, must-revalidate"},{"key":"pragma","value":"no-cache"},{"key":"expires","value":"0"},{"key":"strict-transport-security","value":"max-age=63072000; preload"},{"key":"content-security-policy","value":"default-src 'self' *.payment.blaaiz.com; connect-src 'self' *.payment.blaaiz.com; script-src 'self' 'unsafe-eval' 'unsafe-inline' *.payment.blaaiz.com; img-src 'self' data: https: *.payment.blaaiz.com; style-src 'self' 'unsafe-inline' *; font-src 'self' *;"}],"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n    \"orderId\": 998371,\n    \"refundStatusId\": 5,\n    \"refundReference\": \"REFUND-256966922\",\n    \"amountRefunded\": 10,\n    \"providerResponse\": \"Refund completed successfully\",\n    \"reason\": \"customer request\",\n    \"refundStatus\": null,\n    \"id\": 2293,\n    \"dateCreated\": \"2026-10-12T17:49:32.368996Z\",\n    \"dateUpdated\": null,\n    \"dateDeleted\": null,\n    \"createdBy\": -1,\n    \"updatedBy\": null,\n    \"deletedBy\": null\n  },\n  \"status\": \"success\",\n  \"statusCode\": \"00\",\n  \"message\": \"Refund completed successfully\"\n}"}],"_postman_id":"647d0bf1-1516-4d45-a4fa-8b6eb11c0f47"}],"id":"c874afba-faa5-4485-800a-187b14a58c02","_postman_id":"c874afba-faa5-4485-800a-187b14a58c02","description":""},{"name":"Ping","event":[{"listen":"prerequest","script":{"id":"428b6157-7145-4782-a8c0-094644713bd5","exec":["    pm.collectionVariables.set('reference', Math.floor(Math.random() * 1000000000));"],"type":"text/javascript","packages":{}}},{"listen":"test","script":{"id":"8549e6a7-6b5d-475a-9a8b-9367dec224d1","exec":["if(pm.response.code == 200){","    pm.collectionVariables.set('encrypteddata', pm.response.json().data);","}"],"type":"text/javascript","packages":{}}}],"id":"2e4bed04-564e-434e-bb90-076338cfd220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"api-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://checkout-api-service.payment.blaaiz.com/charge/ping","urlObject":{"path":["charge","ping"],"host":["https://checkout-api-service.payment.blaaiz.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2e4bed04-564e-434e-bb90-076338cfd220"}],"id":"b0d6295f-24bb-4418-8a63-7b59fbe4f2fc","event":[{"listen":"prerequest","script":{"id":"0ec46ab7-6706-4466-9078-6f8df2ff6678","type":"text/javascript","exec":["pm.environment.set('randomnumber', Math.floor(Math.random() * 10000 + 1000))"]}},{"listen":"test","script":{"id":"56ce6a23-8c8c-4817-be02-5aa56f684e34","type":"text/javascript","exec":[""]}}],"_postman_id":"b0d6295f-24bb-4418-8a63-7b59fbe4f2fc","description":""}],"event":[{"listen":"prerequest","script":{"id":"ffb6aa15-a845-47bc-8b58-2d261b19d2f2","type":"text/javascript","requests":{},"exec":[""]}},{"listen":"test","script":{"id":"b8c2f115-dba2-4f82-aace-9f3452f48e14","type":"text/javascript","requests":{},"exec":[""]}}],"variable":[{"key":"checkout-url","value":"https://checkout-api-service.payment.blaaiz.com"},{"key":"public-key","value":"BLZPGW-PUBLICKEY-TEST-0636514C752748D7B16D35D8EF870078"},{"key":"private-key","value":"BLZPGW-SECRETKEY-TEST-E3BA14FBDF684B7D85AF12B901B715F5"},{"key":"reference","value":"{{yourreference}}"},{"key":"encrypteddata","value":"{{encrypteddata}}"},{"key":"orderreference","value":"{{yourreference}}"},{"key":"checkout-url","value":"https://localhost:29252","disabled":true},{"key":"public encryption key","value":""}]}