Commit graph

7400 commits

Author SHA1 Message Date
Mészáros Róbert
40d23710c6 Return the SessionHandler if WC session is null
Without this REST API request on the admin side return 500 as the is_admin check is not enough
2020-04-09 10:15:10 +03:00
David Remer
4a5e805534 fix context for checkout. do not assign checkout context when already in a paypal session 2020-04-09 09:33:57 +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
David Remer
8ff6ba320e add commit=false to script when not in checkout 2020-04-09 09:10:25 +03:00
David Remer
1725335e0b add discounts when creating orders 2020-04-09 09:10:24 +03:00
David Remer
20f7adc9bf fix address mapping 2020-04-09 09:10:24 +03:00
Mészáros Róbert
9f1a633ad9 Add compiled assets file 2020-04-08 19:44:23 +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
d500691730 Add compiled assets file 2020-04-08 18:55: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
b139bb44e8 Add compiled assets file 2020-04-08 18:52:25 +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
David Remer
774ae69762
Merge pull request #1 from inpsyde/feature-paypal-button-on-checkout
PayPal button on checkout
2020-04-08 17:17:52 +03:00
Mészáros Róbert
7e88360436 Add compiled assets file 2020-04-08 17:02:06 +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
912ed1eeb6 Code formatting 2020-04-08 17:00:59 +03:00
Mészáros Róbert
5af13e24e7 Expose cancel button wrapper selector to JS 2020-04-08 17:00:47 +03:00
Mészáros Róbert
70e33d8301 Add compiled assets file 2020-04-08 16:54:18 +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
David Remer
7c2bc5a8da remove sessionHandler from orderEndpoint in api 2020-04-08 16:22:54 +03:00
Mészáros Róbert
72f3bd5acc Add compiled assets file 2020-04-08 15:43:42 +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
2bd8807d11 destroy session data 2020-04-08 15:31:22 +03:00
Mészáros Róbert
bb7dea7066 Make the order button wrapper selector available to JS 2020-04-08 15:31:22 +03:00
Mészáros Róbert
4812c94bf0 Add action to render the order button wrapper 2020-04-08 15:31:05 +03:00
David Remer
1ca7904742 text-align cancel button, some small refactor 2020-04-08 15:04:20 +03:00
David Remer
40e9d3b66a add cancel mechanism for paypal order 2020-04-08 14:57:35 +03:00
David Remer
ff3358f1a8 show title for payment gateway in frontend 2020-04-08 14:30:43 +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
cc732840b1 make sure breakdown exists when accessing subentities 2020-04-08 12:32:17 +03:00
David Remer
6ddcaeea5b phpcs 2020-04-08 11:23:25 +03:00
David Remer
cc829f9756 show button on grouped products 2020-04-08 11:23:14 +03:00
David Remer
5843809e2b ditch line items when amount mismatch 2020-04-08 11:22:31 +03:00
David Remer
9f0ef14485 simplify calculation 2020-04-08 11:21:31 +03:00
David Remer
3c93107eb9 make sure money values are always only 2 decimals 2020-04-08 11:18:52 +03:00
David Remer
b5946d43ec remove debug code 2020-04-07 13:45:06 +03:00
David Remer
71f6622941 prepare javascript and endpoint for group products 2020-04-07 13:44:34 +03:00
David Remer
fa137d49b8 update shipping when patchingorder 2020-04-07 13:43:35 +03:00
David Remer
14d51bd474 get correct brutto price when calculating the purchase units item. ->get_price() does not take the different tax types into account, which might apply to a loggedin customer. 2020-04-06 14:22:57 +03:00
David Remer
005a55c213 phpcs 2020-04-06 11:16:18 +03:00
David Remer
7fd57b9393 2nd chunk 2020-04-06 10:51:56 +03:00
David Remer
779eb31e4e init 2020-04-02 08:38:00 +03:00
David Naber
ba97d7143d Simplify test suite name 2020-03-19 16:48:07 +01:00
David Naber
2d4c4f78ec Initial commit 2020-03-19 16:47:08 +01:00