Commit graph

126 commits

Author SHA1 Message Date
Alex P
8b94dda4d6
Fix tests 2024-10-03 10:40:37 +03:00
Emili Castells Guasch
b6125a59c3 Add test for PayPal api exception friendly message 2024-04-18 11:42:40 +02:00
Daniel Dudzic
811c921b41
Update the testFromWcOrderMaxStringLength() test to match the new title sanitization and trimming 2024-03-11 20:54:07 +01:00
Narek Zakarian
c3ae6ad8a6
Fix the tests 2024-01-31 16:51:33 +04:00
Emili Castells Guasch
8fafff915d Fix phpunit 2023-11-27 11:04:40 +01:00
Emili Castells Guasch
9f41d5c874 Merge branch 'trunk' into PCP-1393-update-to-vault-v-3 2023-10-25 11:21:28 +02:00
Emili Castells Guasch
db9852b535 Fix phpunit 2023-10-24 12:02:24 +02:00
Emili Castells Guasch
f47d7cec18 Remove payee from purchase units 2023-10-24 11:49:43 +02:00
Emili Castells Guasch
b6734a82da Fix phpunit 2023-10-20 15:16:30 +02:00
Emili Castells Guasch
8256c9f729 Fix phpunit 2023-10-18 17:15:27 +02:00
Narek Zakarian
9f8f680507
fix tests 2023-09-20 17:43:29 +04:00
Emili Castells
b07e1bb18a
Merge pull request #1649 from woocommerce/PCP-1912-include-Item-URL-Image-URL-optional-UPC-in-create-order-call
Include `url` & `image_url` in create order call (1912)
2023-09-07 09:48:18 +02:00
Narek Zakarian
f869f98ac1
Add url & image_url to Item 2023-08-31 17:40:06 +04:00
Pedro Silva
fcaf4d495e
Merge branch 'trunk' into PCP-1877-improve-line-item-mismatch-handling 2023-08-30 17:03:31 +01:00
Pedro Silva
bb3b8553b9
Refactor PurchaseUnitSanitizer to subtract 0.01 instead of rounding down
Refactor PurchaseUnitSanitizer to use singleton pattern
2023-08-09 11:48:49 +01:00
Pedro Silva
a43b93ffff
Add test cases for PurchaseUnitSanitizer 2023-08-07 18:09:25 +01:00
Pedro Silva
837bdb0392
Add PurchaseUnitSanitizer tests
Add subtotal mismatch admin options
2023-08-07 16:12:02 +01:00
Pedro Silva
4027f4a77e
* Fix tests 2023-08-04 14:18:27 +01:00
Alex P
c9595e29bd
Fix tests 2023-06-14 15:39:24 +03:00
Alex P
f396870610
Refactor patch request 2023-04-26 16:57:45 +03:00
Alex P
9d638a57e3
Show shipping methods in paypal if express without review 2023-04-25 15:06:24 +03:00
Alex P
2a0fa49800
Merge branch 'trunk' into pcp-157-blocks 2023-03-22 23:23:06 +02:00
Alex P
fa0afe381a
Merge branch 'trunk' into pcp-157-blocks 2023-03-17 15:53:53 +02:00
Alex P
d40d01a4f4
Add API for easy programmatic capture 2023-03-17 10:19:56 +02:00
Alex P
7e16b39bbb
Remove shortcodes from description 2023-03-03 09:48:45 +02:00
Alex P
70c48762fa
Merge branch 'trunk' into pcp-157-blocks 2023-02-15 11:38:31 +02:00
emilicastells
9055c702e7
Fix merge conflicts 2023-01-17 15:03:20 +01:00
Alex P
0bf18d67c5
Pass user_action 2023-01-11 17:45:09 +02:00
Emili Castells
d4187854de
Merge pull request #1029 from woocommerce/PCP-951-could-not-retrieve-order
Could not retrieve order error (951)
2023-01-11 09:55:34 +01:00
Alex P
2f6240bfb4
Do not send Paypal-Request-Id
The current usage is incorrect and only causes issues without solving any problems (we don't implement any way to retry requests).
2022-12-15 12:37:52 +02:00
Narek Zakarian
e8c59d98b4
fix tests 2022-11-29 19:53:32 +04:00
Narek Zakarian
50e18c1518
Add FraudNet header when creating order. 2022-11-29 19:31:58 +04:00
emilicastells
e6ef177a65
Fix phpunit 2022-11-29 11:01:03 +01:00
dinamiko
f5fa440f5d Update changelog, skip failing testing for now 2022-08-31 17:20:54 +02:00
Alex Pantechovskis
cfc549958d
Merge pull request #699 from woocommerce/PCP-673-store-customer-id-for-vaulted-payment
Store the customer id for vaulted payment method in usermeta
2022-07-26 16:09:30 +03:00
Alex P
619e9d2552 Change address handling for card button
Make the name field to always appear and send at least one address
2022-07-19 09:24:19 +03:00
Emili Castells
4c6b7b9659
Merge pull request #719 from woocommerce/pcp-443-fix-vaulted-card-button
Fix vaulted card button on order page
2022-07-08 10:26:53 +02:00
Alex P
2ca64739db Use str value when checking mismatch
Otherwise the check may fail depending on the rounding used when creating the Money objects
2022-07-07 12:36:14 +03:00
Alex P
82adf1933f Refactor money value formatting
Do not duplicate code and send string value for JPY
2022-07-07 12:34:21 +03:00
Alex P
9ab091b945 Fix shipping preference for vaulted card button 2022-07-05 17:30:12 +03:00
Alex P
fff2570124 Refactor shipping_preference
Extract its determination to a separate class, also remove useless CartRepository and use single PU to avoid confusion.
2022-07-05 14:37:04 +03:00
dinamiko
1d9af879ef Fix phpunit 2022-06-27 12:33:51 +02:00
dinamiko
933a80b536 Merge trunk 2022-06-27 12:28:43 +02:00
Narek Zakarian
4c89caf0d9 Fix the tests 2022-06-23 19:18:29 +04:00
Alex P
84a5d9cd0f Merge branch 'trunk' into pcp-328-mismatch 2022-06-20 16:35:37 +03:00
Alex P
af15246a96 Fix order fees total 2022-06-17 09:41:05 +03:00
dinamiko
0262549382 Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice 2022-06-16 11:12:41 +02:00
Alex P
02c84e43e0 Improve item total/price retrieval
Less calculations, also fee was not included in item price for subs with fee
2022-06-15 21:33:25 +03:00
Alex P
770f8e558b Do not send tax in each item
Looks like it is not displayed anyway, and it causes mismatch + cannot send shipping/discount taxes as tax
2022-06-15 10:14:42 +03:00
Alex P
0e82a5f6c9 Fix rounding when checking total mismatch 2022-06-15 09:58:57 +03:00