Esempio n. 1
0
             if (osc_get_preference('paypal_enabled', 'payment')) {
                 Paypal::button($category_fee, sprintf(__("Premium fee for item %d at %s", "paypal"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
             }
             if (osc_get_preference('blockchain_enabled', 'payment')) {
                 Blockchain::button($category_fee, sprintf(__("Premium fee for item %d at %s", "paypal"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
             }
             if (osc_get_preference('braintree_enabled', 'payment')) {
                 BraintreePayment::button($category_fee, sprintf(__("Premium fee for item %d at %s", "paypal"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
             }
         }
     } else {
         if (osc_get_preference('paypal_enabled', 'payment')) {
             Paypal::button($category_fee, sprintf(__("Premium fee for item %d at %s", "paypal"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
         }
         if (osc_get_preference('blockchain_enabled', 'payment')) {
             Blockchain::button($category_fee, sprintf(__("Premium fee for item %d at %s", "paypal"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
         }
         if (osc_get_preference('braintree_enabled', 'payment')) {
             BraintreePayment::button($category_fee, sprintf(__("Premium fee for item %d at %s", "paypal"), $item['pk_i_id'], osc_page_title()), "201x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
         }
     }
     ?>
         </div>
         <div style="clear:both;"></div>
         <div name="result_div" id="result_div"></div>
         <script type="text/javascript">
             var rd = document.getElementById("result_div");
         </script>
     </div>
     <?php 
 } else {
Esempio n. 2
0
function payment_buttons($amount = '0.00', $description = '', $itemnumber = '101', $extra_array = null)
{
    if (osc_get_preference('paypal_enabled', 'payment') == 1) {
        Paypal::button($amount, $description, $itemnumber, $extra_array);
    }
    if (osc_get_preference('blockchain_enabled', 'payment') == 1) {
        Blockchain::button($amount, $description, $itemnumber, $extra_array);
    }
    if (osc_get_preference('braintree_enabled', 'payment') == 1) {
        BraintreePayment::button($amount, $description, $itemnumber, $extra_array);
    }
    if (osc_get_preference('stripe_enabled', 'payment') == 1) {
        StripePayment::button($amount, $description, $itemnumber, $extra_array);
    }
    if (osc_get_preference('coinjar_enabled', 'payment') == 1) {
        CoinjarPayment::button($amount, $description, $itemnumber, $extra_array);
    }
}
Esempio n. 3
0
             if (osc_get_preference('paypal_enabled', 'payment')) {
                 Paypal::button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
             }
             if (osc_get_preference('blockchain_enabled', 'payment')) {
                 Blockchain::button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
             }
             if (osc_get_preference('braintree_enabled', 'payment')) {
                 BraintreePayment::button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
             }
         }
     } else {
         if (osc_get_preference('paypal_enabled', 'payment')) {
             Paypal::button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
         }
         if (osc_get_preference('blockchain_enabled', 'payment')) {
             Blockchain::button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
         }
         if (osc_get_preference('braintree_enabled', 'payment')) {
             BraintreePayment::button($category_fee, sprintf(__('Publish fee for item %d at %s', 'payment'), $item['pk_i_id'], osc_page_title()), "101x" . $item['fk_i_category_id'] . "x" . $item['pk_i_id'], array('user' => $item['fk_i_user_id'], 'itemid' => $item['pk_i_id'], 'email' => $item['s_contact_email']));
         }
     }
     ?>
         </div>
         <div style="clear:both;"></div>
         <div name="result_div" id="result_div"></div>
         <script type="text/javascript">
             var rd = document.getElementById("result_div");
         </script>
     </div>
     <?php 
 } else {
Esempio n. 4
0
</div>
        <?php 
    if (osc_get_preference('paypal_enabled', 'payment') == 1) {
        ?>
            <div>
                <?php 
        Paypal::button($pack, sprintf(__("Credit for %s %s at %s", "payment"), $pack, osc_get_preference("currency", "payment"), osc_page_title()), '301x' . $pack, array('user' => @$user['pk_i_id'], 'itemid' => @$user['pk_i_id'], 'email' => @$user['s_email']));
        ?>
            </div>
        <?php 
    }
    if (osc_get_preference('blockchain_enabled', 'payment') == 1) {
        ?>
            <div>
                <?php 
        Blockchain::button($pack, sprintf(__("Credit for %s %s at %s", "payment"), $pack, osc_get_preference("currency", "payment"), osc_page_title()), '301x' . $pack, array('user' => @$user['pk_i_id'], 'itemid' => @$user['pk_i_id'], 'email' => @$user['s_email']));
        ?>
           </div>
        <?php 
    }
    if (osc_get_preference('braintree_enabled', 'payment') == 1) {
        ?>
            <div>
                <?php 
        BraintreePayment::button($pack, sprintf(__("Credit for %s %s at %s", "payment"), $pack, osc_get_preference("currency", "payment"), osc_page_title()), '301x' . $pack, array('user' => @$user['pk_i_id'], 'itemid' => @$user['pk_i_id'], 'email' => @$user['s_email']));
        ?>
            </div>
        <?php 
    }
    ?>
    </div>