Commit graph

1224 commits

Author SHA1 Message Date
Alex P
c933c595d8 Remove redirect after vaulting settings check
does not seem to be needed
2022-05-12 17:39:54 +03:00
Alex P
d4dcc10ef6 Remove outdated comment 2022-05-12 17:39:49 +03:00
Alex P
65007a7bae Do not handle vaulting settings change when not onboarded
Otherwise vaulting gets disabled after disconnect and re-onboarding
2022-05-12 17:39:49 +03:00
Alex P
fc3ba70d4b Extract filter to a function 2022-05-11 18:16:50 +03:00
Narek Zakarian
ab0e90dab0 Store order info in wc order meta to get if there is no session. 2022-05-10 18:46:40 +04:00
leonardo lopes de albuquerque
e6775ce3fe
Merge pull request #353 from helgatheviking/issues/234-supports 2022-05-10 10:05:59 -03:00
helgatheviking
0052aacbbc Rename new filter to woocommerce_paypal_payments_product_supports_payment_request_button to avoid abbreviates 2022-05-09 13:19:32 -06:00
Narek Zakarian
199b18c7f3 Fix the psalm error about no return type. 2022-05-06 18:22:58 +04:00
Narek Zakarian
5965cc4bde Enable the "pay later" on card page when card page is updated. 2022-05-06 18:22:11 +04:00
Narek Zakarian
6ac84bc801 Merge branch 'PCP-632-smart-buttons-not-loading' into PCP-163-pay-later-message-bug 2022-05-06 17:34:13 +04:00
Narek Zakarian
d3b8e04135
Update CartBootstap.js 2022-05-04 15:34:19 +04:00
Alex P
dd4b39971f Remove duplicated variable 2022-05-03 16:14:22 +03:00
Narek Zakarian
c4f5d7a139 Move the subscription cart check into the callbacks.
The subscription product in cart existence and the vaulting enabled check should be called inside the button renderer hook callback so that the mini-cart ajax refresh will take it into the consideration.
2022-05-02 17:48:14 +04:00
Alex P
93ef548b65 Fix psalm errors 2022-04-28 16:20:30 +03:00
Alex P
35f058870a Skip already handled refunds in webhook
When we add a refund from WC, we still receive a webhook with it. And for some partial refunds the duplicated refund can be added in WC.
2022-04-28 16:20:05 +03:00
Alex P
13e04b009c Fix const name 2022-04-27 23:50:23 +03:00
Alex P
e72b80ae72 Show error if PayPal already vaulted for another WC customer 2022-04-27 10:45:05 +03:00
Alex P
b2e5a80f3f Show error message when vaulting approval fails 2022-04-27 10:39:54 +03:00
Narek Zakarian
d148a1bf9a Adjust API client services to support fraud response. 2022-04-25 19:17:13 +04:00
Narek Zakarian
fd77690d46 Include fraud response in order capture. 2022-04-25 19:16:09 +04:00
Narek Zakarian
4c1695788f Create Fraud processor response and it's factory. 2022-04-25 19:14:21 +04:00
Alex P
4a4f131325 Handle card smart button for free trial (1$ auth + void)
Disabling this funding source also disables DCC
2022-04-25 15:24:37 +03:00
Alex P
a5191b04ff Do not disable card funding source for free trial if DCC enabled
Otherwise DCC gateway gets disabled (paypal.HostedFields.isEligible() becomes false)
2022-04-25 15:13:46 +03:00
dinamiko
36151c8296 Do not set PayPal gateway enabled on credit card gateway 2022-04-21 15:19:08 +02:00
dinamiko
ca0aa6145c Revert change 2022-04-21 11:20:47 +02:00
Narek Zakarian
de855042a0 Add "PayPal Transaction Key" into order custom fields. 2022-04-20 19:51:26 +04:00
Narek Zakarian
b268e62c9f Fix the button render logic when free product is in cart. 2022-04-18 18:16:22 +04:00
Danae Millan
b488c909eb Merge branch 'trunk' into issue-174-vaulting-pay-later-ux 2022-04-13 13:54:52 -04:00
dependabot[bot]
f5eb674570
Bump minimist from 1.2.5 to 1.2.6 in /modules/ppcp-button
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:32:23 +00:00
dependabot[bot]
17257107e3
Bump minimist from 1.2.5 to 1.2.6 in /modules/ppcp-vaulting
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:29:51 +00:00
Emili Castells
2fd461ed69
Merge pull request #584 from woocommerce/dependabot/npm_and_yarn/modules/ppcp-wc-gateway/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6 in /modules/ppcp-wc-gateway
2022-04-13 12:29:18 +02:00
dependabot[bot]
b9cee2a600
Bump minimist from 1.2.5 to 1.2.6 in /modules/ppcp-wc-gateway
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:25:22 +00:00
dependabot[bot]
6c20aaeeba
Bump minimist from 1.2.5 to 1.2.6 in /modules/ppcp-webhooks
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-13 10:24:04 +00:00
Emili Castells
0f1f729973
Merge pull request #561 from woocommerce/pcp-612-dcc-loading
Hide DCC order button until loaded, show spinner
2022-04-13 10:31:44 +02:00
Emili Castells
212894958e
Merge pull request #567 from woocommerce/PCP-607-add-dark-versions-of-cards
Add ability to select dark versions of Visa and Mastercard icons.
2022-04-13 10:30:59 +02:00
Emili Castells
745aaed313
Merge pull request #545 from woocommerce/PCP-478-redirect-after-updating-settings-for-dcc
Self redirect after updating DDC settings
2022-04-13 10:30:01 +02:00
Emili Castells
2d56e3ffad
Merge pull request #540 from woocommerce/PCP-347-emoji-in-product-description-causing-error
Fix the description counting when emoji is used
2022-04-13 10:29:12 +02:00
Emili Castells
97f7f644bc
Merge pull request #581 from woocommerce/pcp-475-free-trial
Free trial
2022-04-13 10:28:26 +02:00
Emili Castells
aa9d4c64cb
Merge pull request #563 from woocommerce/PCP-594-card-processing-doesnt-appear
Store card processing gateway "enabled" config as a string.
2022-04-13 10:27:25 +02:00
Alex P
901ecdd1d9 Remove unused imports 2022-04-13 11:17:58 +03:00
Alex P
4cecb908e6 Add tests 2022-04-13 10:40:28 +03:00
Alex P
4c5f0552f9 Remove unneeded token confirmation attempts 2022-04-13 10:40:09 +03:00
Alex P
87aed70199 Improve spinner before redirect 2022-04-12 18:40:24 +03:00
Alex P
9370eba320 Fix mini-cart free trial check 2022-04-12 17:20:32 +03:00
Alex P
1b5052a858 Merge branch 'trunk' into pcp-475-free-trial 2022-04-12 15:32:31 +03:00
Alex P
b928e5aaa4 Remove additional paypal buttons for free trial 2022-04-12 15:29:23 +03:00
Alex P
c701b46a40 Remove paypal buttons for free trial everywhere except checkout 2022-04-12 15:12:21 +03:00
Alex P
1c0df35f53 Handle free trial for paypal
Vault account without payment
2022-04-12 14:59:07 +03:00
Emili Castells
22faea20d6
Merge pull request #559 from woocommerce/pcp-610-onboarding-logging
Onboarding errors improvements
2022-04-12 09:19:58 +02:00
Emili Castells
ecf3feab62
Merge pull request #538 from woocommerce/PCP-574-filter-to-modify-sending-data
Add filter to allow modifying of order creation request body data
2022-04-12 09:16:08 +02:00