Commit graph

51 commits

Author SHA1 Message Date
Pedro Silva
9434a84301
Fix set paypal object to widgetBuilder on preview buttons 2023-07-26 15:21:31 +01: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
Narek Zakarian
eb080c9275
Merge branch 'trunk' into PCP-1083-update-standard-payments-tab-settings 2022-12-20 19:37:51 +04:00
Narek Zakarian
9c6a813776
Refactor settings JS code to work for standard tab 2022-12-05 15:28:45 +04:00
Narek Zakarian
6045c3855b Refactor FraudNet namespace, isn't related specially to PUI 2022-11-23 17:59:46 +04:00
Narek Zakarian
769699763d
Merge pull request #993 from woocommerce/PCP-965-update-default-settings-for-pay-pal-buttons-and-pay-later-messaging
Update button defaults & setting descriptions
2022-11-18 18:37:32 +04:00
Narek Zakarian
09a30203dc Fix preview fro Mini-cart 2022-11-18 13:00:29 +04:00
Narek Zakarian
dd03f02999 Don't show Pay Later button if locations are empty 2022-11-17 17:16:07 +04:00
Narek Zakarian
2775f7dd9d Disable funding soures for Pay Later preview 2022-11-17 16:58:58 +04:00
Narek Zakarian
7051e86003 Improve standard button preview code. 2022-11-17 15:50:46 +04:00
Alex P
d5d2a4fca5
Hide tagline settings when not horizontal layout 2022-11-16 08:17:08 +02:00
Alex P
3e66958880
Hide checkout layout settings when using separate card button 2022-11-15 18:21:46 +02:00
Narek Zakarian
7a463e10fe Consider funding sources for Pay Later preview 2022-11-10 16:11:36 +04:00
Narek Zakarian
d0f26fb891 consider disabled funding sources setting for pay later preview 2022-11-10 15:16:35 +04:00
Narek Zakarian
ac420a6d7e Fix Pay Later button admin preview 2022-11-09 17:58:25 +04:00
Alex P
ed2479f95c Do not load paypal sdk when settings page without previews 2022-11-04 10:05:32 +02: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
dinamiko
ae11b15164 Do not show subscription behavior setting if subscriptions plugin is not active 2022-09-02 12:59:53 +02:00
dinamiko
e1cd7d5ad1 Add update status note for capture denied 2022-07-20 11:37:28 +02:00
dinamiko
859c99aa49 Get payer action from gateway response and use it for opening the modal 2022-07-15 12:13:38 +02:00
dinamiko
52c3cc72a8 Open payer action in modal window 2022-07-12 14:44:08 +02:00
dinamiko
cee42e7d4e Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice 2022-05-17 16:56:21 +02:00
dinamiko
5bf95fbca3 Get session id from request when page is pay for order 2022-05-11 16:11:05 +02:00
dinamiko
acf7fa6d00 Add sandbox parameter to fraudnet json config 2022-04-25 15:58:30 +02:00
dinamiko
b5f63b9f47 Inject json config and retrigger fraudnet 2022-04-25 14:31:43 +02:00
dinamiko
bd77953161 Refactoring 2022-04-21 16:51:17 +02:00
dinamiko
8c7feb629d Get place order button label from filter 2022-04-14 10:54:14 +02:00
dinamiko
dcf1fd863c Remove fraudnet session id if exist before creating it 2022-04-12 15:09:28 +02:00
dinamiko
1046b9d77a Grab button label from place order button and display it on button legal text 2022-04-08 12:44:50 +02:00
dinamiko
2d60d93617 Grab button label from place order button and display it on button legal text 2022-04-08 12:35:01 +02:00
dinamiko
b6c2396e32 Grab fraudnet session id from form hidden field (WIP) 2022-03-25 14:28:27 +01:00
dinamiko
2024f2c0ab Add button legal text inside gateway box description 2022-03-24 16:27:03 +01:00
dinamiko
753b8bae3e Get fraudNet session id from WC session 2022-03-09 16:23:03 +01:00
dinamiko
6c7eef4f58 Display legal text under place order button 2022-03-09 12:01:27 +01:00
dinamiko
2e9cc0b8af Pass hardcoded session id to test order creation 2022-03-08 11:43:05 +01:00
dinamiko
18220769a2 Introduce pay upon invoice gateway (WIP) 2022-03-07 12:54:02 +01: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
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
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
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
145b8085ab Check if variable exist before calling it, persist vault enabled when token creation fails 2021-07-27 10:47:16 +02:00
dinamiko
ccf357d790 Disable vault setting if vaulting feature is not available in access token 2021-04-29 17:40:41 +02:00
dinamiko
ea23200de6 Consolidate vaulting settings in one single one 2021-04-23 10:33:28 +02:00
Kirill Braslavsky
5ae2628d0b add missed line break at the EOF 2021-03-25 17:17:04 +02:00
Kirill Braslavsky
593b15487d fix option id 2021-03-25 15:42:28 +02:00
Kirill Braslavsky
99d4911581 allow to use CC vaulting with pay later messaging 2021-03-25 13:22:09 +02:00