示例#1
0
function payment_buttons_js()
{
    if (osc_get_preference('paypal_enabled', 'payment') == 1) {
        ?>
        <div name="result_div" id="result_div"></div>
        <script type="text/javascript">
            var rd = document.getElementById("result_div");
        </script>
        <?php 
    }
    if (osc_get_preference('braintree_enabled', 'payment') == 1) {
        BraintreePayment::dialogJS();
    }
    if (osc_get_preference('stripe_enabled', 'payment') == 1) {
        StripePayment::dialogJS();
    }
    if (osc_get_preference('coinjar_enabled', 'payment') == 1) {
        CoinjarPayment::dialogJS();
    }
}
示例#2
0
<?php

CoinjarPayment::processPayment();