Justin Shreve
370166a6b0
Payment Token Data Store
2016-11-14 06:20:41 -08:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Mike Jolley
9c7abaedcb
Fixed unit tests
2016-06-22 12:29:23 +01:00
Mike Jolley
854793e5ea
Fix unit test by using available gateway
2016-05-27 11:29:19 +01:00
Mike Jolley
2fec0f425a
Remove namespaces from tests for 5.2 support
2016-03-23 12:14:13 +00:00
Justin Shreve
5dbfc7ae16
Fix Payment Token 'set default' methods. Makes sure we are using the user ID of the payment token, and not the current user.
...
Also makes sure to properly unset other tokens when a new one is set as default. Finally, we make sure that a user is always set in our payment token tests (which was broken in some WP versions which alerted us to some broken tests).
2016-03-14 09:41:37 -07:00
Justin Shreve
49c45c6dc1
Make sure the is_default/default token ability works correctly. Also adds a new method for getting a users default token. Fixes up some docblocks.
2016-03-01 11:49:42 -08:00
Justin Shreve
c0b74296ff
* Remove WC_Payment_Gateway_Form in favor of having a Payment_Gateway_CC and Payment_Gateway_eCheck
...
* Fix up some comments to match other comments in the WC code base
* Add some missing esc_* functions
* Add a gateway filter to get_customer_tokens + a test for it
2016-03-01 11:49:42 -08:00
Justin Shreve
5d8967c7d7
Prepare a list of payment methods for output on the payment methods "my account" page.
2016-03-01 11:49:40 -08:00
Justin Shreve
8f27a3b3af
Full set of tests for the payment token API
2016-03-01 11:49:40 -08:00