-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create filters for bank statement descriptors #2841
Comments
Add filters to statement descriptors. Closes woocommerce#2841
Hi, |
This is still needed but the PR has not being dealt with. Anyway, on the new Stripe checkout experience I think the bank descriptor can no longer be set on the plugin and comes from the Stripe website. |
Hi, |
This is still needed but the PR has not being dealt with. |
Scenario: Multi-lingual shop (in this case WPML, but it could be anything else) with a different domain name on each language.
For Spanish the bank statement should be tortillas.es and for Portuguese it should be pasteisdenata.pt
Today, it's possible to use the
wc_stripe_generate_payment_request
filter, but this would not make sure that the descriptors would go through theWC_Stripe_Helper::get_dynamic_statement_descriptor
and/orWC_Stripe_Helper::clean_statement_descriptor methods
onWC_Stripe_Payment_Gateway::generate_payment_request
.I suggest creating two filters on
$statement_descriptor
and$short_statement_descriptor
at the beginning of theWC_Stripe_Payment_Gateway::generate_payment_request
method.The text was updated successfully, but these errors were encountered: