Commit Graph

70 Commits

Author SHA1 Message Date
Mike Jolley c757fd9940 Merge branch 'shipping-zone-modals'
# Conflicts:
#	assets/css/admin.css
#	assets/css/admin.scss
2016-03-31 15:20:06 +01:00
Mike Jolley c9dfbab9a2 Simplify - strip dashes from zip
Fixes #10604
2016-03-31 12:27:34 +01:00
James Koster f926f8e9c9 replaces .png credit card icons with .svg alternatives. closes #9675 2016-03-07 12:15:42 +00: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 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 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
Mike Jolley 6f04ff1fa0 Replace size with length
Fixes #10444
2016-03-01 13:08:25 +00:00
Fredrik Forsmo 2bee73f031 Improve docblock comments in Simplify Commerce classes
* Added comment to `get_icon` method
* Added missing return tag to `is_available` method
* Fix return type typo `wp_error => WP_Error`
* Renamed integer to int
2016-01-05 20:27:24 +01:00
Claudio Sanches 3cbe88082f Fixed simplify commerce admin notices position, closes #9911 2015-12-28 16:07:05 -02:00
Mike Jolley 4595befb76 Pass product type with variation bulk edit
Closes #9570
2015-11-17 15:25:48 +00:00
Mehdi Esmaeili 101c7f47e1 Better Documentation: Put throws tag 2015-11-17 16:21:42 +03:30
Claudio Sanches 1512d448c1 Removed name param from SimplifyCommerce.generateToken 2015-11-09 22:49:53 -02:00
roykho 84436f4a11 Fix hosted payments address fields were not passing to simplify 2015-11-09 16:37:55 -08:00
roykho b49b0b0133 Fix - address fields were not properly being passed to Simplify via token 2015-11-09 15:36:52 -08:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Claudio Sanches 4f9e4a87e8 Updated Simplify Commerce lib to version 1.2.0, closes #9420 2015-10-26 11:27:14 -02:00
Mike Jolley 97e28d7f49 Added wc_checkout_is_https() function helper and added to simplify class
Closes #9408
2015-10-22 12:30:30 +01:00
Claudio Sanches 8ed7754e49 Fixed strings with "MasterCard", closes #9142 2015-09-15 22:06:02 -03:00
Brent Shepherd f52316856c Fix changing failing subscription payment method 2015-08-20 13:51:08 -07:00
George Stephanis ffd2b2de30 Pinking Shears. 2015-08-17 17:35:10 -04:00
Brent Shepherd aaaa5720f3 Simplify: Add support for multiple subscriptions
Nothing to see here. Easiest feature support ever.
2015-07-24 18:18:00 -07:00
Brent Shepherd 694929b0bf Simplify: Update change failling payment method
For Subscriptions v2.0.

 * Use new 'woocommerce_subscription_failing_payment_method_updated_' hook
 * Use new wcs_is_subscription() method to run process_subscription() when the
   transaction is for a subscription object.
 * Save the card and customer IDs on the 'shop_subscription' post from the renewal
   order rather than saving it on the order which purchased the subscription.
2015-07-24 18:17:57 -07:00
Brent Shepherd e6ccf437e9 Simplify: Update order_contains_subscription()
To use Subscriptions 2.0 methods to avoid deprecated notices and move
use of old methods to WC_Addons_Gateway_Simplify_Commerce_Deprecated
2015-07-24 18:17:57 -07:00
Brent Shepherd 73999c5daf Simplify: Remove meta from resubscribe orders
In Subscriptoins v2.0. Also deprecate the removal of it in 1.n, where
resubscribe orders were called "parent renewal orders".
2015-07-24 18:17:57 -07:00
Brent Shepherd 089485b3bf Simplify: Update renewal payments for Subs v2.0
* Add new save_subscription_meta() method to allow us to save customer ID both
  in Subscriptions 1.n on the original order and in 2.0 on the subscription/s
  created for the order)
* Use the new 'woocommerce_scheduled_subscription_payment_simplify' hook and
  deprecate use of the old 'scheduled_subscription_payment_simplify' hook by
  moving it to the WC_Addons_Gateway_Simplify_Commerce_Deprecated class
* Use core WC methods on the renewal order passed to scheduled_subscription_payment()
  to process the payment rather than having to call special Subscriptions API methods
  like WC_Subscriptions_Manager::process_subscription_payments_on_order() and
  WC_Subscriptions_Manager::process_subscription_payment_failure_on_order()
* Use the original order's total to determine the amount to charge up-front to
  save having to call WC_Subscriptions_Order::get_total_initial_payment()
* Use a description for recurring payments that is consistent with standard orders,
  i.e. "{Site Name} - Order {order_id}" instead of a description that does not include
  the renewal order's ID. This helps link payments to orders (which can then be traced
  to subscription/s).
2015-07-24 18:17:36 -07:00
Brent Shepherd 4c8e3788b3 Simplify: Support admin payment method changes
A new feature of Subscriptions v2.0.
2015-07-24 18:17:28 -07:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Claudio Sanches 89cef9ff02 Introduces methods to WC_Abstract_Order for get customer full name
New methods:

WC_Abstract_Order::get_formatted_billing_full_name()
WC_Abstract_Order::get_formatted_shipping_full_name()

closes #8535

cc: @mikejolley
2015-07-08 18:00:19 -03:00
Ben Bidner 1aa020ca57 fixes undefined constant ('error_code' > '$error' typo) 2015-06-01 12:52:01 +01:00
Claudio Sanches a344fae67f Improved simplify commerce for free subscriptions 2015-04-15 09:55:35 -03:00
Claudio Sanches 8914594534 Fixed the simplify subscription payment when is a free trial 2015-04-15 09:48:56 -03:00
Claudio Sanches 1dadbb2842 Fixed coding standards for #7879 2015-04-13 12:37:22 -03:00
Claudio Sanches 14ed7137d2 Fixed subscription free trial period for simplify commerce 2015-04-13 10:46:11 -03:00
Mike Jolley 2e2ec824f0 Set field required class
Fixes #7859
2015-04-10 15:43:39 +01:00
Danny van Kooten 88f2e690bb Changing all inefficient selectors of $('body') to $(document.body), which is about 80% faster (and even more on mobile, see https://jsperf.com/jquery-body-vs-document-body-selector/2 ). 2015-04-03 14:21:47 +02:00
Nicola Mustone d2af01df5b scrutinizer suggested tweaks 2015-03-27 16:15:40 +01:00
Brent Shepherd 028cea41d3 Make sure Simplify customer ID is set on renewals
So that if the renewal is for a failed payment, the the new value is set
on the renewal order's `'_simplify_customer_id'` post meta value and can
be copied back to the original order in `update_failing_payment_method()`.
2015-03-11 14:50:25 -07:00
Brent Shepherd 6d339241a2 Catch exception on renewal payment with Simplify 2015-03-11 14:49:57 -07:00
John Clause 6c9f863c04 replaced get_bloginfo('name') with get_bloginfo('name','display') 2015-02-17 20:56:18 -07:00
Paul Wilde c913316f8b Introduce wc_get_page_permalink. 2015-02-15 19:13:22 +00:00
Claudio Sanches 0c6e079690 Simplify commerce default payment mode as standard 2015-02-13 12:04:05 -02:00
Scrutinizer Auto-Fixer de06d17c6d Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-02-03 14:32:10 +00:00
Claudio Sanches 0376da2ea9 Added hosted payments support for pre-orders and subscriptions 2015-01-12 11:43:27 -02:00
Claudio Sanches b7eafa1c49 Added the new redirect-url param in the simplify commerce button 2015-01-12 09:53:19 -02:00
Claudio Sanches 7cf69a337b Updated the hosted payments option description on simplify commerce gateway 2014-12-12 01:56:28 -02:00
Claudio Sanches cb7cd8f765 Fixed the process order status method in simplify commerce 2014-12-10 15:04:57 -02:00