1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
Commit Graph

279 Commits

Author SHA1 Message Date
David Bomba
1ebbf59027 Square SCA 2021-10-03 15:03:39 +11:00
David Bomba
d25927ac8d Square SCA 2021-10-03 15:01:49 +11:00
David Bomba
0c5b03f080 Square SCA 2021-10-03 14:57:07 +11:00
David Bomba
a321134e69 Square SCA 2021-10-03 14:50:01 +11:00
Benjamin Beganović
42daa83a9c Ability to download the statement 2021-09-21 14:30:51 +02:00
David Bomba
289c4952a0
Merge pull request #6686 from beganovich/v5-statements-json-fixes
Client portal: Statements page in pure Javascript
2021-09-21 22:20:26 +10:00
Benjamin Beganović
d7944b1fa4 Extract script into separate file 2021-09-21 14:08:29 +02:00
Benjamin Beganović
712598b94c Support for PDF hot reload in PDF.js 2021-09-20 17:33:45 +02:00
Benjamin Beganović
3f0847749f
Merge branch 'v5-develop' into v5-689 2021-09-20 08:12:42 +02:00
=
fb61138e73 Square Payment DriveR 2021-09-19 21:10:27 +10:00
Benjamin Beganović
308a742eee Pass payment intent to frontend 2021-09-17 21:01:12 +02:00
David Bomba
a3e0d57133 Add customer to sofort payments 2021-09-15 14:39:34 +10:00
Benjamin Beganović
fef4665c5a Extract Javascript into separate file 2021-08-27 17:32:20 +02:00
Benjamin Beganović
2fa360df19 Fixes for Paytrace 2021-08-25 14:31:08 +02:00
Benjamin Beganović
9d51137a5a Fixes for scripts 2021-08-19 13:34:51 +02:00
Benjamin Beganović
6186cc1420 Fixes for authorize page 2021-08-19 11:05:06 +02:00
Benjamin Beganović
2065145ffb Extract scripts into separate file 2021-08-18 17:52:32 +02:00
=
c016f5d08a Merge eWay payment driver 2021-08-18 21:21:05 +10:00
Benjamin Beganović
0a7a056615 Extract scripts to separate file 2021-08-15 16:16:23 +02:00
David Bomba
bc81043973 Fixes for Molli 2021-08-11 16:43:20 +10:00
David Bomba
7b73104a45 Merge branch 'paytrace' into v5-develop 2021-08-11 10:03:02 +10:00
Benjamin Beganović
4e6477d441 Show or hide post code in Stripe elements based on company settings 2021-08-09 14:05:39 +02:00
Benjamin Beganović
ba36197757 Fixes for profileId 2021-08-04 14:40:13 +02:00
Benjamin Beganović
373f169b39 Extract credit card scripts into standalone JS file 2021-08-03 14:27:08 +02:00
Benjamin Beganović
b7c248eec5
PayTrace improvements (#43)
* Refactor credit card payment JavaScript

* CreditCard.php: Rename $paytrace_driver to $paytrace

* Credit card: Support for token billing (frontend)

* Fixes for "save card" label

* Credit card: Authorize

* Allow PayTrace to be seeded from CreateSingleAccount

* Add PayTrace decrypted config to ninja.testvars

* Extract to separate JavaScript

* Scaffold Dusk test

* CreditCard -> CreditCardTest

* CreditCard -> CreditCardTest

* Scaffold pay with new card test

* Fixes for gateway_key in CreateSingleAccount

* Production builds
2021-07-28 07:59:44 +10:00
Benjamin Beganović
25fd6b2346 Replace whitespace within input fields: wepay-credit-card.js 2021-07-14 13:05:29 +02:00
Benjamin Beganović
78d2e8f932 Replace whitespace within input fields: authorize-credit-card-payment.js 2021-07-14 13:04:24 +02:00
Benjamin Beganović
d9ba8a2e3a Replace whitespace within input fields: authorize-authorize-card.js 2021-07-14 13:03:05 +02:00
David Bomba
41b1555fe1 Improve authorize.net add payment method 2021-07-13 11:07:10 +10:00
Benjamin Beganović
bce0d00556 Bank account: Javascript 2021-06-21 14:21:44 +02:00
Benjamin Beganović
0234a8bdff Credit card: Javascript 2021-06-21 14:04:45 +02:00
Benjamin Beganović
24f76b3b35 wip 2021-05-21 13:18:03 +02:00
Benjamin Beganović
69a7cd9bfc wip 2021-05-21 13:11:01 +02:00
David Bomba
ed21217c9b Fixes for Stripe Connect 2021-05-12 00:40:55 +10:00
David Bomba
de02dd810e Fixes for Stripe 2021-05-11 23:44:14 +10:00
David Bomba
3b55161506 Fixes for stripe authorize card 2021-05-11 23:30:56 +10:00
Benjamin Beganović
f07c911f8b
Merge branch 'v5-develop' into v5-2804-braintree 2021-05-10 16:55:04 +02:00
Benjamin Beganović
98fa636e26 Prefill the postal code for Stripe Elements 2021-05-10 13:01:59 +02:00
Benjamin Beganović
28363013ee PayPal: Storing payment method checkbox 2021-05-05 16:59:50 +02:00
Benjamin Beganović
0e905371c5 Extract PayPal's frontend into separate Javascript 2021-05-04 17:22:52 +02:00
Benjamin Beganović
bc23de2ce2 Extract credit cards to separate Javascript 2021-04-29 16:51:28 +02:00
David Bomba
1bd1b2ed7c JS Fixes 2021-04-20 22:17:44 +10:00
=
0bf8b9c9e5 Fixes for setup flow 2021-03-13 17:45:41 +11:00
=
487cf555b9 Fix for displaying logo 2021-03-13 16:56:52 +11:00
Joshua Dwire
a844afd128 Support pre-configured installs where setup doesn't allow changing DB info 2021-03-11 19:48:41 -05:00
Benjamin Beganović
d20e5a0ebf Update Javascript to use new URLs from meta tags 2021-03-08 10:00:11 +01:00
Benjamin Beganović
fe2bfc3c84 Change default scale to .75 for mobile PDF viewing 2021-03-03 08:51:10 +01:00
Benjamin Beganović
4992da6270 Highlight & make links in terms pop up clickable 2021-03-02 13:42:25 +01:00
Benjamin Beganović
6a972ba378 wip 2021-02-03 16:49:29 +01:00
Benjamin Beganović
5c3ee01663
Merge pull request #4777 from beganovich/v5-2701-checkout-disable-submit-while-request
(v5) Checkout: Disable submit button while sending backend request
2021-01-28 15:45:25 +01:00
Benjamin Beganović
615ef1e780 Allow payments of draft invoices:
- Remove processing overlay scripts
- Add flash message to clean layout
- Remove $balance > 0 check from filtered invoices
- Only show the payment methods if total is bigger than 0
- Change flash message from "warning" to "message"
- Show message for $1 payments
2021-01-27 14:10:24 +01:00
Benjamin Beganović
11ac939571 Checkout: Disable submit button while sending backend request 2021-01-27 12:57:05 +01:00
Benjamin Beganović
9f8df64289 - Only show save card component if token billing isn't always
- Only show "Refunded" if amount is > 0
- Stripe: Grab only :checked checkbox
2021-01-26 17:21:12 +01:00
Benjamin Beganović
792db3c262 acceptjs errors 2021-01-26 14:31:52 +01:00
Benjamin Beganović
0f638ff2c3 Hide "save card" section when paying with token 2021-01-26 13:55:32 +01:00
Benjamin Beganović
f5f257292c wip 2021-01-25 16:12:21 +01: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
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
David Bomba
cfc8c248cd
Merge pull request #4678 from beganovich/v5-0113-fix-authorize
(v5) Fix Authorize.net
2021-01-14 07:55:18 +11:00
Benjamin Beganović
0c91226352 fix authorize 2021-01-13 15:36:28 +01:00
David Bomba
c18c9e5a66 Update copyright + remove minor text from footer 2021-01-13 19:22:36 +11:00
Benjamin Beganović
14efcc77e6 Support for database port on the setup 2021-01-04 13:36:47 +01:00
Benjamin Beganović
77a8771c78 Setup improvements:
- Disable Test PDF button while network request loading
- Return correct public/test.pdf file path
2020-12-24 12:25:22 +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ć
2b2c8b5d83 fix setup issue with smtp testing, #4533 2020-12-21 08:45:39 +01:00
Benjamin Beganović
75b28e8799 Update setup to show step by step before letting user submit everything 2020-12-15 16:10:50 +01:00
Benjamin Beganović
68a84df0dd prefix all smtp fields with mail_ 2020-12-08 14:29:15 +01:00
Benjamin Beganović
3ffb600117 prefix all db field with db_ 2020-12-08 14:21:00 +01:00
Benjamin Beganović
458e207fe3 fixes for smtp testing on setup 2020-12-03 14:10:40 +01: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
David Maksimov
12427cd64f Remove spaces from credit card number 2020-11-20 16:22:57 -06:00
Benjamin Beganović
d64308fdd1 production builds 2020-11-17 16:57:42 +01:00
Benjamin Beganović
4dc3443d16 fix quotes not approving 2020-11-09 16:37:53 +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ć
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
Benjamin Beganović
8270762311 Fix setup issue with opening new PDFs 2020-10-27 14:02:36 +01:00
Benjamin Beganović
b4b6bd3ae0 ach adding & verify, todo: payment 2020-10-20 17:54:08 +02:00
Benjamin Beganović
d26565b5ad stripe alipay 2020-10-20 17:15:55 +02:00
Benjamin Beganović
024d839038 stripe sofort 2020-10-20 17:12:53 +02:00
Benjamin Beganović
9e8ccf9eb7 remove unused js 2020-10-20 16:12:59 +02:00
Benjamin Beganović
c82e5b2647 stripe adding credit card 2020-10-20 16:08:21 +02:00
Benjamin Beganović
9420f23081 stripe: pay with credit card token & credit 2020-10-20 15:19:21 +02:00
Benjamin Beganović
08501cceb6 stripe credit card 2020-10-20 14:58:48 +02:00
David Bomba
1e10f0297b
Merge pull request #4162 from beganovich/v2-fix-setup-buttons
(v5) Setup fixes & improvements
2020-10-15 08:15:31 +11:00
Benjamin Beganović
db196911cc Fix error while adding Stripe CC 2020-10-14 22:32:43 +02:00
Benjamin Beganović
1d89656bad Setup changes:
- Return actual SQL error when connection is failing
- Update buttons on setup with correct color
2020-10-14 13:40:00 +02:00
Benjamin Beganović
cfcbc485b2 fix authorize 2020-10-09 12:43:26 +02:00
Benjamin Beganović
bdce885290 fix stripe 2020-10-09 12:03:12 +02:00
Benjamin Beganović
d947d2cfd4 Authorize.net: Payments 2020-09-29 13:17:41 +02:00
Benjamin Beganović
51bf831087 Authorize.net: Authorize CC 2020-09-29 13:13:50 +02:00
Benjamin Beganović
4814194568 Stripe: Sofort 2020-09-29 12:52:27 +02:00
Benjamin Beganović
12c23f14e5 Sofort: Alipay 2020-09-29 12:52:19 +02:00
Benjamin Beganović
58a3cc69a9 Stripe: Pay with credit card 2020-09-29 12:46:28 +02:00
Benjamin Beganović
72f915ef0a Stripe: Authorize ACH 2020-09-29 12:36:21 +02:00
Benjamin Beganović
36d322611e Stripe: Add credit card 2020-09-29 12:31:56 +02:00
Benjamin Beganović
c6b24d1c75 Checkout: Optin/optout for saving card 2020-09-21 11:34:06 +02:00
Benjamin Beganović
5a03d81112 Fix blank page when downloading invoices 2020-08-25 08:55:55 +02:00
Benjamin Beganović
2f50217900 Processing modal on payments 2020-08-24 10:28:55 +02:00
Benjamin Beganović
f12553bae8 wip 2020-08-24 09:07:44 +02:00
Benjamin Beganović
e518b3ca8d Stripe (CC): Add spinner for form processing 2020-08-24 08:25:12 +02:00
Benjamin Beganović
f4698c0108 Support multiple downloads 2020-08-20 03:10:04 +02:00
Benjamin Beganović
ae18698484 Assets production builds 2020-07-29 16:41:47 +02:00
Benjamin Beganović
c855a52506 Down the scale factor to 0.5 for mobile devices 2020-07-29 16:36:27 +02:00
Benjamin Beganovic
605069f05b Test PDF abilites in setup 2020-07-02 13:58:39 +02: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
Benjamin Beganović
829a7a2c10 Fix checkboxes for action selectors on invoices & quotes 2020-06-26 15:20:15 +02:00
David Bomba
0b7b90fc44
Merge branch 'v2' into v2-1706-improve-authroize-cards 2020-06-18 21:22:21 +10:00
Benjamin Beganović
02cf16797c Enable support for zooming levels 2020-06-17 16:52:39 +02:00
Benjamin Beganović
64b7884a83 optimize card-js form 2020-06-17 15:27:11 +02:00
David Bomba
f82953b44b Fixes for AUthorize.net 2020-06-17 21:15:24 +10:00
David Bomba
7c973c2a2e Fix check box value in js 2020-06-17 11:26:58 +10:00
David Bomba
b1bad0b6f4 Front end error handling 2020-06-17 10:55:56 +10:00
David Bomba
09d130c1f7 Swap out credit card holder 2020-06-17 10:03:05 +10:00
David Bomba
69ae86ddc5 Merge branch 'v2-1606-authroize-form' of https://github.com/beganovich/invoiceninja into beganovich-v2-1606-authroize-form 2020-06-17 08:58:31 +10:00
Benjamin Beganović
c32c26acf3 Production builds 2020-06-16 18:09:43 +02:00
David Bomba
2d2a5c0812 working on authorize.net token payments 2020-06-16 22:41:56 +10:00
Benjamin Beganović
93f86db148 Payments using token 2020-06-15 14:18:44 +02:00
Benjamin Beganović
d37064e393 wip 2020-06-11 15:13:35 +02:00
Benjamin Beganović
049f30104e checkout 2020-06-10 17:38:10 +02:00
David Bomba
def550ec90
Merge branch 'v2' into v2 2020-06-10 22:51:25 +10:00
Benjamin Beganović
b6ad39b8e2 Stripe: Alipay implementation 2020-06-09 16:56:08 +02:00
David Bomba
c119e9ece2 Fixes for authorize.net 2020-06-09 22:57:01 +10:00
David Bomba
c558e0df45 authorize.net 2020-06-09 22:54:22 +10:00
Benjamin Beganović
19f1750f22 Various portal changes:
- Added 'currencies' variable to portal compoer
- Added verification logic to StripePaymentDriver
- Fixed 'CreditCard' data array with failures
- 'verification' translations
- ACH verification views
- Verification routes
2020-06-09 14:42:23 +02:00
David Bomba
6c7ca0d8c9 Working on authorize 2020-06-09 21:53:23 +10:00
Benjamin Beganović
1965dbf041 Stripe: SOFORT implementation 2020-06-09 13:17:05 +02:00
David Bomba
4985f94ce1 Working on Authorize.net 2020-06-09 13:54:09 +10:00
Benjamin Beganović
dda7a8d292 production builds 2020-05-28 15:59:51 +02:00
Benjamin Beganović
ea8a585771 wip 2020-05-18 14:06:13 +02:00
Benjamin Beganović
2704bf2f82
Client portal improvements & bug fixes (#3678)
* fix turbolink 404

* fix checkbox when adding card using stripe

* Fix hashed_ids problem when using PayPal

* php-cs-fixer

* Bump tailwind & purgecss

* fix auth scope

* scope to auth contact company
2020-05-09 08:20:37 +10:00
Benjamin Beganović
ab8b05dd56
Client portal improvements (#3652)
* Install livewire/livewire

* Table improvements

- Cleanup of InvoiceController
- Added Livewire package
- New Livewire component (InvoicesTable)
- New WithSorting trait
- Removed rendering invoices from index.blade.php
- Removed Yaryabox/Datatables references in InvoiceController

* Refactor: Recurring invoices

* payments table & sorting improvements

* payment methods table

* quotes table

* credits table

* Add turbolinks
2020-04-23 08:49:23 +10:00
Benjamin Beganović
01e8afc1f6
PDF preview improvements (#3632)
- Added total page and current page preview
- Added new "Page" translation
- Replaced CDN based assets with local
- Production builds of assets

Co-authored-by: David Bomba <turbo124@gmail.com>
2020-04-17 07:18:07 +10:00
Benjamin Beganović
a87ae37ce1
Rendering PDFs using PDF.js (client portal) (#3589)
* Wip for testing

* Rendering PDFs using pdf.js
2020-04-04 07:12:12 +11:00
Benjamin Beganović
b8b5245253
Setup page real-time checks (#3551)
* Setup page real-time checks:
- New setup.js inside of webpack.mix.js
- SetupController methods rename from snake case to camel case
- Added Axios module inside of app.js

* Disable Laravel Mix notifications

* Fix naming for request
2020-03-27 08:43:44 +11:00
Benjamin Beganović
e93bdffc0b
Fixes for Stripe payments (#3542)
* Payment fixes:
- Added new "process.js" inside of webpack.mix.js
- BasePaymentDriver now accepts raw array, no explode
- StripePaymentDriver now accepts raw array, no explode
- Removed 'form-control' class from #card-element
- New credit_card for processing payment

* Production build of assets
2020-03-26 00:08:37 +11:00
Benjamin Beganović
2b85feedc0
Fixes for "Pay now" with invoices (#3523)
* Fixes for invoice payments
- Changed the input from $hashed_ids to invoices[] as an array
- Fixes for payment.js

* Fix redirect back
2020-03-25 09:13:47 +11:00
Benjamin Beganović
ac5525c9ac
[V2] Client portal rework (#3516)
* Client login, reset and update password page

* Client dashboard, sidebar, PortalComposer.php

* wip

* Personal page & update for details

* Invoices, paying & pagination.blade.php

* Invoices, recurring invoice & buttons

* Payments, link component

* Payment methods

* Breadcrums, clean up & wrap up

* Remove format_date() method to formatDate on object

* Payments
- $this->render is now proxy for render()
- Removed logic from Controller.php to ClientPortal.php
- Added MakesDates to ClientGatewayToken.php
- StripePaymentDriver.php now returns correct views
- Refactor of adding new payment method
- Ignoring all local builds for public/js/clients/*

* Signature, wip

* Fix "Pay now" on single invoice

* Payments:
- Added ProcessInvoicesInBulk request class
- Refactor InvoiceController::bulk()
- Displaying terms & payments
- New signature.blade.php
- Removed comment from webpack.mix.js

* Quotes:
- Refactor ProcessInvoicesInBulk.php to ProcessInvoicesInBulkRequest.php
- Add new 'Quotes' field inside of PortalComposer.php
- Added MakesDates to Quote.php
- Added Quote::badgeForStatus()
- Cleanup payment.blade.php
- Quote showing and approving
- New resource 'quotes' in client.php
- New image for quotes, align-left.svg

* Credits:
- New 'credits' resource in client.php
- Fixes for client.php typo

* Breadcrumbs:
- Quotes
- Credits

* Placeholder for translations.

* Restore whereIn & client scope

Co-authored-by: David Bomba <turbo124@gmail.com>
2020-03-24 04:10:42 +11:00
Benjamin Beganović
aad9f81e93
(Daily sync) Password reset pages & client portal rework (#3492)
* Dependency clearing

* Tailwind & templates cleanup

* Password reset pages & more features:
- New $this->render() method
- Password reset pages
- Tailwind CSS scaffold
- New styles for buttons, inputs, alerts
- Changed to shorthand syntax for language file (en)
- Added app.css and app.js which will be main endpoint
- Added new 'theme' field inside of ninja.php
- Scaffold for 'ninja2020' theme: both client and global theme
- Ignoring local builds of assets, until purgeCSS is there
- Overall cleanup

* Switch back default template to 'default'

* Remove app.css build

* Fix Codacy

* Fix Codacy 'doublequote' issues
2020-03-14 08:17:08 +11:00
David Bomba
c1d3fd12a8
Import (#3360)
* Fixes for test data

* Fixes for tests

* Remove legacy vue components

* Add routing number to client gateway tokens

* working on important documents and company gateways

* Import fixes
2020-02-22 13:25:49 +11:00
David Bomba
0d508d67f1
Client Settings (#2711)
* Fixes for travis

* Additional settings variables at the company and client level

* Implement accessor for client settings

* Currency symbol or code setter

* Implement custom JS number and currency formatter

* Implement VueX state management for client settings

* Move settings logic into its own class

* Working on client settings

* client settings

* Move Client Settings helper into PHP

* Move translation helper into its own class

* Working on Client Settings

* fixes for client settings

* Client setting defaults

* fixes for .env

* Fixes for Travis
2019-03-03 08:44:08 +11:00
David Bomba
eddb9adc73
Client Settings (#2668)
* Clean up Client Show

* Working on Show Client menu action

* working on client view permissions

* Finishing up Client Statement View

* Workig on client settings

* add mix manifest

* css for client settings

* Client Settings

* Working on Client Settings

* Implement StartupCheck and static seeders

* Implement cached statics in view composers

* Working on client settings

* Payment Terms

* Working on Payment Terms View Composer

* Payment Terms builder

* Client Settings

* refactor companies table

* Refactor for company settings, move settings to json

* Set object cast on settings column of Company table

* Fixes for refactor of companies and clients table

* Test

* Client Settings Datamapper

* Client Settings

* Default client language

* Client Settings

* Working on client settings options

* Client Settings

* Settings Json serialization/deserialization handling
2019-02-17 21:34:46 +11:00
David Bomba
1ad19734e3
Stubs for Client Settings (#2655)
* Clean up Client Show

* Working on Show Client menu action

* working on client view permissions

* Finishing up Client Statement View

* Workig on client settings

* add mix manifest
2019-02-04 23:06:19 +11:00
David Bomba
748409471c Implement Embedded Google Maps - remove redundant npm and composer dependencies 2019-01-30 15:52:26 +11:00
David Bomba
c09a442f4b Add lat long to client table for caching 2019-01-28 21:18:31 +11:00
David Bomba
f345986157 Working on google maps implementation 2019-01-28 08:34:57 +11:00
David Bomba
64d3ca0474 Added docs 2019-01-27 08:24:16 +11:00
David Bomba
e3fc50ebdb Working on Show Client 2019-01-26 20:34:38 +11:00