Skip to content

Commit

Permalink
Merge pull request #90 from newfold-labs/PRESS0-1483-Fix-Stripe-Conne…
Browse files Browse the repository at this point in the history
…ct-Event

Updated the correct hook name for Stripe connect event
  • Loading branch information
BrianHenryIE authored Jul 12, 2024
2 parents 4371ed0 + cb60305 commit b6ff461
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions includes/Listeners/Commerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public function register_hooks() {
add_filter( 'woocommerce_before_cart', array( $this, 'site_cart_views' ) );
add_filter( 'woocommerce_before_checkout_form', array( $this, 'checkout_views' ) );
add_filter( 'woocommerce_thankyou', array( $this, 'thank_you_page' ) );
add_filter( 'pre_update_option_nfd_ecommerce_captive_flow_razorpay', array( $this, 'razorpay_connection' ), 10, 2 );
add_filter( 'pre_update_option_nfd_ecommerce_captive_flow_shippo', array( $this, 'shippo_connection' ), 10, 2 );
add_filter( 'pre_update_option_nfd_ecommerce_captive_flow_stripe', array( $this, 'stripe_connection' ), 10, 2 );
add_filter( 'pre_update_option_nfd-ecommerce-captive-flow-razorpay', array( $this, 'razorpay_connection' ), 10, 2 );
add_filter( 'pre_update_option_nfd-ecommerce-captive-flow-shippo', array( $this, 'shippo_connection' ), 10, 2 );
add_filter( 'pre_update_option_nfd-ecommerce-captive-flow-stripe', array( $this, 'stripe_connection' ), 10, 2 );
// Paypal Connection
add_filter( 'pre_update_option_yith_ppwc_merchant_data_production', array( $this, 'paypal_connection' ), 10, 2 );
add_filter( 'update_option_ewc4wp_sso_account_status', array( $this, 'ecomdash_connected' ), 10, 2 );
Expand Down Expand Up @@ -193,7 +193,7 @@ public function shippo_connection( $new_option, $old_option ) {
$url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$data = array(
'label_key' => 'provider',
'provider' => 'shippo',
'provider' => 'yith_shippo',
'page' => $url,
);
if ( $new_option !== $old_option && ! empty( $new_option ) ) {
Expand All @@ -219,7 +219,7 @@ public function stripe_connection( $new_option, $old_option ) {
$url .= $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$data = array(
'label_key' => 'provider',
'provider' => 'stripe',
'provider' => 'yith_stripe',
'page' => $url,
);
if ( $new_option !== $old_option && ! empty( $new_option ) ) {
Expand Down

0 comments on commit b6ff461

Please sign in to comment.