Class WC_Braintree_Payment_Method_Conversion
Class that retreives Braintree payment methods periodically and updates the WC payment tokens table.
Methods summary
public static
|
|
public static
|
#
update_user_payment_tokens( $user_id = '' )
Hooked in to init action. Retrieves the user's payment methods stored in Braintree and stores them in the WC payment tokens table if it doesn't already exist. |
public static
|
|
private static
|
|
public static
|
#
get_new_payment_method( string $payment_method, WC_Order $order )
Return the new payment method to prevent errors when orders reference deprecated gateway ID's. The order meta is updated if a deprecated gateway ID is used. |