Nestor Soriano
281ec18158
Undo the registration of old singletons in the DI container.
...
The container will in principle be used only to register classes
in the `src` directory.
Also, CustomerProvider class removed.
2020-07-24 09:20:24 +02:00
Nestor Soriano
312383ae47
First steps towards introducing a dependency injection framework.
...
- Add PHP League's Container package via Composer.
- Add an ObjectContainer class that encapsulates all the configuration
and insulates the codebase from the concrete DI engine used.
- Add an improved ReflectionContainer class that will allow to
register individual classes as singletons while autowiring.
- Use ObjectContainer to resolve the WooCommerce class, everything
instantiated with "new" inside it, and all singletons that are
usually obtained via WC() function.
- Introduce the CustomerProvider class.
- Introduce a service provider to resolve WC_Queue_Interface,
this replaces the WC_Queue class.
- Mark as obsolete all the replaced "instance()" methods,
and the entire WC_Queue class.
2020-07-24 09:20:21 +02:00
Joel Rowley
d6771dc681
Prevent fatal error in set_current_gateway with no WC session
2020-01-13 14:18:49 +05:30
Mike Jolley
30d3f1f49e
Filter get_available_payment_gateways for valid results
2019-03-08 11:37:47 +00:00
Mike Jolley
30c58b66cc
woocommerce_payment_gateways - ensure class is valid
2019-03-08 11:32:36 +00:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
Mike Jolley
660649e767
Don't force default token gateway active by default
2018-05-18 11:32:39 +01:00
Claudio Sanches
e79012e7e3
Fixed a typo
2018-03-22 12:06:36 -03:00
Claudio Sanches
d14615a6f7
Fixed includes/class-wc-payment-gateways.php PHPCS violations
2018-03-21 19:40:47 -03:00
Caleb Burks
c21cc2e8fe
Replace “Cheatin’ uh?” with friendlier messages
2018-02-07 17:01:12 -05:00
Mike Jolley
d46988b6a6
Improve add payment method logic
2017-08-07 12:39:16 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Mike Jolley
7d6992c1d1
get_payment_gateway_ids method
2016-05-26 15:46:14 +01:00
Mike Jolley
8e0e9a0cc2
Deprecate Simplify in favour of feature plugin
2016-04-19 13:14:13 +01: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
31bae0c19e
Hook up the tokenization API to the "add payment method" button in my account settings.
2016-03-01 11:49:41 -08:00
Mike Jolley
f183df1b13
Remove line breaks
2015-12-07 10:01:44 +00:00
Jeff Stieler
9635f244de
Avoid PHP errors when setting the current gateway.
2015-12-04 18:17:33 -07:00
Nicola Mustone
c9da4f928a
check if ABSPATH is defined
2015-11-06 10:22:19 +01:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
d363e810d8
Default to first found gateway
...
Closes #9378
2015-10-22 16:39:15 +01:00
Matty
19c052428d
Adds a space after (array) to comply with WordPress coding standards. #8960 .
2015-08-26 15:16:42 +02:00
Matty
7c679edf63
Adds a filter on the supported countries for Simplify Commerce, to add country support without the need to update WooCommerce itself. #8960 .
2015-08-26 14:35:55 +02:00
Matty
49b33ae89d
Adjusts Simplify Commerce country support to reflect support for Ireland. Closes #8960 .
2015-08-26 14:24:24 +02:00
Brent Shepherd
e689fe8f15
Add WC_Addons_Gateway_Simplify_Commerce_Deprecated
...
To manage compatibility with Subscriptions 1.n
2015-07-24 18:06:35 -07:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
justinstern
072e722406
Support gateway objects in the $load_gateways array
...
Rather than requiring $load_gateways to be the string class names of the
payment gateways to load, support client code returning the actual
gateway instance from the 'woocommerce_payment_gateways' filter. This
affords much more fine grained control over how, when, and how often, a
payment gateway is instantiated
2015-01-07 21:11:24 -05:00
Mike Jolley
2e398a3a79
Decoupled the order summary and payments area. Both are updated independently via ajax fragments and can be moved around via actions. TEMPLATES OVERRIDING THESE TEMPLATES WILL NEED TO UPDATE THEIR FILES.
...
Closes #5781
Closes #6570
2014-11-26 14:19:53 +00:00
Mike Jolley
b3782fa1a5
Removing Mijireh from core 2.3
2014-11-18 16:37:43 +00:00
claudiosmweb
08af487754
added simplify pre-orders support
2014-09-02 11:11:21 -03:00
claudiosmweb
54aa162fb4
renamed the simplify "subscriptions" class to "addons"
2014-09-02 10:21:42 -03:00
Mike Jolley
7a267d2e31
Simplify Commerce by Mastercard gateway
2014-08-15 11:50:53 +01:00
Mike Jolley
1c3b4fdc5c
Deprecate Mijireh - .org repo requested
...
Closes #6027
2014-08-15 11:50:53 +01:00
JDGrimes
0d472cead5
Update copy-pasted docs
...
Fixes #5707
2014-06-19 15:43:05 -04:00
Mike Jolley
c0c21c8364
Unify textdomains Closes #4814
2014-02-17 13:14:45 +00:00
thenbrent
d9639947da
Filter gateways for add_payment_method form
...
Part of #3396
2013-11-03 16:54:07 -08:00
Mike Jolley
355dd16962
Removed @coenjacobs helpers and cleaned up main clas
2013-09-12 14:41:02 +01:00
Mike Jolley
c75ea04c1c
classes -> includes
2013-06-11 14:25:30 +01:00