/** * Register escrow related payments statuses. * * @return void */ function _appthemes_register_escrow_statuses() { if (!appthemes_is_escrow_enabled()) { return; } register_post_status(APPTHEMES_ORDER_PAID, array('public' => true, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop('Paid <span class="count">(%s)</span>', 'Paid <span class="count">(%s)</span>', APP_TD))); register_post_status(APPTHEMES_ORDER_REFUNDED, array('public' => true, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop('Refunded <span class="count">(%s)</span>', 'Refunded <span class="count">(%s)</span>', APP_TD))); }
/** * Registers the payments escrow settings page. * * @return void */ function _appthemes_register_payments_escrow_settings() { if (appthemes_is_escrow_enabled()) { new APP_Payments_Escrow_Settings_Admin(APP_Gateway_Registry::get_options()); } }
/** * Registers PayPal Adaptive gateway. * * @return void */ function _appthemes_init_paypal_adaptive() { if (appthemes_is_escrow_enabled()) { appthemes_register_gateway('APP_PayPal_Adaptive'); } }