mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:44:28 -04:00
Forte gateway create line removed from PaymentLibrariesSeeder and baseUri now static.
This commit is contained in:
parent
55affa93a3
commit
ccc4443001
@ -38,7 +38,10 @@ class ACH
|
|||||||
{
|
{
|
||||||
$this->forte = $forte;
|
$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_api_access_id = $this->forte->company_gateway->getConfigField('apiAccessId');
|
||||||
$this->forte_secure_key = $this->forte->company_gateway->getConfigField('secureKey');
|
$this->forte_secure_key = $this->forte->company_gateway->getConfigField('secureKey');
|
||||||
$this->forte_auth_organization_id = $this->forte->company_gateway->getConfigField('authOrganizationId');
|
$this->forte_auth_organization_id = $this->forte->company_gateway->getConfigField('authOrganizationId');
|
||||||
|
@ -39,7 +39,10 @@ class CreditCard
|
|||||||
{
|
{
|
||||||
$this->forte = $forte;
|
$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_api_access_id = $this->forte->company_gateway->getConfigField('apiAccessId');
|
||||||
$this->forte_secure_key = $this->forte->company_gateway->getConfigField('secureKey');
|
$this->forte_secure_key = $this->forte->company_gateway->getConfigField('secureKey');
|
||||||
$this->forte_auth_organization_id = $this->forte->company_gateway->getConfigField('authOrganizationId');
|
$this->forte_auth_organization_id = $this->forte->company_gateway->getConfigField('authOrganizationId');
|
||||||
|
@ -17,7 +17,7 @@ class FortePaymentGateway extends Migration
|
|||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
$fields = new \stdClass;
|
$fields = new \stdClass;
|
||||||
$fields->baseUri = "";
|
$fields->testMode = true;
|
||||||
$fields->apiAccessId = "";
|
$fields->apiAccessId = "";
|
||||||
$fields->secureKey = "";
|
$fields->secureKey = "";
|
||||||
$fields->authOrganizationId = "";
|
$fields->authOrganizationId = "";
|
||||||
|
@ -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' => 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' => 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' => 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) {
|
foreach ($gateways as $gateway) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user