Skip to content

Commit

Permalink
Merge pull request #83 from razorpay/fix-confirmation
Browse files Browse the repository at this point in the history
PO-218 changed confirmation hook
  • Loading branch information
abdulwahidsharief authored Sep 30, 2024
2 parents 372de2e + 9e57802 commit 092e58d
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 @@ -157,7 +157,7 @@ public static function get_instance()
public function init_frontend()
{
parent::init_frontend();
add_action('gform_after_submission', array($this, 'generate_razorpay_order'), 10, 2);
add_filter('gform_confirmation', array($this, 'generate_razorpay_order'), 10, 4);
}

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

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

0 comments on commit 092e58d

Please sign in to comment.