Commit Graph

239 Commits

Author SHA1 Message Date
Mike Jolley f19ba7a755 Send line item when no name is set
Closes #8666
2015-07-28 11:41:37 +01: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
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 1614696996 Fixed duplicated docblock 2015-07-22 12:05:25 -03:00
Claudio Sanches 6cac5e0f47 PayPal - Remove decimals when order currency is HUF, JPY or TWD, closes #8590 2015-07-22 11:43:12 -03: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
Mike Jolley 6676ed08fa 500 response on IPN fail
Closes #8519
2015-07-06 17:48:46 +01:00
Mike Jolley 18c6a940f1 Merge branch 'onboarding'
Conflicts:
	assets/css/admin.css
	assets/css/select2.css
	assets/css/woocommerce-layout.css
	assets/css/woocommerce.css
	assets/js/admin/order-backbone-modal.min.js
	includes/admin/class-wc-admin-help.php
	includes/admin/class-wc-admin.php
	includes/admin/views/html-admin-page-status-report.php
	includes/admin/views/html-notice-install.php
	includes/admin/views/html-notice-template-check.php
	includes/admin/views/html-notice-theme-support.php
	includes/admin/views/html-notice-tracking.php
	includes/class-wc-install.php
	includes/class-wc-language-pack-upgrader.php

includes/shipping/international-delivery/class-wc-shipping-international
-delivery.php
2015-07-04 23:11:12 +01:00
Andrew Wikel 968586f2ed Update to reflect current PayPal menu structure
Just update instructions to be more accurate.
2015-07-01 14:53:16 -05:00
Diego Zanella 1faae5f4f5 Fixed reference in PayPal IPN class
* Using __CLASS__ in valid_response() prevents inheritance, as __CLASS__ is always resolved as the parent class. A descendant class would have to copy/paste the whole block of code for it to work correctly. Solution: replaced it with $this, as the valid_response() method is not static, and neither are any of the "payment_status_" methods.
2015-06-10 19:17:37 +01:00
Mike Jolley f3951a7490 [2.3] Fallback to serialized data if safe. 2015-06-10 18:28:34 +01:00
Mike Jolley 21773ff9ba [2.3] JSON encode/decode PayPal response 2015-06-10 18:28:33 +01:00
Claudio Sanches fa026ea49d Normalize the "Order #" #8305 2015-06-10 12:09:18 -03:00
Claudio Sanches 9eb3b6ddf9 Changed all requests with wp_remote_* to wp_safe_remote_* 2015-06-01 13:28:55 +01:00
Ben Bidner 1aa020ca57 fixes undefined constant ('error_code' > '$error' typo) 2015-06-01 12:52:01 +01:00
Claudio Sanches 88596b595e Improved PayPal get_icon_url() method 2015-05-27 13:23:21 -03:00
Mike Jolley 4fd9e1daf2 [2.3] Improved get_icon_url()
Closes #8211
2015-05-27 17:13:36 +01:00
Mike Jolley cc213de455 Add note and system status link to PP settings
Closes #8158
2015-05-15 14:50:48 +01:00
Mike Jolley d19117a108 When paypal payment is on hold, reduce stock and empty cart.
Closes #8145
2015-05-13 14:28:17 +01:00
Claudio Sanches 431768df61 Improved the paypal logo for JP, closes #8119 2015-05-06 18:17:19 -03:00
Mike Jolley 5a92126a39 Remove all sslverify false
Closes #8058 cc @claudiosmweb @roykho @barrykooij
2015-05-05 13:39:34 +01:00
Mike Jolley 5f67a63b43 woocommerce_paypal_refund_request filter
Closes #8111
2015-05-05 12:29:07 +01:00
Mike Jolley 0e66f85efe Merge pull request #8092 from roykho/paypal
log paypal standard transaction fees closes #8091
2015-05-01 15:34:32 +01:00
Mike Jolley 3b3845872f Change deprecated args
Closes #7210
2015-05-01 14:52:51 +01:00
roykho c23b68dc93 revised to not hide meta and sanitize 2015-04-30 21:05:46 -07:00
roykho 7c074c75e2 log paypal standard transaction fees closes #8091 2015-04-30 20:29:02 -07:00
Mike Jolley 54fa1e34d3 Show notice when pages don't exist, and set gateway defaults 2015-04-29 13:21:01 +01:00
Claudio Sanches 298d5e90ed [2.3] Fixed paypal about URL for Switzerland #8030 2015-04-27 10:37:35 -03:00
Claudio Sanches ed919ae2f5 [2.3] Fixed paypal about URL for Malta, closes #8030 2015-04-24 10:41:13 -03:00
MindyPostoff 7418fd6c8d Update class-wc-gateway-cod.php
Prevent confusion that "Enable COD for virtual orders" will actually enable the payment method
2015-04-22 16:41:51 -04: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
Andrew Benbow 196448dc0b Update class-wc-gateway-paypal-request.php 2015-04-11 16:14:27 +01:00
Andrew Benbow 45c76cd0cb Update class-wc-gateway-paypal-request.php 2015-04-10 15:47:28 +01:00
Mike Jolley 2e2ec824f0 Set field required class
Fixes #7859
2015-04-10 15:43:39 +01:00
Mike Jolley 33d94aaea4 [2.3] Use single logging method for paypal classes
Closes #7801
2015-04-09 12:00:42 +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
Diego Zanella 7f525c30ce Modified PayPal Standard gateway to make it easier to extend
* Replaced all "private" properties and methods with "protected" ones. This will make it easier to extend the gateway classes, without having an impact on its normal usage.
2015-03-19 18:26:28 +00:00
Mike Jolley 6165d509c7 Use debug option, not testmode
Fixes #7696
2015-03-13 09:38:09 +00:00
Sam Bohler 91e313b924 Fixed DocBlock annotations 2015-03-12 16:39:47 -04: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