PHP Class WC_Legacy_Payment_Token

Payment Tokens were introduced in 2.6.0 with create and update as methods. Major CRUD changes occurred in 2.7, so these were deprecated (save and delete still work). This legacy class is for backwards compatibility in case any code called ->read, ->update or ->create directly on the object.
Author: WooCommerce
Inheritance: extends WC_Data
Show file Open project: woocommerce/woocommerce

Public Methods

Method Description
create ( ) Create a token.
read ( $token_id ) Read a token by ID.
update ( ) Update a token.

Method Details

create() public method

Create a token.
Deprecation: 2.7.0 - Use ::save instead.
public create ( )

read() public method

Read a token by ID.
Deprecation: 2.7.0 - Init a token class with an ID.
public read ( $token_id )

update() public method

Update a token.
Deprecation: 2.7.0 - Use ::save instead.
public update ( )