1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 17:01:33 +02:00
Commit Graph

446 Commits

Author SHA1 Message Date
Benjamin Beganović
874732f55d fix translation reference 2021-01-28 15:42:11 +01:00
David Bomba
cc7a1876d0 Fixes for ledger - not adjusting for gateway fees 2021-01-28 15:21:04 +11:00
David Bomba
756f421319 Add gateway fees for autobill 2021-01-28 08:31:31 +11:00
Benjamin Beganović
d7277b7c6d wip 2021-01-27 15:58:19 +01:00
Benjamin Beganović
44f6dd3e4d Define countries availability for Stripe 2021-01-27 13:36:10 +01:00
Benjamin Beganović
0ff531fafa ACH: Fix white screen
- Pass token hashed_id instead of token value
2021-01-27 13:07:01 +01:00
Benjamin Beganović
84e888863f Authorize.net: Throw a PaymentFailed exception if token not found
Checkout.com: Throw a PaymentFailed exception if token not found
- Show "Client portal" button even when invoice is paid
- Authorize.net: Pass token hashed_id instead of token to frontend
- Checkout.com: Pass token hashed_id instead of token to frontend
- Show "Paid" label for paid invoices
- Translation for not found token
2021-01-27 12:45:38 +01:00
Benjamin Beganović
0c7ae3bca8
Merge pull request #4775 from beganovich/v5-2701-disable-google-apple-pay
(v5) Disable SEPA, Apple, Google PAY
2021-01-27 12:01:24 +01:00
Benjamin Beganović
b11972c369 disable sepa & applepay 2021-01-27 12:00:42 +01:00
David Bomba
9b72acf506 Payment notifications for autobilling 2021-01-27 21:56:50 +11:00
David Bomba
b4bf6cc760 Add document list view 2021-01-27 21:38:28 +11:00
David Bomba
af47c504e4 Working on payment failed emails 2021-01-27 19:45:55 +11:00
David Bomba
b5ff2d8a02 Fixes for company gateway payment method resolution 2021-01-27 12:06:25 +11:00
Benjamin Beganović
150a6622cd
Merge pull request #4767 from beganovich/v5-2601-fix-instance-of-gateway-authorize
(v5) Fix not showing required gateway fields for Authorize.net
2021-01-26 13:31:42 +01:00
Benjamin Beganović
d537d012a1 fix instance 2021-01-26 13:29:27 +01:00
David Bomba
bd02d7babd Fixes for payment failer mailer 2021-01-26 23:09:08 +11:00
David Bomba
09c23e6654 Fixes for refunds / logging 2021-01-26 21:03:50 +11:00
David Bomba
ae3a7fa182 Fixes for refunds / logging 2021-01-26 21:02:12 +11:00
David Bomba
ed853efd19 Additional logging 2021-01-26 20:53:18 +11:00
David Bomba
d127643405 Fix for auth.net autobill 2021-01-26 20:42:55 +11:00
David Bomba
e1ae7688a8 Fix for auth.net autobill 2021-01-26 20:39:52 +11:00
David Bomba
7b08355c75 Fix for auth.net autobill 2021-01-26 20:38:11 +11:00
David Bomba
c664428a81 Fix for auth.net autobill 2021-01-26 20:31:28 +11:00
David Bomba
31ff7fcc39 Fix for auth.net autobill 2021-01-26 20:17:27 +11:00
David Bomba
eb31c6b6d4 Fix for auth.net autobill 2021-01-26 20:13:53 +11:00
David Bomba
e4ae78cd41 Fix for auth.net autobill 2021-01-26 20:11:29 +11:00
David Bomba
61ea7e3897 Change thrown exception when adding payment method - auth.net 2021-01-26 16:37:45 +11:00
Benjamin Beganović
64e6dad248
Merge branch 'v5-develop' into v5-2001-gateways-and-new-tokens 2021-01-25 16:47:58 +01:00
Benjamin Beganović
fb66bfbe71 wip 2021-01-25 16:46:40 +01:00
Benjamin Beganović
f5f257292c wip 2021-01-25 16:12:21 +01:00
David Bomba
af523a6346 detach payment method from authorize gateway 2021-01-25 23:16:43 +11:00
David Bomba
64dfe1d6c3 Minor fix for authorize.net 2021-01-25 22:48:12 +11:00
David Bomba
6540a25531 Refactor client numbering 2021-01-25 21:34:12 +11:00
David Bomba
8e06644fac Track payment ID with Activity 54 2021-01-25 07:55:04 +11:00
Benjamin Beganović
713a95d3b2 ACH (Stripe):
- Pass instance of $gateway to authorize page for fields  verification
- Support for multiple tokens
2021-01-21 15:53:37 +01:00
Benjamin Beganović
056bee1c47 Credit card (Stripe):
- Wrapped Stripe card widget into div
- Default intent option is setup_future_use now
- Support for token billing
2021-01-21 14:03:38 +01:00
David Bomba
c173fdcc5b Fixes for ledger 2021-01-21 15:42:30 +11:00
Benjamin Beganović
2fccfe2df1 - Rewrite of checkout-credit-card.js
- Fixed bug with detach() on driver class
- Changed the way token checking works from frontend
- Support for multiple payment methods on payment page
- Changed save card label to "Save payment method details"
- Updated relevant Javascript assets
2021-01-20 16:19:01 +01:00
Benjamin Beganović
4413580b39 Add authorize view for SOFORT 2021-01-19 16:07:58 +01:00
Benjamin Beganović
617cc54de9 - Pass instance of AuthorizePaymentDriver.php as $gateway instead of CompanyGateway record
- Define required fields for AuthorizePaymentDriver.php
- Update references to $gateway (CompanyGateway)
- Pass $countries to required-client-info.blade.php
- Handle country submission for required-client-info.blade.php
- Only show non-filled fields in RequiredClientInfo.php
2021-01-19 14:36:07 +01:00
Benjamin Beganović
8ed701519b Change views to authorize.blade & pay.blade
Change structure to use the new one
Add $data to pay now button
2021-01-19 14:03:18 +01:00
Benjamin Beganović
6295a2647d refactor authorize.blade.php 2021-01-19 13:43:03 +01:00
David Bomba
a33c781919 Payment notifications for online payments to the client 2021-01-18 08:31:49 +11:00
David Bomba
bf6436e350 Catch exception in Authorize - failedResponse method 2021-01-14 11:47:32 +11:00
David Bomba
ee85a6487c
Merge pull request #4670 from beganovich/v5-jan12-required-fields
(v5) Required fields for gateways
2021-01-14 07:55:27 +11:00
Benjamin Beganović
0c91226352 fix authorize 2021-01-13 15:36:28 +01:00
Benjamin Beganović
253e2254ef Remove redirect redirect 2021-01-13 13:41:20 +01:00
Benjamin Beganović
9975691ef4 Remove redirect redirect 2021-01-13 13:41:04 +01:00
Benjamin Beganović
b755daf7f5 - AuthorizePaymentDriver.php rules 2021-01-13 13:34:21 +01:00
Benjamin Beganović
b014aecc7d - Add getClientRequiredFields in BaseDriver.php
- Pass $fields in @required-client-info
- Don't show form if fields are satisfied
- Remove $gateway reference in RequiredClientInfo.php
- StripePaymentDriver.php required fields
- Removed old-redirect logic for required fields
2021-01-13 13:31:00 +01:00
David Bomba
f0bf26ad14 Fixes for system logging successful gateway responses" 2021-01-12 20:35:47 +11:00
David Bomba
3cb4585880 Fixes for migrations 2021-01-12 09:14:52 +11:00
David Bomba
63087de0bc Fix for tests (typo) 2021-01-12 09:06:56 +11:00
David Bomba
9bc27c05d3 remove loggin 2021-01-06 22:28:43 +11:00
David Bomba
04d8bcccb1 Fix for error handling in PayPal driver 2021-01-06 20:28:48 +11:00
David Bomba
47f42b804d Fixes for partial credit payments" 2021-01-06 16:54:04 +11:00
David Bomba
3ee3f67c8c Fixes for over payments 2021-01-06 16:14:20 +11:00
David Bomba
6d366febd8 Fixes for paypal driver 2021-01-06 13:26:40 +11:00
David Bomba
934610a01c Update copyright + version bump + set canadian dollar symbol to $ 2021-01-04 08:54:54 +11:00
=
7a058c9ae6 Move logging to nlog 2020-12-30 08:10:03 +11:00
Benjamin Beganović
f6758873e7 PayPal: Update amount with fee 2020-12-21 12:10:47 +01:00
Benjamin Beganović
0b95e8c8bc Checkout.com: Update amount with fee 2020-12-21 12:10:39 +01:00
Benjamin Beganović
24d76e98f0 Authorize.net: Update amount with fee 2020-12-21 12:10:28 +01:00
Benjamin Beganović
5a8dfd85eb Apply php-cs-fixer 2020-12-21 11:46:46 +01:00
Benjamin Beganović
7764833037 Update Stripe's amount with fee:
- Update Sofort to support latest architecture for payments
2020-12-21 11:46:10 +01:00
Benjamin Beganović
6fa90c7060 Change webhook order 2020-12-17 12:47:46 +01:00
Benjamin Beganović
942652b668 Update webhooks to support Checkout.com & apply php-cs-fixer 2020-12-17 12:27:15 +01:00
Benjamin Beganović
d3033c902d wip 2020-12-16 15:25:42 +01:00
Benjamin Beganović
9662d9af92 Update webhooks for Checkout:
- Update api.php -> gateway_key => company_gateway_id
- Pass correct reference to url in CreditCard.php
- Update PaymentWebhookController.php to support new company_gateway_id
- Update PaymentWebhookRequest.php to resolve company gateway from correct input
2020-12-16 13:47:10 +01:00
Benjamin Beganović
5f796aeab6 php-cs-fixer 2020-12-10 12:38:46 +01:00
Benjamin Beganović
9df4938837 change gateway type & remove processPayment 2020-12-10 12:38:23 +01:00
Benjamin Beganović
d45571d7f9 wip 2020-12-09 15:17:48 +01:00
Benjamin Beganović
a92d38ae06 php-cs-fixer 2020-12-07 14:56:23 +01:00
Benjamin Beganović
5c89fdab02 pass client id in paymentResponse 2020-12-07 14:50:43 +01:00
Benjamin Beganović
7818afddf8 getParent() ref to utilities 2020-12-07 14:50:30 +01:00
Benjamin Beganović
fdafc068bb processWebhookRequest for checkoutpaymentdriver 2020-12-07 14:49:56 +01:00
David Bomba
34463eac64
Merge branch 'v5-develop' into v5-develop 2020-12-04 07:41:36 +11:00
Benjamin Beganović
4959917b7e fix issue with multiple companies switching 2020-12-03 15:33:18 +01:00
Benjamin Beganović
d84f5bc5bb Fixes for Checkout.com refunding 2020-12-03 13:38:57 +01:00
David Bomba
e772a2b638 Fix for regression 2020-12-03 11:05:22 +11:00
Benjamin Beganović
00ab670d71 Checkout.com migration to Frames:
- Changed cardToken to token in CreditCard reference
- Updated checkout.com.js
- Added "Pay" translation
- Fix issue with switching between token & credt card
2020-12-02 15:33:43 +01:00
Benjamin Beganović
b373a3df52 fix stripe refunding & apply php-cs-fixer 2020-12-01 13:46:09 +01:00
David Bomba
7d96a6d389
Merge pull request #4385 from turbo124/v5-develop
Fixes for lock
2020-11-28 15:16:00 +11:00
Benjamin Beganović
4284870c4e Merge remote-tracking branch 'upstream/v5-develop' into v5-paypal-refactor 2020-11-28 01:01:18 +01:00
David Bomba
c0c7fd8de4 Minor fixes 2020-11-28 07:44:27 +11:00
Benjamin Beganović
0aff363f5d php-cs-fixer 2020-11-27 12:08:42 +01:00
Benjamin Beganović
50ae8fd608 php-cs-fixer & required fields check 2020-11-27 11:12:05 +01:00
Benjamin Beganović
5d3d31ddef paypal 2020-11-26 16:36:43 +01:00
David Bomba
1181f9de62
Merge branch 'v5-develop' into authorize_refactor 2020-11-26 22:43:25 +11:00
David Bomba
ccac432978 Fixes for authorize 2020-11-26 22:35:17 +11:00
David Bomba
dff41d4881 Fixes for authorize 2020-11-26 22:27:32 +11:00
David Bomba
0e1b6c9341 Fixes for authorize 2020-11-26 22:22:33 +11:00
David Bomba
a8daa31167 Fixes for authorize 2020-11-26 21:12:36 +11:00
David Bomba
ed1539db50 Fixes for authorize 2020-11-26 21:00:55 +11:00
David Bomba
150bb9c396 Fix for payment method route 2020-11-26 20:53:01 +11:00
David Bomba
72bbf24c69 Working on refactor 2020-11-26 15:43:53 +11:00
David Bomba
4888a7dc4f Working on authorize refactor 2020-11-26 13:30:36 +11:00
David Bomba
56ac6c7b1f Refactoring authorize 2020-11-26 10:42:59 +11:00
David Bomba
b2c005a1aa Create driver template 2020-11-26 08:07:09 +11:00
David Bomba
b3cdb19b4d
Merge pull request #4362 from beganovich/v5-gateways-required-fields
(v5) Support for pre-checking gateway requirements
2020-11-26 06:57:48 +11:00
Benjamin Beganović
ae88d5e08e php-cs-fixer format 2020-11-25 15:19:52 +01:00
Benjamin Beganović
169e5ba93e support for checking requirements based on gateway 2020-11-25 14:38:49 +01:00
David Bomba
137231c95e cs-fixer 2020-11-25 21:30:00 +11:00
David Bomba
c231dca308
Merge pull request #4314 from turbo124/v5-develop
Remove redundant entity notification
2020-11-17 20:18:09 +11:00
David Bomba
5a6d543e34 Minor fixes for imports 2020-11-17 08:56:52 +11:00
Benjamin Beganović
54014d93ee pass correct $customer->id 2020-11-16 14:10:45 +01:00
Benjamin Beganović
5457838c4d Store 'amount' in payment hash (Stripe/CC) 2020-11-16 13:37:13 +01:00
Benjamin Beganović
1ab8d1322b Logic for getting amount in internallyFailedPayments 2020-11-16 13:36:47 +01:00
Benjamin Beganović
fca1d94afe Support for SYSTEM_LOG_TYPE in:
- Authorize.net
- Stripe
- PayPal
2020-11-16 13:36:29 +01:00
David Bomba
a98e9c3b68
Merge pull request #4252 from beganovich/v5-ach-refactor
(v5) ACH payments with Stripe
2020-11-03 23:14:02 +11:00
Benjamin Beganović
f50bbd1900 Fix issue with the form 2020-11-02 16:29:02 +01:00
Benjamin Beganović
0942169d4f Handle Alipay payments
- Refactored main Alipay class
- Added new N/A translation
- Fixed issue with alipay.js
2020-11-02 16:20:38 +01:00
Benjamin Beganović
7f3c4ada5a Merge remote-tracking branch 'upstream/v5-develop' into v2-frontend-refactor 2020-11-01 19:26:43 +01:00
Benjamin Beganović
4c27652545 ACH payments 2020-11-01 19:21:31 +01:00
Benjamin Beganović
1ae2649be6 Stripe ACH authorization & verification 2020-11-01 18:47:48 +01:00
Benjamin Beganović
99c30846ad Stripe: Payments with tokens & error handling 2020-11-01 16:52:37 +01:00
Benjamin Beganović
7d50430a9e Stripe with credit card:
- Remove createPaymentData from StripePaymentDriver
2020-11-01 16:37:41 +01:00
Benjamin Beganović
7e30093429 Checkout.com payments with token:
- Convert "true" from frontend to boolean in PaymentResponseRequest
- Reference correct 'transaction_reference' in BaseDriver & Checkout\Utilities
- Frontend switching between token & credit card when making payments with Checkout.com
- New 'pay_with' translation string
- Added 'save-card--container' to save card partial
- Ensure we show whole transaction reference string in payments/show.blade
2020-11-01 15:56:17 +01:00
Benjamin Beganović
d2e677cb9d Merge remote-tracking branch 'origin/v5-stripe-backend-refactor' into v2-frontend-refactor 2020-11-01 14:49:11 +01:00
=
6479b2fd3e Fix for laravel 8 route file regression + psalm cleanup 2020-11-01 16:09:09 +11:00
Benjamin Beganović
13655d48ea BaseDriver:
- Allow passing additional properties to ClientGatewayToken entity
CreditCard:
- Fix saving gateway_customer_reference
2020-10-28 16:48:24 +01:00
Benjamin Beganović
dab59138cc StripePaymentDriver:
- Added attach() method for attaching payment method to Stripe customer
- getStripeMethod() for getting method information out of Stripe
2020-10-28 16:31:47 +01:00
David Bomba
9aeb2d7a5b Psalm cleanup 2020-10-28 21:10:49 +11:00
Benjamin Beganović
88b428aae0 checkout.com payments using token 2020-10-27 13:44:16 +01:00
David Bomba
97db2ad3b6
Merge pull request #4202 from beganovich/v2-checkout-refactor
(v5) Checkout.com refactor
2020-10-27 23:18:42 +11:00
Benjamin Beganović
223ae4cb5b - Extract $payment_hash property onto BaseDriver
- Handle internally failed payments inside BaseDriver
- Add SYSTEM_LOG_TYPE property on CheckoutComPaymentDriver
- Remove resolving of $payment_hash inside of payment methods
2020-10-27 12:53:35 +01:00
Benjamin Beganović
f3e578cc5c Fix value after payment 2020-10-26 14:55:48 +01:00
Benjamin Beganović
e5670ed313 confirm & unwind gateway fees & better typehinting 2020-10-26 14:53:52 +01:00
Benjamin Beganović
488b8d859d Move saving methods into BaseDriver 2020-10-26 14:40:50 +01:00
Benjamin Beganović
6e6e73825c Throw an renderable exception instead of returning view 2020-10-26 11:02:23 +01:00
Benjamin Beganović
f73ad4bef7 Move after-payment logic into BaseDriver 2020-10-25 18:51:26 +01:00
Benjamin Beganović
dcb48297fb wip refactor 2020-10-22 15:24:18 +02:00
David Bomba
c8e2d94b3f Fixes for tests + remove swoole 2020-10-22 21:14:14 +11:00
Benjamin Beganović
b4b6bd3ae0 ach adding & verify, todo: payment 2020-10-20 17:54:08 +02:00
Benjamin Beganović
c82e5b2647 stripe adding credit card 2020-10-20 16:08:21 +02:00
Benjamin Beganović
6ae18dac6f fix credit card saving with stripe 2020-10-20 15:02:34 +02:00
Benjamin Beganović
6af7aa7dc0 checkout: push aditional page 2020-10-19 23:49:17 +02:00
Benjamin Beganović
4f9d9c106c checkout 2020-10-19 14:18:00 +02:00
David Bomba
0ec89c18ac Fixes for autobill 2020-10-14 21:45:26 +11:00
David Bomba
c8770f09ca Refactor for determining gateway fees 2020-10-12 15:10:34 +11:00
David Bomba
b12fe64a63 Refactor gateway types 2020-10-12 07:59:25 +11:00
David Bomba
407304d3c6 Console commands for small test data batches 2020-10-10 14:32:10 +11:00
David Bomba
44d31ce326 Move cache clearance to base controller 2020-10-09 17:55:03 +11:00
Benjamin Beganović
f34410cdea Remove logging from StripePaymentDriver 2020-09-24 12:20:57 +02:00
Benjamin Beganović
9b4d166e10 Merge remote-tracking branch 'upstream/v2' into v2-1809-remove-omnipay-from-stripe 2020-09-24 11:36:41 +02:00
Benjamin Beganović
3a1906bd87 Stripe: Optin/optout for saving card 2020-09-21 11:17:16 +02:00
=
83be13c049 fixes for types 2020-09-19 12:15:38 +10:00
=
88eb05786e Fixes for updateinvoicepayment 2020-09-19 11:20:14 +10:00
Benjamin Beganović
94ebf95caa Stripe use SDK to refund 2020-09-18 14:35:53 +02:00
Benjamin Beganović
210ebb1754 Add placeholder methods for Authorize, Custom & PayPalExpress 2020-09-18 10:01:19 +02:00