Details
Description
In the file "components/migrators/whmcs/8.0/whmcs8_0.php" replace:
From line 202 to 204 replace
if (!is_array(Configure::get($gateway . '.map'))) {
$gateway = 'generic_' . $gateway_type;
Configure::load($gateway, dirname(__FILE__) . DS . 'config' . DS);
}
with
if (is_array(Configure::get($gateway . '.map'))) { return Configure::get($gateway . '.map'); }
From line 557 to 581 replace
if (empty($mapping)) { continue; } // Install Stripe Gateway $gateway_id = null; if (!$this->GatewayManager->isInstalled( $mapping['gateway'], $mapping['type'], Configure::get('Blesta.company_id') )) { $gateway_id = $this->GatewayManager->add([ $mapping['gateway'], $mapping['type'], 'company_id' => Configure::get('Blesta.company_id') ]); } if (is_null($gateway_id)) { $gateway = $this->GatewayManager->getByClass( $mapping['gateway'], Configure::get('Blesta.company_id') ); $gateway_id = !is_null($gateway[0]->id) ? $gateway[0]->id : null; }
with
if (empty($mapping) || empty($credit_card)) { continue; } // Get Stripe gateway $gateway = $this->GatewayManager->getByClass( $mapping['gateway'], Configure::get('Blesta.company_id') ); if (isset($gateway[0]->id)) { $gateway_id = !is_null($gateway[0]->id) ? $gateway[0]->id : null; }
Replace line 482
if (empty($mapping)) {
with
if (empty($mapping) || empty($settings)) {
Activity
Abdy Franco
created issue -
Abdy Franco
made changes -
Field | Original Value | New Value |
---|---|---|
Security | Private [ 10000 ] |
Jonathan Reissmueller
made changes -
Sprint | 5.1.0 Sprint 6 [ 133 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.1.0 Sprint 6 [ 133 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked lower |
Jonathan Reissmueller
made changes -
Sprint | 5.1.0 Sprint 6 [ 133 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Abdy Franco
made changes -
Assignee | Abdy Franco [ abdy ] |
Abdy Franco
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Abdy Franco
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 28 minutes [ 1680 ] | |
Worklog Id | 14956 [ 14956 ] |
Abdy Franco
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |