Commit graph

493 commits

Author SHA1 Message Date
dinamiko
0ea8a77359 Capture payment when using saved card if intent setting is capture 2021-10-19 16:25:59 +02:00
Emili Castells
cf3b6e6ab1
Merge pull request #319 from woocommerce/capture-order-action-availability
Do not show capture order action after capture, refund/cancel/fail
2021-10-19 09:54:36 +02:00
Alex P
b0396489c9 Extract is_voidable_authorization 2021-10-15 16:20:00 +03:00
dinamiko
b33e6b6ba2 Add pending status to voidable authorization 2021-10-15 11:32:16 +02:00
Alex P
94c3356c82 Set transaction id after manual capture 2021-10-15 09:48:29 +03:00
Alex P
58cb230867 Set transaction id for saved card payments 2021-10-14 18:46:39 +03:00
Alex P
e83db4a103 Save wc order after setting transaction id 2021-10-14 18:46:21 +03:00
Alex P
c8819086d8 Extract transaction functions to trait 2021-10-14 18:33:16 +03:00
dinamiko
0b25e8ae48 Fix psalm error 2021-10-14 15:55:23 +02:00
dinamiko
457ebeeb8c Move capture authorized payment into authorized payment processor 2021-10-14 15:45:57 +02:00
Alex P
d40384aa1a Set transaction id for authorization 2021-10-14 16:34:03 +03:00
dinamiko
ab0ed12495 Merge branch 'trunk' into PCP-327-prevent-subscription-from-being- 2021-10-14 10:34:26 +02:00
Alex P
3330ad34da Merge remote-tracking branch 'origin/trunk' into capture-order-action-availability 2021-10-13 17:51:21 +03:00
Alex P
d91131cb06 Fix null access 2021-10-13 17:34:47 +03:00
dinamiko
a42ae3567f Merge trunk 2021-10-13 16:13:42 +02:00
Alex P
6f45ed3472 Remove unneeded nullability 2021-10-13 16:28:40 +03:00
Alex P
e1f4f9763d Merge branch 'trunk' into capture-order-action-availability 2021-10-13 15:59:26 +03:00
Alex P
10937144a1 Add typehint 2021-10-13 15:02:10 +03:00
dinamiko
f405778bdc Merge branch 'trunk' of github.com:woocommerce/woocommerce-paypal-payments into bug/fix-project-configuration 2021-10-13 10:55:38 +02:00
Alex P
936915e53c Do not show capture order action after capture, refund/cancel/fail 2021-10-11 17:36:59 +03:00
Alex P
c84a2832a1 Show reason text instead of enum value 2021-10-08 18:15:22 +03:00
Alex P
5b197a003a Do not add 'successfully captured' note for pending captures 2021-10-08 18:14:15 +03:00
dinamiko
df95276372 Fix credit card gateway constructor parameters 2021-10-08 16:05:24 +02:00
Alex P
f4d82e0de8 Fix namespace name, remove classmap 2021-10-08 10:23:19 +03:00
dinamiko
e36d77fad2 Merge trunk (WIP) 2021-10-07 17:36:29 +02:00
Alex P
e02926a033 Rename new classes 2021-10-07 18:09:06 +03:00
Alex P
c65df28d54 Merge branch 'trunk' into bug/fix-project-configuration 2021-10-07 18:04:36 +03:00
Alex P
fb3c4f0101 Quick fix handling of capture statuses after capturing via order action 2021-10-07 10:59:13 +03:00
Alex P
06ee070c87 Allow voiding pending authorizations 2021-10-07 09:30:26 +03:00
Alex P
98bd5bd245 Extract/refactor order status changes, fix denied payment handling 2021-10-07 09:23:03 +03:00
Alex P
64c6854873 Use payment_complete()
Not sure which way is better, but we should choose one
2021-10-06 19:07:07 +03:00
Alex P
b7fcee1179 Stop if failed to handle saved card payment 2021-10-06 18:53:49 +03:00
Alex P
45249966e9 Add missing order meta 2021-10-06 18:10:32 +03:00
dinamiko
1cee5d51f1 Void authorized transaction when payment is not saved 2021-10-06 15:57:57 +02:00
Alex P
df68c948b9 Refactor payment error handling 2021-10-06 16:03:38 +03:00
dinamiko
a21aa9111a Merge branch 'trunk' into PCP-327-prevent-subscription-from-being- 2021-10-06 12:35:08 +02:00
Alex P
571b85ec61 Do not render capture status for refunded 2021-10-06 12:30:26 +03:00
Alex P
25b3bd148f Refactor capture status rendering 2021-10-06 12:26:54 +03:00
dinamiko
c32f94f577 Update subscription status to cancelled when payment is not saved 2021-10-05 17:30:00 +02:00
dinamiko
507fd2bfb2 Capture authorized order if payment saved correctly 2021-10-05 15:18:17 +02:00
Alex P
2405c7e801 Fix indent 2021-10-05 15:24:39 +03:00
Alex P
537fab4d28 Merge branch 'trunk' into void-transaction 2021-10-05 15:20:00 +03:00
Alex P
48a6a8069f Set refunded status after void 2021-10-05 15:19:50 +03:00
dinamiko
a592b57848 Force authorization intent when purchasing subscription product 2021-10-05 12:12:19 +02:00
Alex P
ea7f56c402 Handle denied authorization when capturing via order action
If nothing to capture and do not have captures, then show error.
2021-10-05 08:57:55 +03:00
Alex P
06e437e0c3 Refactor logging, add missing logging 2021-10-04 19:16:50 +03:00
Alex P
07928c9935 Return status instead of bool + last_status 2021-10-04 18:36:30 +03:00
Alex P
85f3b184b2 Void all voidable authorizations 2021-10-04 15:47:44 +03:00
Alex P
4b3bba941a Void non-captured authorizations instead of refunding 2021-10-04 10:37:52 +03:00
dinamiko
e74283e7f2 Fix phpcs errors 2021-10-01 10:50:24 +02:00