Commit graph

493 commits

Author SHA1 Message Date
dinamiko
f03f3e5fb1 Do not rely on existing payment tokens after purchase but on webhooks 2021-12-20 11:50:26 +01:00
dinamiko
ba7bea6fa6 Merge branch 'trunk' into PCP-412-when-there-is-a-payment-saved-th 2021-12-20 11:35:57 +01:00
dinamiko
2ba986b342 Introduce vaulting payment token created webhook (wip) 2021-12-20 09:43:36 +01:00
Emili Castells
29635d9fb0
Merge pull request #412 from woocommerce/pcp-465-remove-onhold-filter
Do not block emails for on hold status
2021-12-17 14:16:54 +01:00
Alex P
5623c641e4 Allow WC Shop Managers to edit settings
https://woocommerce.com/document/roles-capabilities/
2021-12-16 18:30:35 +02:00
Alex P
e62f195b0f Do not block emails for on hold status 2021-12-16 12:38:31 +02:00
Emili Castells
2967b63fdf
Merge pull request #408 from woocommerce/pcp-315-html-input
Do not remove html for plugin settings text inputs
2021-12-15 14:16:36 +01:00
Emili Castells
a1e30a5e1f
Merge pull request #404 from woocommerce/pcp-452-saved-card-switch-to-paypal
Fix saved card method check
2021-12-15 09:32:47 +01:00
Alex P
151484165d Do not sanitize passwords 2021-12-14 18:47:52 +02:00
Alex P
583d587811 Do not remove html for plugin settings text inputs 2021-12-14 18:39:33 +02:00
Emili Castells
d5823c1254
Merge pull request #398 from woocommerce/pcp-400-show-funding-source
Show "Venmo" instead of "PayPal" when using its' button
2021-12-14 16:03:01 +01:00
Emili Castells
d3626bf967
Merge pull request #391 from woocommerce/pcp-446-prefix-input-validation
Add invoice prefix input validation
2021-12-14 16:01:10 +01:00
dinamiko
1092298038 Fix phpcs error 2021-12-14 15:10:33 +01:00
dinamiko
632c928ac3 Check if current payment exists in payment tokens 2021-12-14 11:43:04 +01:00
Alex P
b0aec0db1e Fix saved card method check 2021-12-13 17:31:48 +02:00
Alex P
9ef61a2b81 Extract funding source name/description generation 2021-12-09 18:31:21 +02:00
Alex P
222406aad6 Use "Pay via PayPal" description if settings not available 2021-12-09 17:31:12 +02:00
Alex P
f4a32a01e7 Show "Venmo" instead of "PayPal" when using its' button 2021-12-09 17:29:48 +02:00
Alex P
9cefc25543 Fix payment method change detection 2021-12-08 13:35:00 +02:00
Alex P
487e6bfb31 Check that only allowed chars are used for invoice prefix 2021-12-06 15:07:30 +02:00
Alex P
7428a4446b Limit max length of invoice prefix 2021-12-06 12:50:27 +02:00
Danae Millan
bb847b47f6 Rename function for getting the Vaulting setting description
As suggested in the PR to be more aligned with the naming convention.
2021-11-30 15:20:31 -03:00
Alex P
521cbf4e26 Require 3DS by default for PSD2 shop countries 2021-11-30 14:50:49 +02:00
Alex P
ffe32070d0 Extract shop currency, country to services 2021-11-30 10:40:38 +02:00
Alex P
1322a9dd27 Add missing funding sources to "Disable funding sources" 2021-11-25 17:11:51 +02:00
Danae Millan
a4846b64fe Fix wrong prefix for a newly added class for disabled checkbox
The prefix for the plugin is 'ppcp', not 'ppc' as it mistakenly was. Updating this for a checkbox class.
2021-11-23 22:12:32 -03:00
Danae Millan
2ddd8518ca Add missing 'use' of the RuntimeException class 2021-11-23 17:51:59 -03:00
Emili Castells
035cbe5957
Merge pull request #361 from woocommerce/pcp-125-fix-duplicated-button
Fix duplicated button and saved cards in Pay Now
2021-11-23 11:07:21 +01:00
Danae Millan
9da36095e7 Fix phpcs warning 2021-11-22 13:17:54 -03:00
Danae Millan
b42e3d5623 Disable the Vaulting checkbox on page load before handling the UI
Otherwise the Pay Later options would stay disabled when vaulting was disabled from the PayPal account.
2021-11-22 12:53:00 -03:00
Danae Millan
3d03097110 Uncheck the Pay Later checkboxes before disabling them when enabling vaulting
This way the children settings of Pay Later get hidden, keeping the interface consistent.
2021-11-22 12:29:52 -03:00
Danae Millan
004c7f7d58 Remove admin notice saying that Pay Later is disabled because of vaulting
We're now displaying this message on each Pay Later label when vaulting is enabled. Also, this message persists when vaulting is toggled, while the labels are updated dynamically. Removing this notice because of these.
2021-11-20 14:42:09 -03:00
Danae Millan
a338e727fd Switch Pay Later labels when vaulting is toggled
This way we'd display the 'Enable' label when Pay Later can be enabled, and the reason why it can't be enabled when vaulting is enabled.
2021-11-20 14:38:36 -03:00
Danae Millan
0f63be18de Don't display the admin notice saying that vaulting is disabled because of Pay Later
We're not disabling vaulting checkboxes when Pay Later is enabled anymore so this admin notice is innacurate.
2021-11-20 13:23:05 -03:00
Danae Millan
e4c39fc2e3 Remove unused localized variable and class property
Because we're not checking whether vaulting is in the account's scope in the client side, we don't need to localize this variable and the class SettingsPageAssets doesn't need the  property anymore, thus removing these.
2021-11-20 13:10:37 -03:00
Danae Millan
1d089cbfa5 Add a description to the vaulting checkbox
Enabling vaulting will disable Pay Later features. The description should make merchants aware of that.
2021-11-20 13:01:13 -03:00
Danae Millan
abe4de252b Mention enabling vaulting from the PayPal account only when it was disabled there
We were always displaying the text 'To use vaulting features, you must enable vaulting on your account' next to the checkbox for enabling vaulting. This message is irrelevant if vaulting is already enabled in the account. This commit makes that message to be displayed only when vaulting is disabled in the account.
2021-11-20 12:58:56 -03:00
Danae Millan
587d3eef53 Disable the vaulting checkbox only when vaulting isn't in the scope
Now, as long as vaulting is in the PayPal account's scope, the checkbox would always be enabled. Independently from the Pay Later settings.
2021-11-20 12:51:11 -03:00
dinamiko
c072e8550a Add retry counter meta to order to avoid duplicate invoice error on consequent tries 2021-11-18 14:45:34 +01:00
Alex P
1f8b449e38 Fix change payment check to not conflict with Pay Now 2021-11-12 18:29:30 +02:00
dinamiko
78fe636e65 Merge branch 'trunk' into PCP-305-enable-save-card-for-guest-users 2021-11-04 11:01:33 +01:00
Alex P
38ee07e547 Remove non-nullable null check 2021-11-03 10:19:29 +02:00
Alex P
b783a55d3f Remove unneeded check, it throws already 2021-11-03 10:19:04 +02:00
dinamiko
4593f060ec Do not add message under subscriptions no available gateways notice 2021-11-02 12:01:29 +01:00
dinamiko
990c9f946e Add user needs to be logged in message when subscription in the cart 2021-10-28 12:43:02 +02:00
dinamiko
3c237b6315 Do not display gateways if subscription in cart and user is not logged in 2021-10-25 16:27:05 +02:00
dinamiko
697bf3ce09 Fix phpcs errors 2021-10-20 15:32:57 +02:00
dinamiko
c019795ac7 Fix duplicate parameter in constructor assigment 2021-10-20 15:22:39 +02:00
dinamiko
e3a793e3e5 Fix merge conflicts 2021-10-20 15:01:53 +02:00
dinamiko
6649a362f6 Capture payment only if intent setting is capture 2021-10-20 10:40:46 +02:00