Commit graph

29 commits

Author SHA1 Message Date
Alex P
7ef5991cb8 Log endpoint errors 2021-09-23 17:19:46 +03:00
dinamiko
c2a036c952 Check if array key exist before using it 2021-07-21 11:44:44 +02:00
dinamiko
f2f3633df4 Refactoring 2021-06-15 14:44:47 +02:00
dinamiko
076a124ec7 Validate checkout form before creating PayPal order when creating account on checkout 2021-06-15 12:48:01 +02:00
Kirill Braslavsky
468008db9d remove extra whitespace 2021-03-17 14:02:00 +02:00
Kirill Braslavsky
267c2c071e add missed comment 2021-03-17 14:01:13 +02:00
Kirill Braslavsky
d04cd56cd9 auto fix phpcs errors 2021-03-17 13:59:18 +02:00
Kirill Braslavsky
6c3e627752 create PayPal order after checkout validation 2021-03-16 16:08:42 +02:00
Kirill Braslavsky
9d4ce86c37 create PP order after checkout validation 2021-03-16 15:46:08 +02:00
Kirill Braslavsky
e0d59ce2a0 don't store PP order in class properties 2021-03-16 15:45:36 +02:00
Kirill Braslavsky
91adee26e4 store data to create PP order in class properties 2021-03-16 15:32:52 +02:00
Kirill Braslavsky
8f00894080 don't throw exceptions from handle_request() 2021-03-16 12:02:02 +02:00
Kirill Braslavsky
c631b64ca9 move creating PayPal order into separate function 2021-03-15 19:53:35 +02:00
Kirill Braslavsky
a83af94b88 avoid redundant exception throwing 2021-03-15 19:49:10 +02:00
Kirill Braslavsky
9bdd2631dd rename function 2021-03-15 13:38:04 +02:00
Kirill Braslavsky
b825e4be76 remove redundant ternary 2021-03-15 11:05:47 +02:00
Emili Castells
9434d8f293
Merge pull request #103 from woocommerce/PCP-63
Pcp 63
2021-02-01 11:15:12 +01:00
carmenmaymo
f826c25f64 fix tests and cs 2021-01-19 09:50:07 +01:00
carmenmaymo
0669708ad9 unset phone if empty 2021-01-18 16:13:08 +01:00
dinamiko
9bf0248153 Ensure terms and conditions page is selected before validate 2021-01-07 12:37:16 +01:00
David Remer
3e2f811959 make sure shipping is needed when setting up application context.
When no shipping zones are defined the WC_Order which is patched later will not contain a shipping address. When we set up the order with a fixed shipping address from file, this will result in an API error. Therefore, we need to check upfront, if shipping is needed.
2020-11-03 12:29:05 +02:00
Emili Castells
9ba065980a
Merge pull request #74 from woocommerce/issue-72-fixed-shipping-address-in-checkout
Prevent shipping address change in paypal checkout
2020-11-02 10:45:59 +01:00
David Remer
d0a4405d7e prevent shipping address change in paypal checkout 2020-10-21 09:25:37 +03:00
David Remer
67eb9aa06b sanitize checkout form data differently than usual input data as it is url encoded, do not use wp_parse_args as it has sideeffects. 2020-10-12 11:52:42 +03:00
Jorge A. Torres
02718c6c77 Rename plugin to "WooCommerce PayPal Payments" 2020-10-09 19:00:00 -03:00
David Remer
96fd3d6a2a enable gateways in the account -> order -> pay-now 2020-09-30 14:24:31 +03:00
David Remer
c788341887 change namespace vendor to WooCommerce 2020-09-11 14:11:10 +03:00
David Remer
c5899d915c downgrade plugin to php 7.0 2020-09-11 13:38:02 +03:00
David Remer
f8e82bdfaf move module.local to module 2020-09-01 14:21:58 +03:00
Renamed from modules.local/ppcp-button/src/Endpoint/class-createorderendpoint.php (Browse further)