1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Forte gateway create line removed from PaymentLibrariesSeeder and baseUri now static.

This commit is contained in:
Kishan Patel 2022-04-21 11:53:12 +05:30
parent 55affa93a3
commit ccc4443001
4 changed files with 9 additions and 4 deletions

View File

@ -38,7 +38,10 @@ class ACH
{
$this->forte = $forte;
$this->forte_base_uri = $this->forte->company_gateway->getConfigField('baseUri');
$this->forte_base_uri = "https://sandbox.forte.net/api/v3";
if($this->forte->company_gateway->getConfigField('testMode') == true){
$this->forte_base_uri = "https://api.forte.net/v3";
}
$this->forte_api_access_id = $this->forte->company_gateway->getConfigField('apiAccessId');
$this->forte_secure_key = $this->forte->company_gateway->getConfigField('secureKey');
$this->forte_auth_organization_id = $this->forte->company_gateway->getConfigField('authOrganizationId');

View File

@ -39,7 +39,10 @@ class CreditCard
{
$this->forte = $forte;
$this->forte_base_uri = $this->forte->company_gateway->getConfigField('baseUri');
$this->forte_base_uri = "https://sandbox.forte.net/api/v3";
if($this->forte->company_gateway->getConfigField('testMode') == true){
$this->forte_base_uri = "https://api.forte.net/v3";
}
$this->forte_api_access_id = $this->forte->company_gateway->getConfigField('apiAccessId');
$this->forte_secure_key = $this->forte->company_gateway->getConfigField('secureKey');
$this->forte_auth_organization_id = $this->forte->company_gateway->getConfigField('authOrganizationId');

View File

@ -17,7 +17,7 @@ class FortePaymentGateway extends Migration
public function up()
{
$fields = new \stdClass;
$fields->baseUri = "";
$fields->testMode = true;
$fields->apiAccessId = "";
$fields->secureKey = "";
$fields->authOrganizationId = "";

View File

@ -82,7 +82,6 @@ class PaymentLibrariesSeeder extends Seeder
['id' => 55, 'name' => 'Custom', 'provider' => 'Custom', 'is_offsite' => true, 'sort_order' => 21, 'key' => '54faab2ab6e3223dbe848b1686490baa', 'fields' => '{"name":"","text":""}'],
['id' => 57, 'name' => 'Square', 'provider' => 'Square', 'is_offsite' => false, 'sort_order' => 21, 'key' => '65faab2ab6e3223dbe848b1686490baz', 'fields' => '{"accessToken":"","applicationId":"","locationId":"","testMode":false}'],
['id' => 58, 'name' => 'Razorpay', 'provider' => 'Razorpay', 'is_offsite' => false, 'sort_order' => 21, 'key' => 'hxd6gwg3ekb9tb3v9lptgx1mqyg69zu9', 'fields' => '{"apiKey":"","apiSecret":""}'],
['id' => 59, 'name' => 'Forte', 'provider' => 'Forte', 'is_offsite' => true, 'sort_order' => 21, 'key' => 'kivcvjexxvdiyqtj3mju5d6yhpeht2xs', 'fields' => '{"baseUri":"","apiAccessId":"","secureKey":"","authOrganizationId":"","organizationId":"","locationId":""}'],
];
foreach ($gateways as $gateway) {