Commit graph

1027 commits

Author SHA1 Message Date
dependabot[bot]
63b77d8442
Bump loader-utils from 2.0.0 to 2.0.4 in /modules/ppcp-wc-gateway
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.0 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.0...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 10:32:46 +00:00
Emili Castells Guasch
b0e269e95e Fix pay for order conditional 2023-03-23 16:29:26 +01:00
Emili Castells Guasch
b0de49125e Merge branch 'trunk' into PCP-506-api 2023-03-22 12:28:32 +01:00
Emili Castells Guasch
808020357e Fix psalm 2023-03-21 12:35:51 +01:00
Emili Castells Guasch
f857315055 Cleanup caching data on plugin upgrade 2023-03-21 12:22:53 +01:00
Emili Castells Guasch
99c5351689 Refactor pui is active calls 2023-03-21 11:54:55 +01:00
Emili Castells Guasch
8a1d38ec0e Move settings sections service to sections render class 2023-03-21 11:00:47 +01:00
Alex P
e5c9ef86a3
Merge branch 'trunk' into PCP-506-api 2023-03-17 17:23:47 +02:00
Alex P
7a994f8d28
Do not save refund id after ppcp_refund_order 2023-03-17 17:23:33 +02:00
Alex P
7e64f81c19
Fix credentials change check for redirect 2023-03-17 16:22:04 +02:00
Alex P
5dce62fa78
Add API for refunding and voiding orders 2023-03-17 11:44:28 +02:00
Alex P
9ba93c9e11
Remove unneeded extension
no reason to put it into extension, only adds confusion
2023-03-17 10:22:28 +02:00
Alex P
cc21dd78e7
Fix tests, add http redirector 2023-03-16 18:13:41 +02:00
Emili Castells
337959feda
Merge pull request #1237 from woocommerce/PCP-1465-status-text
Change "Enabled" to "Available" in status text
2023-03-16 15:14:58 +01:00
Emili Castells
f633995307
Merge pull request #1229 from woocommerce/PCP-1470-changing-to-bad-creds-error
Fix duplicated auth error when credentials become wrong
2023-03-16 15:14:26 +01:00
Emili Castells
e332e62105
Merge pull request #1221 from woocommerce/PCP-1479-paylater-minicart
Allow Pay Later in mini-cart
2023-03-16 15:13:57 +01:00
Emili Castells
cbf64f5cb9
Merge pull request #1220 from woocommerce/PCP-259-log-payment-method
Show funding source as payment method
2023-03-16 15:12:27 +01:00
Emili Castells
aea0963812
Merge pull request #1239 from woocommerce/PCP-1481-webhook-storage
Fix webhook issues when switching sandbox, and delete all webhooks when unsubscribing
2023-03-16 09:17:56 +01:00
Emili Castells Guasch
c600575d23 Do not call endpoint if not onboarded 2023-03-13 14:56:15 +01:00
Alex P
8188faeec4
Redirect on any credentials change (including sandbox checkbox)
otherwise we may use wrong state/host e.g. for webhook subscription
2023-03-10 10:39:02 +02:00
Alex P
c41cedc80d
Change "Enabled" to "Available" in status text
Now it is more clear because "enabled" can be understood as enabled gateway, while it only means that it is enabled in the PayPal account.
2023-03-07 09:46:45 +02:00
Alex P
8bfc58f0da
Fix duplicated auth error 2023-03-06 17:07:31 +02:00
Alex P
2adc0d57e1
Do not remove mini-cart location for pay later 2023-03-01 16:18:21 +02:00
Alex P
f7323210f0
Show funding source as payment method 2023-03-01 10:20:04 +02:00
Alex P
8c1af84204
Refactor settings check 2023-02-27 12:04:43 +02:00
Alex P
f8daa7ff2f
Remove incorrect @throws 2023-02-27 12:04:08 +02:00
Alex P
38a8473e57
Remove redundant method
pay later is not available for mini-cart, and even if we add it we should not implement this check with such confusing naming (location and context)
2023-02-26 15:03:41 +02:00
Alex P
8640d3031d
Fix pay later on order pay page 2023-02-26 15:00:42 +02:00
Emili Castells
de651b3ae8
Merge pull request #1185 from woocommerce/PCP-235-status-capture
Allow to capture automatically on status change
2023-02-23 11:53:29 +01:00
Emili Castells
018ef8603a
Merge pull request #1186 from woocommerce/PCP-1447-fix-preview-country
Do not send buyer-country for previews in live mode to avoid error
2023-02-23 11:52:28 +01:00
Alex P
13237fa68a
Remove type-hint to reduce third-party conflicts 2023-02-23 11:24:12 +02:00
Alex P
50b7066afb
Do not call get_available_payment_gateways early
Calling it during object construction causes issues with third-party plugins when it is executed too early or in irrelevant requests (WP ajax for saving posts, ...).
Now this function call is moved into a separate class to make it more difficult to accidentally execute early or when not needed.
2023-02-22 17:25:14 +02:00
Alex P
3ca9b444fe
Redirect to connection tab after manual credentials input 2023-02-21 10:38:11 +02:00
Alex P
3439f67ec9
Do not send buyer-country for previews in live mode to avoid error 2023-02-14 11:25:23 +02:00
Alex P
7c43d91288
Allow to capture automatically on status change 2023-02-14 10:30:59 +02:00
Emili Castells
a3dfc3c01e
Merge pull request #1169 from woocommerce/PCP-1421-label
Mention PUI only for German shops and add line breaks
2023-02-13 15:17:59 +01:00
Emili Castells
36281f4a8b
Merge pull request #1172 from woocommerce/PCP-1438-get-cart-warning
Use wp_loaded for fraudnet loading to avoid warnings
2023-02-13 15:15:53 +01:00
emilicastells
568b809834
Move context logic to trait 2023-02-13 11:01:51 +01:00
emilicastells
1f395701ed
Merge branch 'trunk' into PCP-1429-device-data-not-available-error-message-is-showing-for-pay-upon-invoice 2023-02-13 09:48:49 +01:00
Emili Castells
dd80f8fcfe
Merge pull request #1153 from woocommerce/PCP-1418-fees-display-filter
Add filter for disabling fees on wc order admin pages
2023-02-10 12:34:58 +01:00
emilicastells
88d85ca87d
Get button locations from smart_button_locations setting 2023-02-09 16:35:53 +01:00
Alex P
61dafb83d7
Use wp_loaded for fraudnet loading to avoid warnings
It needs wcgateway.enabled-ppcp-gateways which calls WC()->payment_gateways->get_available_payment_gateways(), and the hooks inside it can be used by other plugins resulting in warnings about calling functions like get_cart too early
One way to fix it is simply to use the wp_loaded hook instead of init, I think it supposed to be a more correct choice if interaction with other plugins (WC) is needed, because it is fired when "WP, all plugins, and the theme are fully loaded and instantiated"
2023-02-08 18:00:23 +02:00
Alex P
9839d24a66
Fix fraudnet docs url 2023-02-07 15:55:23 +02:00
Alex P
040c51a2b6
Mention PUI only for German shops and add line breaks 2023-02-07 15:53:11 +02:00
Alex P
333b48e4ec
Add tracking docs url 2023-02-07 15:52:58 +02:00
Emili Castells
664a53dd36
Merge pull request #1156 from khalilgharbaoui/trunk
Add option to hide funding resource Trustly
2023-02-07 12:58:00 +01:00
Alex P
abc39d4dbd
Mention PUI only for German shops and add line breaks 2023-02-07 10:58:38 +02:00
Alex P
df10747701
Fix default landing value 2023-02-06 10:13:38 +02:00
Alex P
3fe1a2a274
Add white color option 2023-02-06 10:06:32 +02:00
Khalil Gharbaoui
4f1f326172
Add option to hide funding resource Trustly 2023-02-02 04:36:02 +01:00