Akeda Bagus
0b416439c8
Fixed all typos of all files in includes/ directory.
...
Scanning and fixing were done automatically by codespell,
https://github.com/lucasdemarchi/codespell .
2017-03-29 00:58:51 +07:00
Mike Jolley
129293ab6f
Remove array filter
...
No args should be null/not set since all args defined by WC have values.
Closes #13786
2017-03-28 11:49:27 +01:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Jon Surrell
e4d5886427
Replace log `tag` with log `source`
2016-12-29 11:58:43 +01:00
Jon Surrell
03889f77cc
Update use of deprecated wc_get_log_file_path
2016-12-29 11:58:43 +01:00
Jon Surrell
aee5917440
Change wc_safe_dump to wc_print_r
...
Match print_r arguments, this makes usage obvious.
2016-12-29 11:58:43 +01:00
Jon Surrell
66b0620f7c
remove print_r calls from paypal handler
2016-12-29 11:58:42 +01:00
Jon Surrell
96f9de2106
update paypal gateway logs
2016-12-29 11:58:42 +01:00
Jon Surrell
36201d38ec
Update paypal gateway log method
2016-12-29 11:58:42 +01:00
Mike Jolley
23c500986e
Limit lengths of PayPal Args
2016-12-20 10:58:10 +00:00
Mike Jolley
dcc47e395f
Add email for case #12603
...
Closes #12603
2016-12-15 15:21:53 +00:00
Mike Jolley
36f7c3c810
woocommerce_paypal_line_item filter
...
Closes #12554
2016-12-09 16:59:29 +00:00
Mike Jolley
edfc54dff5
Add image_url setting to PayPal Standard.
2016-12-08 12:28:05 +00:00
Mike Jolley
b620a8c8fb
Move paypal CMD to end of post vars.
2016-11-25 11:41:49 +00:00
Claudio Sanches
10f10d1644
[2.6] Ensure that PayPal always receive float amounts, closes #12291 ( #12293 )
2016-11-10 10:18:35 +00:00
Rami Yushuvaev
9469673c05
a11y: remove unneeded `title` attributes
2016-11-04 17:40:15 +02:00
Mike Jolley
32e814eef1
Use all paid statuses in $customer->get_total_spent()
2016-11-03 11:27:03 +00:00
Claudio Sanches
fa0c710802
i18n <a> links, closes #12195
2016-10-27 15:36:24 -02:00
Rami Yushuvaev
140d0efb99
i18n: Avoid using HTML tags in translation strings ( #12166 )
...
* i18n: Remove some HTML tags from translation strings
* i18n: simpler translation string
* i18n: translations strings with surrounding `<strong>` HTML tags should be moved outside the translation string
* i18n: Avoide using `<code>' HTML tags in translation strings
* i18n: Split the notice to avoide using HTML tags in translation strings
2016-10-24 21:56:37 -02:00
Claudio Sanches
07ae13c51b
Fixed coding standards recommended by WPCS
2016-10-13 16:51:18 -03:00
Mike Jolley
5304d6ef9d
Add filters and include meta in item names sent to paypal
...
Closes #12022
2016-10-13 15:18:01 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Aristeides Stathopoulos
e07511502d
Additional coding-standards fixes.
2016-09-02 03:26:24 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
58b9df6564
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis
2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos
32ddc22465
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterComma
2016-08-27 05:14:16 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
7cf75f5085
Remove use of deprecated functions
2016-08-22 16:57:54 +01:00
Mike Jolley
95b11606fc
get_product_from_item -> get_product
2016-08-22 16:51:24 +01:00
Thi
43cd8c9578
Add PayPal Here as a valid transaction type
2016-08-20 18:19:49 +09:00
Mike Jolley
190cd0bf86
Remove direct access of item props in admin
2016-08-19 15:08:00 +01:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Mike Jolley
cfe28c9b25
Made WC_Logger pluggable via wc_get_logger function.
...
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley
007a767657
billing_phone
2016-08-05 16:09:04 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
693e5ece36
billing_company
2016-08-05 16:03:09 +01:00
Mike Jolley
1c18c2f44a
billing_first_name
2016-08-05 15:58:44 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
9181c107a8
get_currency
2016-08-05 15:49:17 +01:00
Mike Jolley
806f70416d
Don't run IPN code if processing or completed.
...
Closes #11566
2016-08-01 12:02:49 +01:00
Mike Jolley
a5ed0e43fd
Adjustments from feedback
2016-08-01 11:51:27 +01:00
Mike Jolley
d45be39758
Capture and refund support
2016-07-27 16:55:42 +01:00
Mike Jolley
a816e8a92d
APIClass and hook basics
2016-07-27 13:48:10 +01:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
Mike Jolley
e5634c6946
Do not sanitize passwords
...
Closes #11473
@claudiosmweb
2016-07-19 16:43:15 +01:00
Claudio Sanches
7b6bd21810
Updated PayPal credentials docs URL, closes #11406
2016-07-12 09:33:45 +02:00
Spreeuw
3ca95317fc
fix fatal error for non-existing products
...
Similar to #9363
2016-06-16 20:11:12 +02:00
Mike Jolley
4bbd92d045
[2.6] PayPal does not allow free products, but paid shipping. Workaround by sending shipping as a line item if it is the only cost.
...
Fixes #11121
2016-06-14 22:57:56 +01:00
Mike Jolley
3b3872da3f
More logging
2016-04-18 21:06:33 +01:00
Mike Jolley
021a242e06
PDT charset conversion
2016-03-17 15:53:13 +00:00
Mike Jolley
05179ea253
Removed debug code
2016-03-15 15:58:15 +00:00
Mike Jolley
5fe501e436
Convert encoding
...
#10562
2016-03-15 15:58:03 +00:00
Mike Jolley
e664f0f82b
Log PDT data correctly, including payer details
...
Closes #10546
2016-03-15 12:18:52 +00:00
Mike Jolley
1fecd7efe2
If shipping < 999.99, use 'shipping' arg when passing values to PayPal.
...
Closes #9852
2016-02-08 13:10:15 +00:00
Claudio Sanches
899d961dd9
Improved WC_Gateway_Paypal::get_icon_url() for #10084
2016-01-21 19:28:14 -02:00
Shohei Tanaka
70be00cbf7
Modification of PayPal link errors and redirect
...
Those countries are redirect from paypal-popup to home.
BE,CZ,DK,IT,NL,NO,SE,ES
Those countries are error happened.
HU, JP, TR
2016-01-16 14:15:42 +09:00
Claudio Sanches
a1871e288c
Merge pull request #9990 from frozzare/docs/class-wc-gateway-paypal
...
Improve docblock comments in WC_Gateway_Paypal classes
2016-01-06 11:30:37 -02:00
Mike Jolley
918b84ee3a
Strip tags from subject
...
#9706
2016-01-06 12:38:22 +00:00
Fredrik Forsmo
9ae4f4e7ab
Improve docblock comments in WC_Gateway_Paypal classes
...
* Added comments to `get_icon` method
* Added missing param tags to various methods.
* Renamed integer to int
* Renamed boolean to bool
2016-01-05 20:19:12 +01:00
Shiva Poudel
66e3581308
Tweak paypal gateway docblocks and comments
2016-01-05 11:08:01 +05:45
Mike Jolley
f408dcdabc
RAW escape return URLs in PayPal Standard
...
Tested with default and pretty permalinks. Fixes #9638
2015-11-27 14:00:14 +00:00
Mike Jolley
d03020d7c6
escape and add to both notifications
2015-11-27 13:04:24 +00:00
David Anderson
febaeb8b63
Include link to order in PayPal refund email, for convenience
...
Includes a link to the relevant order in the PayPal refund email, so that the shop owner doesn't have to manually bring up the dashboard, search the for order, and click through.
2015-11-25 22:07:52 +00:00
Scrutinizer Auto-Fixer
08efaf84df
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-11-05 16:05:03 +00:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Gabor Javorszky
2fce596b25
Fix docblock for validate_receiver_email
2015-10-30 15:11:41 +00:00
Mike Jolley
871c8591f0
Number format the discount
...
Closes #9462
2015-10-29 15:23:34 +00:00
Claudio Sanches
eef347a5ad
Added textdomain to PayPal refund error message
2015-10-06 11:03:49 -03:00
Mike Jolley
54d5fc20ab
Improve refund error messages for PayPal
...
Fixes #8945
2015-10-06 14:43:36 +01:00
Silicon Forks
b73fce8dca
Trim leading plus sign and "1" digit from US/CA phone numbers
...
Fixes #9156 .
2015-09-17 18:58:49 -03:00
Mike Jolley
2023910400
Log refund response.
2015-09-02 11:36:42 +01:00
George Stephanis
c938fa24da
More missing esc_attr calls, :(
2015-08-05 15:17:52 -04:00
Mike Jolley
f19ba7a755
Send line item when no name is set
...
Closes #8666
2015-07-28 11:41:37 +01: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
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
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
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
33d94aaea4
[2.3] Use single logging method for paypal classes
...
Closes #7801
2015-04-09 12:00:42 +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
Dean Taylor
a841817b6a
Fix "Undefined index: test_ipn" PHP notice
2015-03-05 22:58:22 +00:00
Claudio Sanches
e770d1a2e5
Fixed extra spaces
2015-02-13 17:14:12 -02:00
Claudio Sanches
74d8d4ed61
Fixed the PayPal URL for ZA, closes #7417
2015-02-13 16:02:00 -02:00
Mike Jolley
afff86c033
Pass correct shipping cost to PayPal.
2015-02-11 22:17:58 +00:00
Mike Jolley
b2e979640c
Removed unused vars
2015-02-03 16:24:01 +00: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
Mike Jolley
16eb1facd9
Add link to payment_status_canceled_reversal Closes #7267
2015-02-02 14:49:30 +00:00
Brent Shepherd
3702b77c74
Fix "Undefined variable: identity_token"
...
And make sure the identify token is passed to `WC_Gateway_Paypal_PDT_Handler`
2015-01-28 10:59:48 -08:00
Mike Jolley
f3cc45cfa9
Grammar corrections
...
Closes #7216
2015-01-28 17:15:48 +00:00
Mike Jolley
8a42b1c211
Revert earlier change where PayPal IPN was on or off depending on PDT.
...
Because IPN is used for future events such as refunds it should not be
disabled. @claudiosmweb
2015-01-28 17:15:48 +00:00
Mike Jolley
7e1ca1d3a3
Option to choose EITHER PDT or IPN
...
Closes #7208
2015-01-26 12:58:33 +00:00
Claudio Sanches
b55ecea6ba
Used wp_unslash() instead of stripslashes_deep()
...
The WordPress documentation recommends:
"This should be used to remove slashes from data passed to core API that expects data to be unslashed. Use this instead of stripslashes_deep()."
2015-01-13 17:54:10 -02:00
Claudio Sanches
9a6dc0bf41
Added select2 for all settings fields
2015-01-12 15:45:47 -02:00
Mike Jolley
3c82331a8b
Store discount 'tax' to show discounts on prices including tax more accuratly
...
Also deprecated some functions named after having 2 levels of discounts.
2014-11-25 13:05:03 +00:00
Mike Jolley
4a8c541fbf
Remove 'order' discounts from classes
2014-11-25 11:05:14 +00:00
Mike Jolley
db13b2224f
Fix refund class
2014-11-20 15:03:46 +00:00
claudiosmweb
8eeb6fc204
Removed more some unused code
2014-11-19 22:43:09 -02:00
Mike Jolley
e630e64cb7
Flat rate shipping tweaks + inline instructions
2014-11-19 22:22:35 +00:00
claudiosmweb
9b16425142
Fixed some coding style issues
2014-11-19 17:01:06 -02:00
Mike Jolley
ef7693cb4b
valid_response method
2014-11-19 18:26:29 +00:00
Mike Jolley
263134d395
ob_clean and header is unnecessary - default is 200
2014-11-19 18:26:29 +00:00
Mike Jolley
1e217758fc
Fix IPN response
2014-11-19 15:00:05 +00:00
Mike Jolley
ca37524fe6
woocommerce_get_paypal_order filter
...
@thenbrent this should cover subscriptions needs
2014-11-19 15:00:05 +00:00
Mike Jolley
0ad1e05e23
Split PayPal class into separate classes for IPN and PDT and refund handling
2014-11-19 15:00:05 +00:00
Mike Jolley
83cd831e1a
can_refund_order/limit_string_length methods
2014-11-18 16:53:03 +00:00
Mike Jolley
003094c9c3
Ensure remaining hashes are translated Closes #6518
2014-11-18 16:29:21 +00:00
Mike Jolley
387296a807
More PayPal line item tweaks
2014-11-18 16:13:41 +00:00
Mike Jolley
a39353fc73
Split up line item methods in paypal
2014-11-18 13:46:55 +00:00
Mike Jolley
e68353da63
Use one variable for endpoint in paypal
2014-11-18 13:46:55 +00:00
Mike Jolley
2e9f02932d
Simplify get_icon() method
2014-11-18 13:46:55 +00:00
Mike Jolley
74b93b8c67
Moved paypal settings to file
2014-11-18 13:46:55 +00:00
Mike Jolley
dc3aca2d06
Simplify logging and get_paypal_order(). Removes < 2 bw compat
...
@thenbrent this removes the old IPN handling legacy code. Is this
something that may affect subscriptions? I believe that IPN code was
for WC < 2.0 when we used to send back a string/integer in ‘custom’
2014-11-18 13:46:55 +00:00
claudiosmweb
a91dd8b516
Fixed missing comma
...
@mikejolley
2014-11-14 12:09:02 -02:00
Mike Jolley
4b5d22b8e8
Format totals to 2dp when doing paypal checks Closes #6678
2014-11-14 13:17:17 +00:00
Mike Jolley
7c666852c7
If totals mismatch in paypal, don't send line items
2014-11-13 13:41:51 +00: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
Mike Jolley
f96f01b271
esc_url_raw, huh. What is it good for. Absolutely nuthin #5798
2014-10-23 15:47:21 +01:00
Mike Jolley
a76f9d9096
Optimise paypal gateway, and revise encoding.
...
#5798
2014-10-23 14:27:24 +01:00
claudiosmweb
eba08c41f3
alt attribute from paypal logo now is translatable
2014-10-21 19:31:37 -02:00
mgiulio
da0a42be28
Use 'no' to disable the gateway
2014-09-29 12:08:19 +02:00
shivapoudel
bc5156ff4a
Absolute path and Indentation fix for includes/gateways/*.php :)
2014-09-21 01:27:58 +05:45