Commit Graph

112 Commits

Author SHA1 Message Date
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
Claudio Sanches e8a347ed18 Created the simplify commerce hosted payments return handler 2014-12-10 10:07:45 -02:00
Claudio Sanches 1da03a170c Created initial simplify commerce hosted payments flow and options 2014-12-09 17:11:55 -02:00
claudiosmweb 8413d68de6 Added Simplify Commerce minified js file 2014-11-14 09:58:21 -02:00
claudiosmweb c683720b02 Removed old ajax_loader_url param from all js files 2014-11-14 09:52:44 -02:00
Mike Jolley 2b8be95360 Remove # (hash) from get_order_number and add to strings instead as needed.
Most places use Order #X
Some places use Order Number: X

Both are now valid.

Fixes #6518
2014-10-24 14:53:43 +01:00
doublesharp 8dae054e0c Update class-wc-addons-gateway-simplify-commerce.php
Use new $order->get_status() in lieu of legacy $order->status to support the new post_status format in WC 2.2
2014-10-18 01:04:40 -07:00
mgiulio ae728acc63 Use wc_get_order in simplify-commerce 2014-09-24 17:30:14 +02:00
shivapoudel bc5156ff4a Absolute path and Indentation fix for includes/gateways/*.php :) 2014-09-21 01:27:58 +05:45
Mike Jolley 27a20dd80e Docblock changes 2014-09-08 16:35:40 +01:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
Max Rice ee25790fb9 Don't load simplify javascript when gateway isn't available 2014-09-04 20:27:43 -04: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 d87688f857 Simplfy typo 2014-08-21 17:03:16 +01:00
Mike Jolley c829788ebc Set simplify user agent 2014-08-20 16:47:01 +01:00
claudiosmweb eb679fad14 changed the simplify keys order 2014-08-15 11:43:10 -03:00
claudiosmweb 3ad0e63be0 improved the simplify scripts 2014-08-15 11:40:19 -03:00
claudiosmweb d4fb1df412 fixed simplify ssl notification url 2014-08-15 11:20:18 -03:00
Mike Jolley da483198f8 Simplify icons 2014-08-15 11:50:53 +01:00
Mike Jolley 7a267d2e31 Simplify Commerce by Mastercard gateway 2014-08-15 11:50:53 +01:00