Commit graph

74 commits

Author SHA1 Message Date
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
David Remer
41f86426d8 show buttons on mini-cart and cart 2020-04-08 12:33:34 +03:00
David Remer
cc829f9756 show button on grouped products 2020-04-08 11:23:14 +03:00
David Remer
71f6622941 prepare javascript and endpoint for group products 2020-04-07 13:44:34 +03:00
David Remer
005a55c213 phpcs 2020-04-06 11:16:18 +03:00
David Remer
779eb31e4e init 2020-04-02 08:38:00 +03:00