Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) File name : cartflows-pro\classes\class-cartflows-pro-frontend.php
- Line Number : 377
- Details : Ignore Gateways checkout processed for upsell
- old code : if ( 'ppec_paypal' === $order_gateway ) {
- New code : if ( 'ppec_paypal' === $order_gateway || 'paypal_express' === $order_gateway) {
- 2) File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
- Line number : 50
- Details : Add new action for Angelleye Express checkout token
- add_action( 'wp_ajax_nopriv_cartflows_front_create_paypal_express_angelleye_checkout_token', array( $this, 'generate_angelleye_express_checkout_token' ), 10 );
- ad_action( 'wp_ajax_cartflows_front_create_paypal_express_angelleye_checkout_token', array( $this, 'generate_angelleye_express_checkout_token' ), 10 );
- 3) File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
- Line number : 62
- Details : Add new action/filter for Handles angelleye paypal_express API call.
- /**
- * Angelleye Paypal Express API calls response and process billing agreement creation
- */
- add_action( 'woocommerce_api_cartflows_paypal_express', array( $this, 'maybe_handle_paypal_express_api_call' ) );
- /**
- * Angelleye Disable Skip Final Review
- */
- add_filter( 'angelleye_ec_force_to_display_checkout_page', array($this, 'angelleye_express_checkout_cartflow'));
- add_filter( 'angelleye_paypal_payflow_allow_default_order_status', '__return_false');
- 4) File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
- Line number : 144
- Details : Add new function for Generates angelleye express checkout token.
- /**
- * Generates angelleye express checkout token
- */
- function generate_angelleye_express_checkout_token() {
- $this->load_gateway( 'paypal_express' )->generate_express_checkout_token();
- }
- 5) File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
- Line number : 175
- Details : modify existing array in get_supported_gateways function for Gateways Supported.
- 'paypal_express' => array(
- 'file' => 'paypal-express-angelleye.php',
- 'class' => 'Cartflows_Pro_Gateway_Paypal_Express_Angelleye',
- ),
- 'paypal_pro' => array(
- 'file' => 'paypal-pro-angelleye.php',
- 'class' => 'Cartflows_Pro_Gateway_PayPal_Pro_AngellEYE',
- ),
- 'paypal_pro_payflow' => array(
- 'file' => 'paypal-pro-payflow-angelleye.php',
- 'class' => 'Cartflows_Pro_Gateway_PayPal_Pro_PayFlow_AngellEYE',
- ),
- 'braintree' => array(
- 'file' => 'braintree-angelleye.php',
- 'class' => 'Cartflows_Pro_Gateway_Braintree_AngellEYE',
- )
- 6) File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
- Line number : 217
- Details : Add new function for Handles angelleye paypal_express API call.
- /**
- * Handles angelleye paypal_express API call
- */
- function maybe_handle_paypal_express_api_call() {
- $this->load_gateway( 'paypal_express' )->create_billing_agreement();
- $this->load_gateway( 'paypal_express' )->process_api_calls();
- }
- 7) File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
- Line number : 217
- Details : Add new function for Handles angelleye Display checkout page or not.
- function angelleye_express_checkout_cartflow($bool) {
- $post_data = WC()->session->get('post_data');
- if(!empty($post_data)) {
- if( !empty($post_data['_wcf_flow_id'] ) ) {
- $order_bump = get_post_meta( $post_data['_wcf_checkout_id'], 'wcf-pre-checkout-offer', true );
- if ( 'yes' == $order_bump ) {
- return true;
- } else {
- return false;
- }
- }
- }
- return $bool;
- }
- 8) Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-braintree-angelleye.php
- 9) Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-paypal-express-angelleye.php
- 10) Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-paypal-pro-angelleye.php
- 11) Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-paypal-pro-payflow-angelleye.php
- 12) File name : cartflows-pro\modules\offer\classes\class-cartflows-pro-base-offer-markup.php
- Line Number : 92
- Details : Offer script, skip offer when reference transaction disable, same as PayPal and express.
- old code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() && ! wcf_pro()->utils->is_zero_value_offered_product() ) {
- New code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method || 'paypal_express' === $payment_method) && ! wcf_pro()->utils->is_reference_transaction() && ! wcf_pro()->utils->is_zero_value_offered_product() ) {
- 13) File name : cartflows-pro\modules\offer\classes\class-cartflows-pro-base-offer-shortcodes.php
- Line Number : 105
- Details : add angelleye paypal_express compatibility for Offer shortcode markup same as PayPal and express.
- old code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() ) {
- New code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method || 'paypal_express' === $payment_method) && ! wcf_pro()->utils->is_reference_transaction() ) {
- 14) File name : cartflows-pro\modules\offer\classes\class-cartflows-pro-base-offer-shortcodes.php
- Line Number : 219
- Details : Offer shortcode markup, add angelleye paypal_express compatibility for Offer shortcode markup same as PayPal and express.
- old code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() ) {
- New code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method || 'paypal_express' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() ) {
Add Comment
Please, Sign In to add comment