Commit graph

6353 commits

Author SHA1 Message Date
Mészáros Róbert
751260c00a Make Order createTime optional
When the intent is set to authorize and the status is completed in many cases the created time is not returned back
2020-04-15 11:39:42 +03:00
Mészáros Róbert
c6b5948499 Add missing return type 2020-04-15 11:27:38 +03:00
Mészáros Róbert
117e3f54be Add returned data to toArray method 2020-04-15 11:27:26 +03:00
Mészáros Róbert
edf4972c3a Fix variable assignment 2020-04-15 11:27:00 +03:00
Mészáros Róbert
d989617f69 Pass the errors to the ErrorResponse handler 2020-04-15 11:14:45 +03:00
Mészáros Róbert
df9a74d551 Add type hint and docblock for the type 2020-04-15 10:57:46 +03:00
Mészáros Róbert
64340578c7 Merge branch 'master' into feature/create-order-intent-authorize 2020-04-14 19:20:00 +03:00
Mészáros Róbert
c7f437b2b6 WIP payment capture 2020-04-14 19:19:29 +03:00
Mészáros Róbert
7d0e3d2e38 Add Payments to the PurchaseUnit 2020-04-14 19:18:59 +03:00
Mészáros Róbert
6c1dec1c3a Rename AuthorizationFactory file and fix variable 2020-04-14 19:16:04 +03:00
Mészáros Róbert
d1af783f34 Add missing captured status 2020-04-14 19:15:32 +03:00
Mészáros Róbert
676216415b Only set the status to processing of the intent was capture 2020-04-14 16:11:10 +03:00
Mészáros Róbert
210b7d6845 Create and pass the payments endpoint to the gateway 2020-04-14 16:08:24 +03:00
Mészáros Róbert
04cf4363a6 Code Beautifier and Fixer 2020-04-14 16:03:04 +03:00
Mészáros Róbert
d94cb24393 Don't throw an error if the order was already authorized 2020-04-14 16:02:10 +03:00
Mészáros Róbert
c6c931dc5c Authorize the order/payment during the checkout process 2020-04-14 15:39:55 +03:00
Mészáros Róbert
584a1f4a3a Create Authorization entity 2020-04-14 15:38:59 +03:00
Mészáros Róbert
5042ab9e45 Merge branch 'master' into feature/create-order-intent-authorize 2020-04-14 12:11:41 +03:00
David Remer
d6d7db48c2 Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway 2020-04-14 11:58:41 +03:00
David Remer
bf58928c2e add purchaseunittest for paypal response 2020-04-14 11:58:29 +03:00
Mészáros Róbert
feb953e5b4 Fix missing Item Factory 2020-04-14 11:35:32 +03:00
Mészáros Róbert
c497803d49 Fix missing return 2020-04-14 11:33:51 +03:00
Mészáros Róbert
479572cfc7 Merge branch 'master' into feature/create-order-intent-authorize
# Conflicts:
#	modules.local/ppcp-api-client/services.php
#	modules.local/ppcp-button/src/Assets/SmartButton.php
2020-04-14 11:22:31 +03:00
Mészáros Róbert
49071e2d9c Remove todo 2020-04-14 11:18:46 +03:00
David Remer
f270ceca9b rename method in itemfactory 2020-04-14 11:00:52 +03:00
David Remer
eb6a0369b9 Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway 2020-04-14 10:43:49 +03:00
David Remer
ae2ce64b70 use Mockery 2020-04-14 10:43:36 +03:00
David Remer
77c170713d do drop shipping address when no country code given in PurchaseUnitFactory::fromWcCart 2020-04-14 10:43:13 +03:00
David Remer
2d8d62c71d rearrange factories for wcorder and wccart 2020-04-14 10:00:05 +03:00
David Remer
8d11d75dd0 introduce TestCase 2020-04-14 09:58:01 +03:00
David Remer
c7aa53a8e4 resolve merge conflict 2020-04-14 08:24:45 +03:00
David Remer
70915eae3d move item construction in wc order to itemfactory 2020-04-14 08:22:35 +03:00
David Remer
19c53dd644 add purchaseunitfactorytest 2020-04-14 08:22:01 +03:00
Mészáros Róbert
b655750485 Change order string payment 2020-04-13 22:33:50 +03:00
Mészáros Róbert
ab822033a4 Merge branch 'master' into feature/create-order-intent-authorize 2020-04-13 18:20:31 +03:00
Mészáros Róbert
647a0f3c32 Call parent constructor before methods 2020-04-13 17:48:11 +03:00
David Remer
292e48942e Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway 2020-04-13 16:37:26 +03:00
David Remer
ae6fbc73f6 finish purchaseunittest 2020-04-13 16:36:31 +03:00
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