Skip to content

Commit

Permalink
Merge pull request #536 from takayukister/dev/5.5
Browse files Browse the repository at this point in the history
Introduce wpcf7_stripe_create_payment_intent_params filter hook
  • Loading branch information
takayukister authored Aug 30, 2021
2 parents 5d76e41 + 79d7d23 commit 915726f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/stripe/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function create_payment_intent( $args = '' ) {
unset( $args['receipt_email'] );
}

$args = apply_filters(
'wpcf7_stripe_create_payment_intent_params',
$args
);

$endpoint = 'https://api.stripe.com/v1/payment_intents';

$request = array(
Expand Down

0 comments on commit 915726f

Please sign in to comment.