Charitable Stripe 1.4 Upgrade Notes
If you are updating to Charitable Stripe 1.4 from a previous version, there are some changes you should be aware of, particularly if you are using code to customize the plugin’s behaviour.
Things that were removed
charitable_stripe_charge_args filter was removed in 1.4. In our experience, there were two key ways this filter was used:
To change the statement descriptor.
The statement descriptor can now be customized via the Stripe settings page. Go to Charitable > Settings > Payment Gateways > Stripe and set “Format” to “Set a custom statement descriptor”, then specify your custom statement descriptor in the setting below.
To change the metadata that is sent to Stripe.
Changing the metadata can now be done with one of two filters.
Two classes were removed entirely:
Both of these classes are no longer required, as the new
Charitable_Stripe_Gateway_Processor_Payment_Intents classes now handle all gateway processing.
Some filters were removed:
charitable_stripe_charge_args(replacements mentioned above)
Some class methods were removed:
Charitable_Gateway_Stripe::add_hidden_token_field()was removed and replaced by
Charitable_Gateway_Stripe::set_submitted_stripe_token()was removed without replacement.
Charitable_Gateway_Stripe::redirect_to_donation_form()was removed without replacement.
Charitable_Gateway_Stripe::process_donation_legacy()was removed without replacement.
Things that were deprecated
The following methods were deprecated and will be removed in a future version:
In addition, some class properties were deprecated: