Created
January 2, 2025 07:50
-
-
Save xlplugins/7fae6de64b6d283860f413c2c9e63d2d to your computer and use it in GitHub Desktop.
Stripe Statement descriptor for non card transactions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Filter to add statement descriptor for payment intent request | |
*/ | |
add_filter( 'fkwcs_payment_intent_data', function ( $request ) { | |
if ( true !== in_array( 'card', $request['payment_method_types'], true ) ) { | |
$request['statement_descriptor'] = 'YOUR_DESCRIPTOR_HERE'; | |
} | |
return $request; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment