bdapps Subscription Charging SDK

Home / Subscription Charging SDK
                                            <!DOCTYPE html>
                                            <html lang="en">
                                            <body>
                                            <h2>Click to subscribe</h2>

                                            <form action="subscriptionPage.php" method="post">
                                            <button id="btn1" name="btn1" class="button button1">Subscribe</button>
                                            </form>
                                            <?php

                                                if (isset($_POST['btn1'])) {

                                                    $requestTime = gmdate("Y-m-d\TH:i:s.u\Z");
                                                    $apiKey = "e98fd63be5875a428662de2fb28e5j9c";
                                                    $apiSecret = "3a0d8c4b-224f-7a44-8334-904c7372agf6";
                                                    $requestId = "123456789012347";
                                                    $redirectUrl = "https://bdappsandroid.com/reaz/consent_page/subscriptionPage.php";
                                                    $signature = $apiKey . "|" . $requestTime . "|" . $apiSecret;
                                                    $encryptedSignature = hash("sha512", $signature);

                                                    $url = "https://user.bdapps.com/sdk/subscription/authorize?apiKey=" . $apiKey . "&requestId=" . $requestId . "&requestTime=" . $requestTime . "&signature=" . $encryptedSignature . "&redirectUrl=" . $redirectUrl;

                                                    header('Location:' . $url);
                                                }

                                                ?>
                                            </body>
                                            </html>
                                        
                                            code coming soon
                                        
                                            code coming soon