mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Merge branch 'v5-develop' of https://github.com/turbo124/invoiceninja into v5-develop
This commit is contained in:
commit
5e06dceb2f
@ -179,6 +179,7 @@ class MigrationController extends BaseController
|
|||||||
$company->tasks()->forceDelete();
|
$company->tasks()->forceDelete();
|
||||||
$company->vendors()->forceDelete();
|
$company->vendors()->forceDelete();
|
||||||
$company->expenses()->forceDelete();
|
$company->expenses()->forceDelete();
|
||||||
|
$company->purchase_orders()->forceDelete();
|
||||||
|
|
||||||
$settings = $company->settings;
|
$settings = $company->settings;
|
||||||
|
|
||||||
@ -196,6 +197,7 @@ class MigrationController extends BaseController
|
|||||||
$settings->ticket_number_counter = 1;
|
$settings->ticket_number_counter = 1;
|
||||||
$settings->payment_number_counter = 1;
|
$settings->payment_number_counter = 1;
|
||||||
$settings->project_number_counter = 1;
|
$settings->project_number_counter = 1;
|
||||||
|
$settings->purchase_order_number_counter = 1;
|
||||||
|
|
||||||
$company->settings = $settings;
|
$company->settings = $settings;
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ class StripeConnectController extends BaseController
|
|||||||
$company_gateway->setConfig($payload);
|
$company_gateway->setConfig($payload);
|
||||||
$company_gateway->save();
|
$company_gateway->save();
|
||||||
|
|
||||||
StripeWebhook::dispatch($company->company_key, $company_gateway->id);
|
// StripeWebhook::dispatch($company->company_key, $company_gateway->id);
|
||||||
|
|
||||||
//response here
|
//response here
|
||||||
return view('auth.connect.completed');
|
return view('auth.connect.completed');
|
||||||
|
@ -63,10 +63,6 @@ class StoreCompanyRequest extends Request
|
|||||||
{
|
{
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
//https not sure i should be forcing this.
|
|
||||||
// if(array_key_exists('portal_domain', $input) && strlen($input['portal_domain']) > 1)
|
|
||||||
// $input['portal_domain'] = str_replace("http:", "https:", $input['portal_domain']);
|
|
||||||
|
|
||||||
if (array_key_exists('google_analytics_url', $input)) {
|
if (array_key_exists('google_analytics_url', $input)) {
|
||||||
$input['google_analytics_key'] = $input['google_analytics_url'];
|
$input['google_analytics_key'] = $input['google_analytics_url'];
|
||||||
}
|
}
|
||||||
|
@ -458,7 +458,7 @@ class CompanyImport implements ShouldQueue
|
|||||||
$settings->ticket_number_counter = 1;
|
$settings->ticket_number_counter = 1;
|
||||||
$settings->payment_number_counter = 1;
|
$settings->payment_number_counter = 1;
|
||||||
$settings->project_number_counter = 1;
|
$settings->project_number_counter = 1;
|
||||||
$settings->purchase_order_counter = 1;
|
$settings->purchase_order_number_counter = 1;
|
||||||
$this->company->settings = $co->settings;
|
$this->company->settings = $co->settings;
|
||||||
// $this->company->settings = $this->backup_file->company->settings;
|
// $this->company->settings = $this->backup_file->company->settings;
|
||||||
$this->company->save();
|
$this->company->save();
|
||||||
|
@ -59,7 +59,7 @@ class Alipay
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded', 'pending'])) {
|
||||||
return $this->processSuccesfulRedirect($request->source);
|
return $this->processSuccesfulRedirect($request->source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class Bancontact
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class EPS
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class FPX
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class GIROPAY
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class PRZELEWY24
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,10 +77,11 @@ class SOFORT
|
|||||||
|
|
||||||
public function paymentResponse($request)
|
public function paymentResponse($request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class iDeal
|
|||||||
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
$this->stripe->payment_hash->data = array_merge((array) $this->stripe->payment_hash->data, $request->all());
|
||||||
$this->stripe->payment_hash->save();
|
$this->stripe->payment_hash->save();
|
||||||
|
|
||||||
if ($request->redirect_status == 'succeeded') {
|
if (in_array($request->redirect_status, ['succeeded','pending'])) {
|
||||||
return $this->processSuccessfulPayment($request->payment_intent);
|
return $this->processSuccessfulPayment($request->payment_intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user