Fixes #5877 Comlink Telehealth Module (#5878)
[openemr.git] / interface / modules / custom_modules / oe-module-comlink-telehealth / welcome.php
blob63e177a647711f8eee6edfc21b6c70959f8e9fae
1 <?php
3 /**
4 * package OpenEMR
5 * link http://www.open-emr.org
6 * author Sherwin Gaddis <sherwingaddis@gmail.com>
7 * copyright Copyright (c )2021. Sherwin Gaddis <sherwingaddis@gmail.com>
8 * license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
12 use OpenEMR\Core\Header;
14 require_once dirname(__FILE__, 4) . "/globals.php";
17 <!DOCTYPE html>
18 <html lang="en">
19 <head>
20 <meta charset="UTF-8">
21 <title><?php echo xlt("Welcome to the module"); ?></title>
22 <?php echo Header::setupHeader(); ?>
23 <style>
24 .note {
25 color: #942a25;
26 font-size: medium;
27 font-weight: bold;
29 </style>
30 </head>
31 <body>
32 <div class="container-fluid">
33 <div>
34 <h1><?php echo xlt("Welcome"); ?></h1>
35 <p><?php echo xlt("To get your telehealth configuration information"); ?>,
36 <?php echo xlt("Please select the subscription button below."); ?></p>
37 <p>
38 <?php echo xlt("There is a 7 day trial period included with the subscription"); ?>
39 </p>
41 </div>
42 <div id="paypal-button-container-P-25N86285GY8825203MMWZEIY"></div>
43 <script src="https://www.paypal.com/sdk/js?client-id=AUQ1tRakVcTZ0wIOjQ0CicVxB8K47tXo4l8PucxwmmB1v_LIE4-_pJ-kEZf3fsk3uKZuhb_3WuDasVBC&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
44 <script>
45 paypal.Buttons({
46 style: {
47 shape: 'rect',
48 color: 'gold',
49 layout: 'vertical',
50 label: 'subscribe'
52 createSubscription: function(data, actions) {
53 return actions.subscription.create({
54 /* Creates the subscription */
55 plan_id: 'P-25N86285GY8825203MMWZEIY',
56 quantity: 1 // The quantity of the product for a subscription
57 });
59 onApprove: function(data, actions) {
60 alert(data.subscriptionID); // You can add optional success message for the subscriber here
62 }).render('#paypal-button-container-P-25N86285GY8825203MMWZEIY'); // Renders the PayPal button
63 </script>
64 <div>
65 <p><h3><a href="https://credentials.affordablecustomehr.com/customer"><?php echo xlt("Click Here to get credentials after subscribing"); ?></a></h3></p>
66 </div>
67 <div>
68 <p><?php echo xlt('Questions') . ": ";
69 echo " sherwin@affordablecustomehr.com"; ?></p>
70 </div>
71 </div>
73 </body>
74 </html>