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
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
dinamiko
0ea8a77359
Capture payment when using saved card if intent setting is capture
2021-10-19 16:25:59 +02:00
Emili Castells
cf3b6e6ab1
Merge pull request #319 from woocommerce/capture-order-action-availability
...
Do not show capture order action after capture, refund/cancel/fail
2021-10-19 09:54:36 +02:00
Alex P
b0396489c9
Extract is_voidable_authorization
2021-10-15 16:20:00 +03:00
dinamiko
b33e6b6ba2
Add pending status to voidable authorization
2021-10-15 11:32:16 +02:00
Alex P
94c3356c82
Set transaction id after manual capture
2021-10-15 09:48:29 +03:00
Alex P
58cb230867
Set transaction id for saved card payments
2021-10-14 18:46:39 +03:00
Alex P
e83db4a103
Save wc order after setting transaction id
2021-10-14 18:46:21 +03:00
Alex P
c8819086d8
Extract transaction functions to trait
2021-10-14 18:33:16 +03:00
dinamiko
0b25e8ae48
Fix psalm error
2021-10-14 15:55:23 +02:00
dinamiko
457ebeeb8c
Move capture authorized payment into authorized payment processor
2021-10-14 15:45:57 +02:00
Alex P
d40384aa1a
Set transaction id for authorization
2021-10-14 16:34:03 +03:00
dinamiko
ab0ed12495
Merge branch 'trunk' into PCP-327-prevent-subscription-from-being-
2021-10-14 10:34:26 +02:00
Alex P
3330ad34da
Merge remote-tracking branch 'origin/trunk' into capture-order-action-availability
2021-10-13 17:51:21 +03:00
Alex P
d91131cb06
Fix null access
2021-10-13 17:34:47 +03:00
dinamiko
a42ae3567f
Merge trunk
2021-10-13 16:13:42 +02:00
Alex P
6f45ed3472
Remove unneeded nullability
2021-10-13 16:28:40 +03:00
Alex P
e1f4f9763d
Merge branch 'trunk' into capture-order-action-availability
2021-10-13 15:59:26 +03:00
Alex P
10937144a1
Add typehint
2021-10-13 15:02:10 +03:00
dinamiko
f405778bdc
Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into bug/fix-project-configuration
2021-10-13 10:55:38 +02:00
Alex P
936915e53c
Do not show capture order action after capture, refund/cancel/fail
2021-10-11 17:36:59 +03:00
Alex P
c84a2832a1
Show reason text instead of enum value
2021-10-08 18:15:22 +03:00
Alex P
5b197a003a
Do not add 'successfully captured' note for pending captures
2021-10-08 18:14:15 +03:00
dinamiko
df95276372
Fix credit card gateway constructor parameters
2021-10-08 16:05:24 +02:00
Alex P
f4d82e0de8
Fix namespace name, remove classmap
2021-10-08 10:23:19 +03:00
dinamiko
e36d77fad2
Merge trunk (WIP)
2021-10-07 17:36:29 +02:00
Alex P
e02926a033
Rename new classes
2021-10-07 18:09:06 +03:00
Alex P
c65df28d54
Merge branch 'trunk' into bug/fix-project-configuration
2021-10-07 18:04:36 +03:00
Alex P
fb3c4f0101
Quick fix handling of capture statuses after capturing via order action
2021-10-07 10:59:13 +03:00
Alex P
06ee070c87
Allow voiding pending authorizations
2021-10-07 09:30:26 +03:00
Alex P
98bd5bd245
Extract/refactor order status changes, fix denied payment handling
2021-10-07 09:23:03 +03:00
Alex P
64c6854873
Use payment_complete()
...
Not sure which way is better, but we should choose one
2021-10-06 19:07:07 +03:00
Alex P
b7fcee1179
Stop if failed to handle saved card payment
2021-10-06 18:53:49 +03:00