Claudio Sanches
3c9b9ac6a0
Revert changes from PayPal
2019-10-02 14:20:13 -03:00
Claudio Sanches
20ee6c7aed
Fixed coding standards
2019-10-02 14:18:03 -03:00
Claudio Sanches
b655af2e3b
Changed thank you page text to follow PayPal guidelines
2019-10-02 14:17:25 -03:00
Rodrigo Primo
b63ecca450
Merge pull request #24249 from miguelfspinto/patch-2
...
Avoid duplicated process for IPN and PDT payment
2019-09-24 17:59:56 -03:00
Rodrigo Primo
e7b8e3ed7b
Fix typo in order note
...
PR #24501 fixed a typo in a order note string. This commit fix the same
problem in another place where the same string is used.
2019-08-30 10:01:55 -03:00
Miguel Pinto
60ac27ba3e
Update class-wc-gateway-paypal-response.php
2019-08-27 22:30:33 +01:00
Mithu A Quayium
fa62be3fa1
Typo fix in line: 428
...
The string "Payment could not captured" in line:428 should be "Payment could not be captured" instead, since it is appropriate grammatically.
2019-08-26 11:32:40 +06:00
Miguel Pinto
ae4eba45ec
Update class-wc-gateway-paypal-response.php
2019-08-01 16:19:17 +01:00
Miguel Pinto
77f4a3e25b
Update class-wc-gateway-paypal-response.php
2019-07-31 09:48:41 +01:00
Miguel Pinto
de978dad28
Update class-wc-gateway-paypal-response.php
2019-07-30 21:31:55 +01:00
Miguel Pinto
d7b54ccb35
Update class-wc-gateway-paypal-response.php
2019-07-30 20:56:43 +01:00
Miguel Pinto
ce4f0edc3a
Avoid duplicated process for IPN and PDT payment
...
Currently, Woocommerce is processing twice the payment when IPN and PDT notifications are enable. This mean that stock is reduced twice.
2019-07-29 09:25:30 +01:00
Gerhard
70231461b2
Refactor logic for passing no_shipping, it should only be passed when no shipping items are available.
2019-05-21 08:11:36 +02:00
Gerhard
8332bed7bc
Do not pass no_shipping when not using send shipping address options in paypal, it still needs to use the billing details.
2019-05-20 14:59:48 +02:00
Gerhard
af678dfc84
Switch paypal capture_payment method to use woocommerce_order_status_processing and woocommerce_order_status_completed instead to avoid issues with custom from status transitions.
...
Update get_post_meta usage with $order->get_meta instead.
2019-05-07 12:57:59 +02:00
David Jensen
9b58e68e85
Remove html tags from product name in request to PayPal
2019-04-12 12:36:30 -07:00
Claudio Sanches
e5e64d1618
Apply wc_sanitize_phone_number in WC_Gateway_Paypal_Request
2019-03-07 14:08:40 -03:00
Mike Jolley
55b27a2afc
Adjust calling code prefix logic in paypal
2019-03-06 12:33:46 +00:00
Mike Jolley
65c0169726
Merge branch 'master' into fix/21110
2019-03-06 12:25:12 +00:00
Mike Jolley
4330b2eb38
Update calling code handling
2019-03-06 12:25:06 +00:00
Mike Jolley
49065c0d1a
Add meta data, before changing order status
2019-02-27 14:50:37 +00:00
Mike Jolley
7306bf6382
Merge pull request #22763 from woocommerce/fix/paypal-bn-code
...
Move PayPal BN partner ID
2019-02-19 09:42:05 +00:00
Mike Jolley
8abe75f36d
Merge branch 'fix/21463'
2019-02-18 17:20:48 +00:00
Mike Jolley
3ededc2a07
Move BN partner ID
2019-02-18 16:29:29 +00:00
Mike Jolley
f0675781c8
Include calling code in pp request
2019-02-08 11:10:26 +00:00
Mike Jolley
dca47d5d14
Use mb functions for limiting string length
2019-02-07 19:09:41 +00:00
Mike Jolley
dbd324abc3
phpcs
2019-02-07 14:55:56 +00:00
Mike Jolley
ebdeab4c22
Added woocommerce_paypal_force_one_line_item filter
2019-02-04 16:31:17 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Claudiu Lodromanean
00d254ac18
Merge pull request #21715 from angelleye/21714
...
Sets signature field type to password for security, resolves #21714
2018-11-02 08:09:56 -07:00
angelleye
f995c2e070
Changes field type to password for live Signature field, resolves #21714
2018-10-31 12:32:40 -05:00
Gerhard
aba734f033
Make PDT validation use the same rounding as the IPN validation.
2018-10-29 11:50:47 +02:00
angelleye
7ec6f3f67b
Sets signature field type to password for security, resolves #21714
2018-10-27 06:21:56 -05:00
Maria Górska
0369e3d622
Enable PDT handling for custom pending statuses
2018-08-27 12:10:36 +02:00
Gerhard Potgieter
c7884003dc
Do not build paypal pay link when no base country is set.
2018-07-16 11:44:58 +02:00
Mike Jolley
a17945d9a8
Merge pull request #20574 from woocommerce/fix/20551
...
Fix: set order status to refunded when a PayPal transaction is refunded
2018-06-20 14:56:25 +01:00
Rodrigo Primo
5b5256370a
Ignore a single PHPCS rule instead of ignoring all rules
...
Replace the usage of `// @codingStandardsIgnoreStart` and `// @codingStandardsIgnoreEnd` with `// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores` on WC_Gateway_Paypal_IPN_Handler::check_response(). Ignoring a single PHPCS rule is better than ignoring everything to protect the line against potential violations of the other rules.
2018-06-19 10:44:45 -03:00
Rodrigo Primo
9263a0b169
Fix: set order status to refunded when a PayPal transaction is refunded
...
Commit c7a3fd2
changed the logic to check if the refund is a full refund to use the strict equal operator (`===`) in the following line:
25be9fc13c/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php (L295)
This change broke the comparison as `$order->get_total()` will return the value respecting the number of decimals after the decimal point set in the option `woocommerce_price_num_decimals` and `wc_format_decimal()`, when called without a second parameter, will not format the received value to use the same number of decimals set in `woocommerce_price_num_decimals`. To fix this issue, this commit passes `wc_get_price_decimals()` as the second parameter to `wc_format_decimal()`. This way both values will always have the same number of decimals and the comparison should work when handling a full refund.
Fixes #20551
2018-06-19 10:42:27 -03:00
Mike Jolley
2cad2414b3
Remove manual wc_reduce_stock_levels calls
2018-06-07 18:01:38 +01:00
Mike Jolley
57ae8285b6
Mask logged PayPal data.
2018-04-30 18:17:12 +01:00
Mike Jolley
aef46ce8d3
Clear paypal logs when debug mode is turned off.
2018-04-30 18:04:52 +01:00
Mike Jolley
610e9b0989
Add disclaimer to debug logging setting
2018-04-30 17:30:55 +01:00
Mike Jolley
d14e59cdb0
Remove some PII from paypal logs and avoid storing custom meta from responses
2018-04-30 17:30:39 +01:00
Claudio Sanches
781d38dc51
Removed undefined wp_json_decode() function from PayPal response
...
Closes #19807
2018-04-20 13:26:05 -03:00
Mike Jolley
1b34cd4745
Moved settings tabs around to allow for privacy page.
2018-04-12 16:59:42 +01:00
Mike Jolley
5ac7aac369
Improve can_refund_order and add unit tests
2018-04-03 17:09:09 +01:00
Mike Jolley
7b45e90357
Merge branch 'master' into update/19302
2018-04-03 14:57:24 +01:00
Mike Jolley
51252915e1
Merge pull request #19493 from woocommerce/fix/19404
...
Removed line item limit and made sure the URL is shorter than 2083 ch…
2018-03-28 13:56:57 +01:00
Peter Fabian
3809ab3f4c
Fixed shipping tax logic to behave the same as originally
2018-03-28 13:08:05 +02:00
Peter Fabian
59c47c4407
Refactored line item logic
...
- prepare_line_items is not used as a test anymore, it only updates line items
- add_line_item is not used as a test anymore, only adds line items
- added method line_items_valid to test for valid line items
- shipping tax inclusion test moved to get_shipping_cost_line_item to encapsulate shipping tax-related logic
2018-03-28 11:04:34 +02:00