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


Top ↑

Return Return

(null|string) Payment Method ID if found, else null


Top ↑

Source Source

File: includes/gateways/stripe/includes/card-actions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.8 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.