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 |
|
Mészáros Róbert
|
d31987ed46
|
Pass PayPalCommerceGateway as a dependency
|
2020-04-09 12:56:05 +03:00 |
|
Mészáros Róbert
|
493ae20d91
|
Trigger the toggle function just in case
Sometimes the button gets disabled before the observer is registered
|
2020-04-09 12:25:45 +03:00 |
|
Mészáros Róbert
|
e3041ed5e6
|
Pass the Renderer as a dependency
|
2020-04-09 12:25:41 +03:00 |
|
Mészáros Róbert
|
986cec7fef
|
Wrapper the button toggle functionality and use that instead of relying of events
|
2020-04-09 11:54:19 +03:00 |
|
Mészáros Róbert
|
88e723bda5
|
Use the available method to toggle the buttons
|
2020-04-09 11:49:24 +03:00 |
|
Mészáros Róbert
|
5990d9766b
|
Add shouldRender method for the context bootstrappers
|
2020-04-09 10:49:37 +03:00 |
|
David Remer
|
74129c5914
|
checkout immediately after going through paypal on the checkout page
|
2020-04-09 09:33:18 +03:00 |
|
David Remer
|
a6eb731590
|
fix buttons on checkout
|
2020-04-09 09:11:45 +03:00 |
|
Mészáros Róbert
|
353deb1313
|
Don't render the button if the user approved the payment
|
2020-04-08 19:44:11 +03:00 |
|
Mészáros Róbert
|
e44b7c26d4
|
Remove redundant comment
|
2020-04-08 18:55:02 +03:00 |
|
Mészáros Róbert
|
01e88daf0a
|
Split to bootstrap logic based on the button context
|
2020-04-08 18:52:19 +03:00 |
|
Mészáros Róbert
|
4b9147fce4
|
Use the default button wrapper on the checkout
|
2020-04-08 17:50:10 +03:00 |
|
Mészáros Róbert
|
561fac7bfc
|
Use the exposed cancel selector instead of hardcoded one
|
2020-04-08 17:01:57 +03:00 |
|
Mészáros Róbert
|
17a1f40d46
|
Do not render the PP buttons if the cancel link is available as they exclude each other
|
2020-04-08 16:54:06 +03:00 |
|
Mészáros Róbert
|
74b32a1369
|
Merge branch 'master' into feature-paypal-button-on-checkout
# Conflicts:
# modules.local/ppcp-button/assets/js/button.js
# modules.local/ppcp-button/assets/js/button.js.map
|
2020-04-08 16:52:16 +03:00 |
|
David Remer
|
5824a40a08
|
add onApprove endpoint to store order in session
|
2020-04-08 16:23:33 +03:00 |
|
Mészáros Róbert
|
df2e8fb97e
|
Toggle the PP button based on the selected payment method
|
2020-04-08 15:43:31 +03:00 |
|
Mészáros Róbert
|
007a32b59c
|
Render the PP buttons in the wrapper using the default config
|
2020-04-08 15:42:58 +03:00 |
|
David Remer
|
6d93f6316a
|
execute js bootstrap after paypal.com script has been loaded.
|
2020-04-08 13:33:12 +03:00 |
|