Commit graph

8565 commits

Author SHA1 Message Date
Mészáros Róbert
48176a18a7 Read the intent from the WC settings 2020-04-13 15:26:30 +03:00
Mészáros Róbert
8627fddede Merge branch 'master' into feature/create-order-intent-authorize
# Conflicts:
#	modules.local/ppcp-api-client/services.php
#	modules.local/ppcp-api-client/src/Endpoint/OrderEndpoint.php
#	modules.local/ppcp-wc-gateway/src/WcGatewayModule.php
2020-04-13 15:22:36 +03:00
David Remer
33c256c48b
Merge pull request #5 from inpsyde/refactor/settings-class
Use a base gateway class with minimal config
2020-04-13 15:17:23 +03:00
Mészáros Róbert
84fd6e552d Use a base gateway class with minimal config 2020-04-13 14:57:53 +03:00
Mészáros Róbert
cd1da8c460 Move the logic to Gateway 2020-04-13 14:25:20 +03:00
David Remer
6aa87da598
Merge pull request #4 from inpsyde/feature/configure-gateway-notice
Add configure gateway admin notice
2020-04-13 14:19:49 +03:00
David Remer
bf39506270 more tests 2020-04-13 13:52:43 +03:00
Mészáros Róbert
35cceed231 WIP authorize order from admin panel 2020-04-13 12:39:34 +03:00
Mészáros Róbert
846d351f4a Store the PayPal order id so we can use it later 2020-04-13 12:38:36 +03:00
David Remer
30fa8b2ff2 remove test logs 2020-04-13 12:35:43 +03:00
David Remer
e7623c1dd8 add first tests 2020-04-13 12:35:27 +03:00
David Remer
7dc1d89c74 add unknown code to response error object 2020-04-13 12:14:16 +03:00
David Remer
0a4d6d61f2 Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway 2020-04-13 11:53:00 +03:00
David Remer
76b3733417 add error response object 2020-04-13 11:52:50 +03:00
Mészáros Róbert
35afcb5d2c For now pass the intent type as dependency 2020-04-13 11:52:24 +03:00
Mészáros Róbert
f4fd1d8b7d Capture the order only if the intent is capture 2020-04-13 11:25:01 +03:00
Mészáros Róbert
717b7d1689 Add intent type to the smart button URL param 2020-04-13 11:24:33 +03:00
Mészáros Róbert
07bda403e3 Add setting field for intent 2020-04-13 11:23:55 +03:00
David Remer
5ca109ec97 add babel-plugin-transform-object-rest-spread 2020-04-13 09:31:34 +03:00
David Remer
79a6c6d7c3 introduce payeeRepository // PCP-8 2020-04-13 09:07:20 +03:00
Mészáros Róbert
f67bac7c43 Fix setting the shipping to null in PurchaseUnitFactory
The country code can be empty because the shipping is not mandatory information.
If it's not configured from WC the value is empty. Fixes #3
2020-04-10 20:21:05 +03:00
David Remer
89a9daff7f add payee repository 2020-04-10 16:39:25 +03:00
David Remer
2182147f11 Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway 2020-04-10 12:56:02 +03:00
David Remer
99c6bed2ef add caching module 2020-04-10 12:55:50 +03:00
David Remer
47b9fc8894 reset shipping if incomplete 2020-04-10 12:55:01 +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
600dd76dd3 Set the title and the description from the client settings
This way the user can display the title it wants on the frontend
2020-04-10 12:53:22 +03:00
Mészáros Róbert
2974ac9ad8 Rename ConnectNotice to ConnectAdminNotice 2020-04-10 12:36:42 +03:00
Mészáros Róbert
3cb0f9c19e Display a notice when the plugin is activated but the gateway is not configured 2020-04-10 12:20:08 +03:00
Mészáros Róbert
9152c4e618 Update babel, webpack dependencies to fix some compilation error 2020-04-10 11:10:18 +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
3f8b3ba85c Pass the color and shape option from the settings to the button style 2020-04-09 19:23:10 +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
6f5f8b5f41 Switch the hook for the cart wrapper to play more nicely with the default theme
By switching we remove the double margin between the default and PP buttons
2020-04-09 18:59:55 +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
Mészáros Róbert
7e8511732e Code Beautifier and Fixer 2020-04-09 18:15:57 +03:00
Mészáros Róbert
ab55b2dfc9 Only render the button wrapper if it's enabled from settings 2020-04-09 18:15:44 +03:00
Mészáros Róbert
3f81faa045 Add title, description and button context enabler settings 2020-04-09 18:14:27 +03:00
David Remer
bd8e69129f
Merge pull request #2 from inpsyde/feature-separate-context-bootstappers
Separate bootstrap logic based on the button context
2020-04-09 15:10:10 +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
f6051f56f2 Disable PHPCS rules as it implements an interface 2020-04-09 14:48:25 +03:00
Mészáros Róbert
8ff6ef7bd5 Run Code Beautifier and Fixer 2020-04-09 14:36:52 +03:00
Mészáros Róbert
984b0a23e9 Implement Container interface for the Settings 2020-04-09 14:35:19 +03:00
Mészáros Róbert
bc3234647c Don't render the button of the gateway is temporarily disabled 2020-04-09 14:34:45 +03:00
Mészáros Róbert
d7f2e33e60 Add settings and settings field class 2020-04-09 14:06:22 +03:00
David Remer
8a16329c29 add more params to the js-sdk-url 2020-04-09 13:06:02 +03:00
Mészáros Róbert
9fcc70f837 Add compiled assets file 2020-04-09 12:57:39 +03:00