edds_customer_get_default_payment_method( int $user_id, array $payment_methods = false )
Checks if customer has default payment method.
Description Description
Parameters Parameters
- $user_id
-
(Required) WordPress user ID.
- $payment_methods
-
(Optional) Array of payment methods for user, default = false will fetch payment methods.
Default value: false
Return Return
(null|string) Payment Method ID if found, else null
Source Source
File: includes/gateways/stripe/includes/card-actions.php
Changelog Changelog
Version | Description |
---|---|
2.8 | Introduced. |