Skip to content

Commit

Permalink
Merge pull request #88 from razorpay/revert-fix-confirmation
Browse files Browse the repository at this point in the history
PO-238 reverting confirmation hook
  • Loading branch information
abdulwahidsharief authored Nov 7, 2024
2 parents 7a51460 + 1b44670 commit da1bc56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-gf-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static function get_instance()
public function init_frontend()
{
parent::init_frontend();
add_filter('gform_confirmation', array($this, 'generate_razorpay_order'), 10, 4);
add_action('gform_after_submission', array($this, 'generate_razorpay_order'), 10, 2);
}

public function plugin_settings_fields()
Expand Down Expand Up @@ -559,7 +559,7 @@ public function is_callback_valid()
return true;
}

public function generate_razorpay_order($confirmation, $form, $entry)
public function generate_razorpay_order($entry, $form)
{
$feed = $this->get_payment_feed( $entry );
$submission_data = $this->get_submission_data( $feed, $form, $entry );
Expand Down

0 comments on commit da1bc56

Please sign in to comment.