Commit graph

74 commits

Author SHA1 Message Date
David Remer
7db17b6426 rerender when price on single product changes 2020-08-19 13:40:29 +03:00
David Remer
51d89a8d4a render message on checkout only when paypal payment method is selected 2020-08-19 11:50:02 +03:00
David Remer
1011d4daf8 render messages via javascript 2020-08-19 10:27:53 +03:00
David Remer
772fcf2f03 visual improvements 2020-08-18 12:08:45 +03:00
David Remer
07524cf106 seperate dcc and buttons on checkout 2020-08-18 11:38:41 +03:00
David Remer
3504a4ba34 resolve merge conflict 2020-08-18 10:12:07 +03:00
David Remer
0fbc667a49 remove dcc from product-page/mini-cart and cart 2020-08-18 10:04:23 +03:00
David Remer
0e9f329c5e Merge branch 'PCP-32-layout-options-per-context' 2020-08-17 19:58:35 +03:00
David Remer
5de78e1aab add styles per context 2020-08-14 10:28:24 +03:00
David Remer
56b510e8fc load data-client-id via endpoint when needed 2020-08-13 14:20:47 +03:00
David Remer
1ea7d9968a add generic error message for button 2020-07-28 08:05:18 +03:00
David Remer
7c5918eba3 disable option to store credit card details when on subscription 2020-07-23 14:41:47 +03:00
David Remer
158db47134 add vault option, add logic for not rendering buttons when subscription but no vaulting enabled 2020-07-23 14:12:29 +03:00
David Remer
7c5f412e30 submit dcc form also on input enter 2020-07-22 14:17:42 +03:00
David Remer
29f712f185 validate credit card data 2020-07-22 14:12:49 +03:00
David Remer
9d974be95d always load js logic and styles as an item might newly be added to the cart 2020-07-20 11:49:59 +03:00
David Remer
e2dfaf7f99 add credit-card-wrapper element 2020-07-20 11:20:12 +03:00
David Remer
a4b976c59d add styles for minicart dcc fields 2020-07-20 11:09:34 +03:00
David Remer
10fdf09379 add styles for hosted fields 2020-07-17 11:47:00 +03:00
David Remer
514619ed8d make sure restart action exists 2020-07-16 13:41:14 +03:00
David Remer
ec199d2bfc move to error message 2020-07-16 13:17:46 +03:00
David Remer
bfa148b753 add error handler to approve handler for paynow 2020-07-16 13:14:35 +03:00
David Remer
ec680a7191 restart when onApprove fails 2020-07-16 12:16:06 +03:00
David Remer
e4a4ec3acb prepare for bn codes 2020-07-15 19:49:32 +03:00
David Remer
dd0f12a29f phpcs 2020-07-15 11:15:07 +03:00
David Remer
c997f17863 typo 2020-07-13 15:15:31 +03:00
David Remer
f8940d1b67 some dummy code 2020-07-13 15:06:34 +03:00
David Remer
4225bdfd4c init 3d secure in paypal sdk 2020-07-13 09:55:22 +03:00
David Remer
fb605ab9dc hide dcc fields if the fields should not be rendered 2020-07-10 11:11:13 +03:00
David Remer
21937aaf52 do not load script when no fields to render 2020-07-10 11:10:23 +03:00
David Remer
c663fca067 hide dcc fields when variation can not be placed in cart // PCP-23 2020-07-10 11:03:42 +03:00
David Remer
94f1860e1c small bugfix where wrapper changed its type in the credit card renderer 2020-07-03 09:22:01 +03:00
David Remer
53a0c932f9 remove credit card wrapper if not possible to render hosted fields 2020-07-01 14:52:43 +03:00
David Remer
0e93df755b adjust phone handling in payerData 2020-07-01 14:15:42 +03:00
David Remer
1f297b3add fallback if payer.phone is not defined 2020-07-01 14:00:28 +03:00
David Remer
9938103edb split up where to show the credit cards 2020-04-30 16:30:23 +03:00
David Remer
bc59efeb3c make sure that element exists before changing its style 2020-04-30 15:44:15 +03:00
David Remer
23dd407fc8 init hosted fields functionality 2020-04-30 15:28:48 +03:00
David Remer
a9e0cc0cf7 PCP-13 // add payer information to mini-cart, cart and single product 2020-04-28 09:14:05 +03:00
Mészáros Róbert
cfe450f835 Pass the error message from the api up to the button's error handler
Remove the "Error:" prefix front he front-end facing error message

The notice has already the error state and it's implied
2020-04-23 17:13:12 +03:00
David Remer
7efe09f3ab send billing information when creating order // pcp-11 2020-04-16 10:29:25 +03:00
Mészáros Róbert
9f3085c9e2 Remove config overwrite test 2020-04-10 12:54:01 +03:00
Mészáros Róbert
4e0a4b8edb Configure the button from the bootstrappers
This should give us the flexibility to overwrite default configuration option on context level
2020-04-10 11:10:17 +03:00
Mészáros Róbert
42fe525a0b Return the style object from the single product config too 2020-04-09 19:30:14 +03:00
Mészáros Róbert
18bf5497a4 Pass default styles to the button config
This way we can overwrite it with user selected options
2020-04-09 19:15:28 +03:00
Mészáros Róbert
52052ad919 Create a renderer method and fix the mini cart bootstrap init logic 2020-04-09 18:46:41 +03:00
David Remer
4f20d31f66 resolve merge conflict 2020-04-09 15:08:20 +03:00
Mészáros Róbert
36ca26d27d Make the shouldRender return type more explicit 2020-04-09 15:00:51 +03:00
Mészáros Róbert
a01866549c Group the mini-cart context bootstrapper 2020-04-09 14:55:04 +03:00
Mészáros Róbert
fe2d7d170f Check if the buttons are there before rendering it
In some cases WC replaces the checkout form only partially leaving the buttons there
2020-04-09 12:57:21 +03:00