From 79d7d232fedbce3405842bb4736b9e621506e2ce Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Mon, 30 Aug 2021 18:03:41 +0900 Subject: [PATCH] Introduce wpcf7_stripe_create_payment_intent_params filter hook #465 --- modules/stripe/api.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/stripe/api.php b/modules/stripe/api.php index aae8b36d..def87201 100644 --- a/modules/stripe/api.php +++ b/modules/stripe/api.php @@ -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(