Skip to content

Commit

Permalink
Adds a new hook in the payment process for third parties
Browse files Browse the repository at this point in the history
  • Loading branch information
rvola committed Oct 23, 2023
1 parent 3a4c574 commit d56108b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gateway/PayplugResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function process_payment($resource, $is_payment_with_token = false, $sour
return;
}

// Third party hook
\do_action('payplug_gateway_payment_response_third', $order_id, $resource, $is_payment_with_token, $source);

/**
*
* Checking if it is coming from the order confirmation page or the IPN
Expand Down

0 comments on commit d56108b

Please sign in to comment.