You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add method to fetch and cache all saved payment methods for a customer (#4567)
* Basic get_all_payment_methods() implementation
* Ensure we clear the new _all payment methods cache
* Always send expand flags for SEPA
* Refactor logic to get customer UPE tokens
* Refactor WC_Stripe_Subscriptions_Trait->maybe_render_subscription_payment_method() to use get_all_payment_methods()
* Revert "Refactor WC_Stripe_Subscriptions_Trait->maybe_render_subscription_payment_method() to use get_all_payment_methods()"
This reverts commit c622d76.
* Reinstate SEPA logic
* Remove unnecessary array_merge() call
* Changelog
* Use Payment Method Configuration to identify active payment methods
* Add link to Stripe docs for limit argument
* Use one-line isset() for missing customer checks
* @param string[] $payment_method_types The payment method types to look for using Stripe method IDs. If the array is empty, it implies all payment method types.
755
+
* @param int $limit The maximum number of payment methods to return. If the value is -1, no limit is applied.
0 commit comments