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";
20 <meta charset
="UTF-8">
21 <title
><?php
echo xlt("Welcome to the module"); ?
></title
>
22 <?php
echo Header
::setupHeader(); ?
>
32 <div
class="container-fluid">
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
>
38 <?php
echo xlt("There is a 7 day trial period included with the subscription"); ?
>
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
>
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
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
65 <p
><h3
><a href
="https://credentials.affordablecustomehr.com/customer"><?php
echo xlt("Click Here to get credentials after subscribing"); ?
></a
></h3
></p
>
68 <p
><?php
echo xlt('Questions') . ": ";
69 echo " sherwin@affordablecustomehr.com"; ?
></p
>