Fix for payment error

This commit is contained in:
Hillel Coren 2016-09-20 09:03:48 +03:00
parent 092f842592
commit fc5a462f5a

View File

@ -833,8 +833,8 @@ class BasePaymentDriver
return true;
}
$accountGatewaySettings = AccountGatewaySettings::scope()->where('account_gateway_settings.gateway_type_id',
'=', $gatewayTypeId)->first();
$accountGatewaySettings = AccountGatewaySettings::scope(false, $this->invitation->account_id)
->where('account_gateway_settings.gateway_type_id', '=', $gatewayTypeId)->first();
if ($accountGatewaySettings) {
$invoice = $this->invoice();