jigneshkaila

Untitled

Sep 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.05 KB | None | 0 0
  1. 1)  File name : cartflows-pro\classes\class-cartflows-pro-frontend.php
  2.     Line Number : 377
  3.     Details : Ignore Gateways checkout processed for upsell
  4.         old code : if ( 'ppec_paypal' === $order_gateway ) {
  5.         New code : if ( 'ppec_paypal' === $order_gateway || 'paypal_express' === $order_gateway) {
  6.  
  7.  
  8. 2)  File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
  9.     Line number : 50
  10.     Details : Add new action for Angelleye Express checkout token
  11.  
  12.         add_action( 'wp_ajax_nopriv_cartflows_front_create_paypal_express_angelleye_checkout_token', array( $this, 'generate_angelleye_express_checkout_token' ), 10 );
  13.         ad_action( 'wp_ajax_cartflows_front_create_paypal_express_angelleye_checkout_token', array( $this, 'generate_angelleye_express_checkout_token' ), 10 );
  14.  
  15.  
  16. 3)  File name : cartflows-pro\classes\class-cartflows-pro-gateways.php
  17.     Line number : 62
  18.     Details : Add new action/filter for Handles angelleye paypal_express API call.
  19.  
  20.         /**
  21.          * Angelleye Paypal Express API calls response and process billing agreement creation
  22.          */
  23.         add_action( 'woocommerce_api_cartflows_paypal_express', array( $this, 'maybe_handle_paypal_express_api_call' ) );
  24.                
  25.         /**
  26.          * Angelleye Disable Skip Final Review
  27.          */
  28.         add_filter( 'angelleye_ec_force_to_display_checkout_page', array($this, 'angelleye_express_checkout_cartflow'));
  29.         add_filter( 'angelleye_paypal_payflow_allow_default_order_status', '__return_false');
  30.        
  31.        
  32.    
  33. 4)  File name : cartflows-pro\classes\class-cartflows-pro-gateways.php 
  34.     Line number : 144
  35.     Details : Add new function for Generates angelleye express checkout token.
  36.    
  37.         /**
  38.          * Generates angelleye express checkout token
  39.          */
  40.         function generate_angelleye_express_checkout_token() {
  41.             $this->load_gateway( 'paypal_express' )->generate_express_checkout_token();
  42.         }
  43.  
  44.  
  45. 5)  File name : cartflows-pro\classes\class-cartflows-pro-gateways.php 
  46.     Line number : 175
  47.     Details : modify existing array in get_supported_gateways function for Gateways Supported.
  48.    
  49.         'paypal_express' => array(
  50.                 'file'  => 'paypal-express-angelleye.php',
  51.                 'class' => 'Cartflows_Pro_Gateway_Paypal_Express_Angelleye',
  52.         ),
  53.                     'paypal_pro' => array(
  54.             'file'  => 'paypal-pro-angelleye.php',
  55.             'class' => 'Cartflows_Pro_Gateway_PayPal_Pro_AngellEYE',
  56.         ),
  57.                     'paypal_pro_payflow' => array(
  58.             'file'  => 'paypal-pro-payflow-angelleye.php',
  59.             'class' => 'Cartflows_Pro_Gateway_PayPal_Pro_PayFlow_AngellEYE',
  60.         ),
  61.                     'braintree' => array(
  62.             'file'  => 'braintree-angelleye.php',
  63.             'class' => 'Cartflows_Pro_Gateway_Braintree_AngellEYE',
  64.         )
  65.        
  66.        
  67. 6)  File name : cartflows-pro\classes\class-cartflows-pro-gateways.php 
  68.     Line number : 217
  69.     Details : Add new function for Handles angelleye paypal_express API call.
  70.    
  71.         /**
  72.          * Handles angelleye paypal_express API call
  73.          */
  74.         function maybe_handle_paypal_express_api_call() {
  75.             $this->load_gateway( 'paypal_express' )->create_billing_agreement();
  76.             $this->load_gateway( 'paypal_express' )->process_api_calls();
  77.         }  
  78.        
  79.        
  80.        
  81. 7)  File name : cartflows-pro\classes\class-cartflows-pro-gateways.php 
  82.     Line number : 217
  83.     Details : Add new function for Handles angelleye Display checkout page or not.
  84.    
  85.         function angelleye_express_checkout_cartflow($bool) {
  86.             $post_data = WC()->session->get('post_data');
  87.             if(!empty($post_data)) {
  88.                 if( !empty($post_data['_wcf_flow_id'] ) ) {
  89.                     $order_bump         = get_post_meta( $post_data['_wcf_checkout_id'], 'wcf-pre-checkout-offer', true );
  90.                     if ( 'yes' == $order_bump ) {
  91.                         return true;
  92.                     } else {
  93.                         return false;
  94.                     }
  95.                    
  96.                 }
  97.             }
  98.             return $bool;
  99.         }      
  100.        
  101.  
  102. 8)  Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-braintree-angelleye.php
  103. 9)  Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-paypal-express-angelleye.php
  104. 10)  Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-paypal-pro-angelleye.php    
  105. 11)  Add new php file : cartflows-pro\modules\gateways\class-cartflows-pro-gateway-paypal-pro-payflow-angelleye.php
  106.    
  107. 12)  File name : cartflows-pro\modules\offer\classes\class-cartflows-pro-base-offer-markup.php
  108.      Line Number : 92
  109.      Details : Offer script, skip offer when reference transaction disable, same as PayPal and express.
  110.         old code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() && ! wcf_pro()->utils->is_zero_value_offered_product() ) {
  111.         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() ) {
  112.  
  113.  
  114. 13)  File name : cartflows-pro\modules\offer\classes\class-cartflows-pro-base-offer-shortcodes.php
  115.      Line Number : 105
  116.      Details : add angelleye paypal_express compatibility for Offer shortcode markup same as PayPal and express.
  117.         old code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() ) {
  118.         New code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method || 'paypal_express' === $payment_method) && ! wcf_pro()->utils->is_reference_transaction() ) {
  119.  
  120.  
  121. 14)  File name : cartflows-pro\modules\offer\classes\class-cartflows-pro-base-offer-shortcodes.php
  122.      Line Number : 219
  123.      Details : Offer shortcode markup, add angelleye paypal_express compatibility for Offer shortcode markup same as PayPal and express.
  124.         old code : if ( ( 'paypal' === $payment_method || 'ppec_paypal' === $payment_method ) && ! wcf_pro()->utils->is_reference_transaction() ) {
  125.         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