1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00
Commit Graph

360 Commits

Author SHA1 Message Date
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
Benjamin Beganović
71ca5d108c Detach payment methods from Stripe 2020-09-18 09:48:53 +02:00
David Bomba
6e588f7925 Fixes for checkout.com 2020-09-11 16:31:49 +10:00
David Bomba
9eaa136cc3 Clean up 2020-09-11 10:14:51 +10:00
David Bomba
0b56e8d4cb handle payments and gateway fee integration 2020-09-11 09:01:25 +10:00
David Bomba
c55f660f7f Generic handling page for unsuccessful payments 2020-09-11 08:30:12 +10:00
David Bomba
f061fd49f9 fixes for checkout payment gateway 2020-09-10 14:41:56 +10:00
David Bomba
d071ed0d3b Attach payment_id to payment_hash 2020-09-10 11:52:17 +10:00
David Bomba
100ca67c5f Add reference to checkout gateways 2020-09-10 11:23:04 +10:00
David Bomba
0c015cb4bc Fixes for recurring invoices 2020-09-10 11:05:42 +10:00
David Bomba
c67fee3fff Fixes for base driver 2020-09-09 20:05:10 +10:00
=
1ee6e33bb7 Working on refactoring Checkout.com payment driver to extend BaseDriver 2020-09-09 10:58:35 +10:00
David Bomba
d909b4939c Minor fixes for PayPal 2020-09-07 13:14:43 +10:00
David Bomba
ba75a44eb8
Laravel 7.x Shift (#40)
* Adopt Laravel coding style

The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.

However, Shift allows you to customize the adopted coding style by
adding your own [PHP CS Fixer][1] `.php_cs` config to your project.

You may use [Shift's .php_cs][2] file as a base.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200

* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Add laravel/ui dependency

* Unindent vendor mail templates

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

* Shift Laravel dependencies

* Shift cleanup

* Upgrade to Laravel 7

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-09-06 19:38:10 +10:00
David Bomba
5eacb1abf8 Working on token billing with gateway fees 2020-09-04 08:01:17 +10:00
David Bomba
9dce4c3de1 Refator payments and gateway fees 2020-09-04 07:23:34 +10:00
David Bomba
4bb02f4f61 Fixes for authorize.net 2020-09-03 21:22:49 +10:00
David Bomba
607a47ffd9 Working on gateway fees to authorize.net 2020-09-03 20:55:33 +10:00
David Bomba
6517d67601 Refactor of payments to include payment hash 2020-09-03 13:22:05 +10:00
David Bomba
a8bbb7035f Fixes for random data seeder 2020-09-02 19:36:32 +10:00
David Bomba
2bd8581592 Fixes for payments with gateway fees 2020-09-01 09:28:37 +10:00
David Bomba
eb867522df Working on invoice payments with gateway fees 2020-08-31 12:00:43 +10:00
David Bomba
ac08a146a1 Working on gateway fees 2020-08-30 22:00:19 +10:00
David Bomba
1bc71fb5d8 Working on gateway fees 2020-08-30 08:00:57 +10:00
David Bomba
334860f87b Custom payment drivers 2020-08-20 08:11:46 +10:00
David Bomba
c5d093232c Working on payment records from online payments 2020-08-19 12:37:17 +10:00
David Bomba
05ce11138e Fixes for payment number creation for online payments 2020-08-19 11:06:19 +10:00
David Bomba
ba3f3e6989
Merge branch 'v2' into v2 2020-08-19 07:59:19 +10:00
Benjamin Beganović
e68af3421a Fix Checkout payment driver 20087 cvv ctaching 2020-08-17 18:36:11 +02:00
David Bomba
713d967e8e fixes for payment drivers 2020-08-17 08:58:52 +10:00
David Bomba
5cba3315bd Fixes for authorize.net 2020-08-13 12:33:40 +10:00
David Bomba
181c343594 Minor fixes for authorize.net 2020-08-13 12:30:45 +10:00
David Bomba
941e790a95 More activities 2020-08-12 12:02:21 +10:00
David Bomba
7feae1fd45 Add is_deleted to client_gateway_tokens table 2020-08-12 08:17:32 +10:00
David Bomba
cd4856e8db Helpers for gateway fees 2020-07-15 15:05:02 +10:00
David Bomba
8c56fc1263 Working on autobill 2020-07-14 23:15:59 +10:00
David Bomba
d8a13e6cb2 Auto billing for stripe 2020-07-14 22:50:16 +10:00
David Bomba
1d7ba6d1e6 Fixes for event parameters 2020-07-14 08:06:28 +10:00
David Bomba
a9f2f35d55 Working on token billing
'
2020-07-13 14:56:07 +10:00
David Bomba
5dc0fcca0d Working on token billing 2020-07-13 14:46:16 +10:00
David Bomba
f3572a5d11 Refactor for events 2020-07-08 22:02:16 +10:00
David Bomba
a476034bd0 Add token_id to activity table 2020-07-08 16:54:16 +10:00
David Bomba
4b81e209c4 Working on unattended token billing 2020-07-08 12:20:44 +10:00
David Bomba
4c321d41c3 Change subscriptions to webhooks 2020-07-06 21:22:36 +10:00
Benjamin Beganović
eb655762d4 Adding payment methods from menu 2020-07-03 14:39:29 +02:00
David Bomba
8e4e38776b Working on gateway payment methods 2020-07-03 10:56:36 +10:00
Benjamin Beganović
4918269bf2 Testing adding Stripe credit card
- Added: iframeLoaded method for Cypress
- Fixed: saving payment method id for CreditCard.php
- Added: chromeWebSecurity: false flag for insecure iframe connections
- Formatted: payment_methods/index
- Formatted: payment-methods-table.blade.php
- Added: Test for adding credit card to Stripe
- Fixed: Removing client gateway tokens
2020-07-01 18:28:57 +02:00
David Bomba
a1abc4f69c
Merge pull request #3851 from beganovich/v2-2606-payment-webhook
Stripe payment webhook
2020-06-28 13:06:43 +10:00
Benjamin Beganović
f68465d602 Support Stripe webhook 2020-06-27 17:39:28 +02:00
David Bomba
e6bc63b2c2 fixes for tests 2020-06-27 12:35:11 +10:00
David Bomba
91e0fba997
Merge branch 'v2' into v2 2020-06-27 12:22:08 +10:00
David Bomba
699678eb83 Fix for adding credit card as payment method with authorize.net 2020-06-27 12:21:16 +10:00
David Bomba
1ce5b7ad8e fixes for refunds 2020-06-27 10:20:27 +10:00
Benjamin Beganović
525a1d065c Fix ACH payments with tokens 2020-06-26 13:25:58 +02:00
Benjamin Beganović
b4d3498ac3 Checkout.com payments & refunds improvements:
- Fix refunding & exception handling
- Fix capturing the payments with Checkout SDK
- Update credit note balance after refunding
2020-06-25 17:08:15 +02:00
Benjamin Beganović
be61945c93 Merge remote-tracking branch 'upstream/v2' into v2-2306-payments 2020-06-24 17:35:13 +02:00
Benjamin Beganović
6e31505ca5 Support Alipay redirect back variable 2020-06-24 17:30:30 +02:00
Benjamin Beganović
4fd2be6adf Refunding using PayPal 2020-06-24 16:58:05 +02:00
Benjamin Beganović
6ffb2d7286 checkout.com wip refunds 2020-06-24 16:29:01 +02:00
Benjamin Beganović
f6f999b801 Stripe refunds 2020-06-24 16:07:12 +02:00
Benjamin Beganović
4d2d41123b Fix Stripe saving card & token store 2020-06-24 14:37:01 +02:00
David Bomba
b3c2d7e11e Authorize .net refund implementation 2020-06-24 15:20:33 +10:00
David Bomba
7e73aa85cb Working on Authorize Refunds 2020-06-24 11:15:51 +10:00
Benjamin Beganović
f61ecef4f2 Make "setPaymentMethod" available in all drivers 2020-06-23 16:47:29 +02:00
David Bomba
f82953b44b Fixes for AUthorize.net 2020-06-17 21:15:24 +10:00
David Bomba
6b9cca14fb remove unneeded index.html 2020-06-17 19:46:12 +10:00
David Bomba
6bf597b4ee Authorize - per invoice credit card paymente 2020-06-17 11:36:29 +10:00
David Bomba
d774ed6526 Authorize.net token payments 2020-06-17 08:48:07 +10:00
David Bomba
15de971e39 Commit for recording transaction -> payment authorize.net 2020-06-17 00:29:39 +10:00
David Bomba
2ffe799c04 Working on token payments with Authorize.net 2020-06-16 23:31:08 +10:00
David Bomba
2d2a5c0812 working on authorize.net token payments 2020-06-16 22:41:56 +10:00
David Bomba
0951526fb3 Charge Payment Profile 2020-06-16 15:36:09 +10:00
David Bomba
9fa069e884
Merge branch 'v2' into v2 2020-06-16 14:01:55 +10:00
David Bomba
48086f1516 Authorize .net 2020-06-16 14:01:10 +10:00
David Bomba
8c260ece95 Get Authorize.net Transactions by refId 2020-06-16 14:00:26 +10:00
David Bomba
b85b0913a6 Authorize.net payment via credit card 2020-06-16 13:49:45 +10:00
David Bomba
2648690b48 authorize.net payment views 2020-06-16 10:31:05 +10:00
David Bomba
7468813cd8 Working on Authorize payment flow 2020-06-16 10:21:40 +10:00
Benjamin Beganović
72cd7ca91a Merge remote-tracking branch 'upstream/v2' into v2-1006-checkout-com 2020-06-15 14:26:59 +02:00
Benjamin Beganović
c03ce4c23a add double check for storing card 2020-06-15 14:23:46 +02:00
Benjamin Beganović
93f86db148 Payments using token 2020-06-15 14:18:44 +02:00
David Bomba
fc40159d36 Fixes for currency precision 2020-06-15 21:42:46 +10:00
Benjamin Beganović
8a3c8ef9fb fix payment status 2020-06-15 13:27:14 +02:00
Benjamin Beganović
9a2286fb7b Update NinjaPaymentModel to Payment 2020-06-15 13:04:05 +02:00
Benjamin Beganović
17831087fe Update secret keys & sandbox 2020-06-15 13:02:44 +02:00
Benjamin Beganović
8d5a843b36 Fix public api key logic 2020-06-15 12:59:02 +02:00
Benjamin Beganović
0186449794 Fix hardcoded currency 2020-06-12 16:32:00 +02:00