Justin Shreve
e3d7e206d0
Create a function for getting correctly formatted credit card type labels (MasterCard, American Express, etc)
2016-03-01 11:49:42 -08:00
Justin Shreve
75f2e6b85c
Fix up some comments and add uninstalling code.
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
fa5283d3df
Minify Simplify JS
2016-03-01 11:49:42 -08:00
Justin Shreve
e6a527547f
Add the ability for gateways to override the "new payment method" label.
2016-03-01 11:49:42 -08:00
Justin Shreve
cfe1da13d5
Remove todo comment for payment token tables
2016-03-01 11:49:41 -08:00
Justin Shreve
31bae0c19e
Hook up the tokenization API to the "add payment method" button in my account settings.
2016-03-01 11:49:41 -08:00
Justin Shreve
9db1f65196
Hook up the payment token API to the my account > payment methods tab
2016-03-01 11:49:41 -08:00
Justin Shreve
2e73486004
Add minified simplify js.
...
Enable payment gateways to show/force CVC on saved gateways.
2016-03-01 11:49:41 -08:00
Justin Shreve
898242c34d
Integrate simplify with the token API to save cards/customer data and use a saved card.
2016-03-01 11:49:40 -08:00
Justin Shreve
eff4e297f9
First pass at showing saved payment methods on checkout
2016-03-01 11:49:40 -08:00
Justin Shreve
defff6c5a9
Add the payment token tables to the database status report.
2016-03-01 11:49:40 -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
Justin Shreve
0061b36f3b
Make sure WP knows about the payment token meta table, and return null in payment tokens get if a token cannot be found.
2016-03-01 11:49:39 -08:00
Justin Shreve
df260c228d
Prevent notice from being displayed for user_id and remove static on echeck validate
2016-03-01 11:49:39 -08:00
Justin Shreve
7b57b4c4cc
Validate length for expiry - 4 chars for year and 2 for month.
2016-03-01 11:49:39 -08:00
Justin Shreve
214f077a91
Implement the rest of the WC_Data methods for creating, updating, reading, etc.
2016-03-01 11:49:39 -08:00
Justin Shreve
c87c99f847
Start implementing the WC_Data interface. Move update, create, save, etc to the actual token class, and have the controller return our tokens. This matches the shipping zone API closer.
2016-03-01 11:49:39 -08:00
Justin Shreve
f66b9e3681
Move meta (when creating) to its own sub meta array.
2016-03-01 11:49:39 -08:00
Justin Shreve
f66a8b6478
Rename customer_id to user_id to match how orders reference the user.
2016-03-01 11:49:39 -08:00
Justin Shreve
2fdb2ed2a8
Don't inheirt from eCheck https://github.com/woothemes/woocommerce/pull/10260#discussion_r51901526
2016-03-01 11:49:38 -08:00
Justin Shreve
4b93f23ac5
Add filters when we return tokens for customers or orders.
2016-03-01 11:49:38 -08:00
Justin Shreve
bfa9437a43
Rename the meta name _payment_tokens to remove the wc_ prefix, since this meta is a part of WC orders already.
2016-03-01 11:49:38 -08:00
Justin Shreve
72a4823f27
Pass the token object in the _deleted hook.
2016-03-01 11:49:38 -08:00
Justin Shreve
da9368e8be
Switch the payment token meta to use WP's metadata functions.
2016-03-01 11:49:38 -08:00
Justin Shreve
2e896ae24a
Extend WC_Payment_Token_CC from WC_Payment_Token_eCheck since they both share eCheck's fields as a base.
2016-03-01 11:49:38 -08:00
Justin Shreve
6112752836
Misc cleanup based on PR feedback:
...
* Remove $token_id parameter from WC_Order's add_payment_token. get_id() can be used to access the ID
* Rename our list of token ids from meta to $token_ids as it makes more sense
* Cleaned up/fixed some of the comments in WC_Payment_Token
* Some code formatting fixes
2016-03-01 11:49:38 -08:00
Justin Shreve
9741ab0751
Swap method_exists for is_callable.
2016-03-01 11:49:38 -08:00
Justin Shreve
f9b19234b0
Fix coding/WP standard for primary key definitions - there must be two spaces between the words PRIMARY key and the definition.
2016-03-01 11:49:37 -08:00
Justin Shreve
204922e2ae
Add methods for managing payment tokens associated with an order.
2016-03-01 11:49:37 -08:00
Justin Shreve
c5aec06a8a
First pass at a payment token API
2016-03-01 11:49:37 -08:00
Claudio Sanches
29141af873
Merge branch 'master' of github.com:woothemes/woocommerce
2016-03-01 14:14:04 -03:00
Claudio Sanches
1560dc81d8
Changelog for 2.5.3
2016-03-01 14:13:51 -03:00
Claudio Sanches
27a9b72d36
Merge pull request #10447 from jonkoops/tax-form-field-classes
...
Add wrapper classes to product category form fields.
2016-03-01 14:02:46 -03:00
Claudio Sanches
3e955f6086
[2.5] Create new function to prevent endpoint indexing
2016-03-01 13:45:25 -03:00
Jon Koops
a8cb7f7d00
Add wrapper classes to product category form fields.
...
Add wrapper classes to Display Type and Thumbnail fields of a product category in the admin. These classes follow the same naming convention as other taxonomy fields in the WordPress admin.
2016-03-01 15:37:01 +01:00
Mike Jolley
6f04ff1fa0
Replace size with length
...
Fixes #10444
2016-03-01 13:08:25 +00:00
Claudio Sanches
256be9b028
[2.5] Allow send array as webhooks callbacks, closes #10424
2016-02-29 16:23:45 -03:00
Claudio Sanches
19019f75ca
[2.5] Stop to remove the 'all' from wp_count_comments(), closes #10441
2016-02-29 13:35:24 -03:00
Mike Jolley
d4df89e1b9
[2.5] Don't duplicate rating and review counts
...
Fixes #10440
2016-02-29 13:36:32 +00:00
Mike Jolley
8edf6d9286
Noindex endpoints
...
Closes #10433
2016-02-29 12:52:45 +00:00
Mike Jolley
14e03038e3
Show customer details for logged in users only.
...
Possibly for [2.5] after confirming with @claudiosmweb and
@justinshreve.
#10433
2016-02-29 12:43:19 +00:00
Mike Jolley
fa2280f3f8
Add notice on fail
2016-02-29 12:33:09 +00:00
Mike Jolley
09ef555e5a
[2.5] Combine update post calls
2016-02-29 12:24:02 +00:00
Mike Jolley
b9c423570f
Merge pull request #10439 from shivapoudel/user-list
...
Tweaks API list table User column
2016-02-29 12:17:39 +00:00
Shiva Poudel
4a0e160c3b
Since shop manager have no right to edit admin profile
2016-02-28 21:07:51 +05:45
Shiva Poudel
9dec203721
By default display_name is user_login, no target for database change ;)
2016-02-28 21:04:57 +05:45
Claudio Sanches
22a8743e1d
Merge pull request #10437 from coderkevin/fix_state_input
...
Fix state input box for cart shipping. Fixes #10408
2016-02-27 12:49:52 -03:00
Kevin Killingsworth
7fc0932e33
Fix state input box for cart shipping.
...
Input box wasn't reappearing when switching from a hidden input
to a text input. Changed the JQuery selector to go off the input
type.
2016-02-27 00:50:05 -06:00