当前位置: 首页>>代码示例>>PHP>>正文


PHP Paypal::button方法代码示例

本文整理汇总了PHP中Paypal::button方法的典型用法代码示例。如果您正苦于以下问题:PHP Paypal::button方法的具体用法?PHP Paypal::button怎么用?PHP Paypal::button使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Paypal的用法示例。


在下文中一共展示了Paypal::button方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: wallet_button

     if (isset($wallet['formatted_amount']) && $wallet['formatted_amount'] >= $category_fee) {
         wallet_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']));
         }
     }
 } 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>
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:makepremium.php

示例2: payment_buttons

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);
    }
}
开发者ID:virsoni,项目名称:plugin-payment,代码行数:18,代码来源:functions.php

示例3: sprintf

    echo sprintf(__('Credit pack #%d', 'payment'), $pack_n);
    ?>
</h3>
        <div><label><?php 
    _e("Price", "payment");
    ?>
:</label> <?php 
    echo $pack . " " . osc_get_preference('currency', 'payment');
    ?>
</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) {
        ?>
开发者ID:syedfiraat4,项目名称:bikade.com,代码行数:31,代码来源:pack.php


注:本文中的Paypal::button方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。