Commit graph

244 commits

Author SHA1 Message Date
Pedro Silva
35fbe42733
Refactor WooCommerce\PayPalCommerce\Onboarding\Exception\RuntimeException to \RuntimeException
Refactor to use add_query_arg in append_onboarding_token
2023-07-12 14:57:57 +01:00
Pedro Silva
96eae6c690
Add security to the onboarding return URL. 2023-07-07 18:44:53 +01:00
Alex P
d548bb8788
Check admin permissions 2023-05-31 16:36:02 +03:00
dependabot[bot]
9db77a801b
Bump json5 from 2.2.1 to 2.2.3 in /modules/ppcp-onboarding
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 10:49:34 +00:00
dependabot[bot]
5e1f52a357
Bump webpack from 5.74.0 to 5.76.0 in /modules/ppcp-onboarding
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-17 10:44:46 +00:00
Emili Castells Guasch
8d97954f42 Add content type json to all fetch ajax endpoints 2023-03-22 17:26:58 +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
dependabot[bot]
dd0787dfcc
Bump loader-utils from 2.0.2 to 2.0.4 in /modules/ppcp-onboarding
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 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.2...v2.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-14 08:39:09 +00:00
Alex P
4c59337247
Delete all webhooks before adding 2023-03-09 10:47:29 +02:00
Alex P
7c43d91288
Allow to capture automatically on status change 2023-02-14 10:30:59 +02:00
Narek Zakarian
6e5af8f0ab
Change the script localize name 2022-12-21 18:01:19 +04:00
Narek Zakarian
5b15b4b3fe
Conditionally add a message when no location is selected. 2022-12-21 17:08:56 +04:00
Narek Zakarian
c45a54aa68
Improve the conditional showing fields functionality 2022-12-20 19:08:17 +04:00
Narek Zakarian
9c6a813776
Refactor settings JS code to work for standard tab 2022-12-05 15:28:45 +04:00
Emili Castells
e67b4225d3
Merge pull request #962 from woocommerce/PCP-915-create-pay-later-tab
Create the pay later tab
2022-11-15 11:53:37 +01:00
Narek Zakarian
629292c85a Merge remote-tracking branch 'origin/trunk' into PCP-915-create-pay-later-tab
# Conflicts:
#	modules/ppcp-wc-gateway/services.php
2022-11-15 14:40:23 +04:00
Alex P
d8f972343d
Merge branch 'trunk' into pcp-918-php-72 2022-11-15 12:36:20 +02:00
Alex P
17d3cc152e Require PHP 7.2 2022-11-09 16:00:15 +02:00
Alex P
818dbcf107 Add isolated container and dhii modularity deps 2022-11-09 10:13:03 +02:00
Narek Zakarian
f3a0c0d0ce Improve JS variable declaration 2022-11-04 12:46:23 +04:00
Narek Zakarian
7a0350ea7a Add button and message preview scripts 2022-11-02 17:35:29 +04:00
Narek Zakarian
510cb4db49 Merge remote-tracking branch 'origin/pcp-917-preview' into PCP-915-create-pay-later-tab
# Conflicts:
#	modules/ppcp-wc-gateway/resources/js/gateway-settings.js
#	modules/ppcp-wc-gateway/services.php
2022-10-31 16:16:57 +04:00
Narek Zakarian
c68eac814f Handle the JS logic 2022-10-31 15:58:19 +04:00
Alex P
ab618b200e Add button preview in settings 2022-10-21 17:56:48 +03:00
Emili Castells
ab23dfbe4c
Merge pull request #876 from woocommerce/PCP-900-onboard-with-pui-checkbox-automatically-set-when-shop-is-set-to-germany
Onboard with PUI Checkbox automatically set when shop is set to Germany
2022-10-14 09:11:55 +02:00
Emili Castells
dcb111fe98
Merge pull request #852 from woocommerce/PCP-901-onboarding-buttons-must-be-clicked-multiple-times-after-using-checkbox
Add spinner and disable buttons while switching PUI checkbox
2022-10-13 09:21:48 +02:00
Narek Zakarian
429349990b Disable the PUI onboarding checkbox while JS Fetch is running. 2022-10-11 16:17:24 +04:00
Alex P
5919c5e223 Cleanup/refactor disabled card icons removal 2022-10-09 18:20:06 +03:00
Alex P
a2668e37d2 Fix appendChild usage
We replaced append with appendChild for better browser support, but it accepts only single elements, so we need to flatten the array.
2022-10-09 18:16:54 +03:00
Narek Zakarian
a58f94de46 Merge branch 'trunk' into PCP-901-onboarding-buttons-must-be-clicked-multiple-times-after-using-checkbox 2022-10-07 15:55:17 +04:00
dinamiko
1dec304595 Uncheck onboarding with pui checkbox by default 2022-09-30 15:53:36 +02:00
dinamiko
5291dc7298 Merge branch 'trunk' into PCP-688-add-functionality-to-choose-subscription-failure-behavior 2022-09-26 15:53:41 +02:00
Alex P
c3b2472389 Fix onboarding callback
Looks like the global function were not available for the PayPal SDK since #844
2022-09-26 15:41:46 +03:00
Narek Zakarian
eb8efc41f5 Add spinner and disable buttons while switching PUI checkbox 2022-09-15 16:55:41 +04:00
dinamiko
3382654c0a Merge branch 'trunk' into PCP-688-add-functionality-to-choose-subscription-failure-behavior 2022-09-15 11:47:17 +02:00
Alex P
a10e1b8e2e Load onboarding.js only in connection tab
Looks like it is not needed anywhere else, and in other tabs we get an error because it fails to find the checkbox
2022-09-15 10:13:02 +03:00
dinamiko
e4e968a823 Fix merge conflict 2022-09-14 12:22:46 +02:00
Alex P
3c4db55211 Use webpack/babel in onboarding module 2022-09-12 10:23:22 +03:00
Alex P
23cb96e6f9 Explicitly send cookies in fetch
Not sent by default in old browsers
2022-09-09 16:28:58 +03:00
Alex P
5be88678e7 Use appendChild for better compatibility
For some reason Babel does not polyfill it
2022-09-09 11:20:23 +03:00
Narek Zakarian
d7aef159f9 fix code styling 2022-09-06 14:23:50 +04:00
Narek Zakarian
8aa8b8de72 Switch account screen on disconnect 2022-09-02 17:58:49 +04:00
Narek Zakarian
f6e2b345c9 Assets should work also on connection tab 2022-08-24 16:37:09 +04:00
dinamiko
9df3764f0e Fix phpcs 2022-08-22 10:58:02 +02:00
dinamiko
32905cbf9d Uncheck credit card when is supported cuntry 2022-08-19 16:17:48 +02:00
dinamiko
fa41fd19a7 Hide credit card options when checkbox is unchecked 2022-08-19 16:02:01 +02:00
dinamiko
80fad900b4 switch the position of standard and advanced card processing radio buttons 2022-08-19 11:22:50 +02:00
Alex P
af6ad876e3 Fix margin 2022-08-16 17:29:45 +03:00
Alex P
f9375eab44 Remove underline in header 2022-08-16 17:22:57 +03:00
Alex P
d9ab46475c Fix header logo on mobile 2022-08-16 17:18:35 +03:00