Add Payee merchant ID

This commit is contained in:
David Bomba 2023-10-19 17:33:22 +11:00
parent db0b1b9483
commit 255c58fd3b
3 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,7 @@ use App\Utils\Traits\MakesHash;
use Carbon\Carbon; use Carbon\Carbon;
use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Http;
use Omnipay\Omnipay; use Omnipay\Omnipay;
use Str;
class PayPalPPCPPaymentDriver extends BaseDriver class PayPalPPCPPaymentDriver extends BaseDriver
{ {
@ -365,7 +366,8 @@ class PayPalPPCPPaymentDriver extends BaseDriver
'Accept' => 'application/json', 'Accept' => 'application/json',
'Content-type' => 'application/json', 'Content-type' => 'application/json',
'Accept-Language' => 'en_US', 'Accept-Language' => 'en_US',
'PayPal-Partner-Attribution-Id' => 'invoiceninja_SP_PPCP' 'PayPal-Partner-Attribution-Id' => 'invoiceninja_SP_PPCP',
'PayPal-Request-Id' => Str::uuid(),
], $headers); ], $headers);
} }

View File

@ -14,7 +14,7 @@ return new class extends Migration
public function up(): void public function up(): void
{ {
if(!Gateway::find(61)) if(!Gateway::find(61) && Ninja::isHosted())
{ {
$fields = new \stdClass; $fields = new \stdClass;
@ -35,7 +35,7 @@ return new class extends Migration
} }
Gateway::whereIn('id', [60, 15])->update(['visible' => 0]); Gateway::whereIn('id', [60, 15, 49])->update(['visible' => 0]);
} }

View File

@ -101,7 +101,7 @@ class PaymentLibrariesSeeder extends Seeder
Gateway::query()->update(['visible' => 0]); Gateway::query()->update(['visible' => 0]);
Gateway::whereIn('id', [1,3,7,11,15,20,39,46,55,50,57,52,58,59,60,61])->update(['visible' => 1]); Gateway::whereIn('id', [1,3,7,11,15,20,39,46,55,50,57,52,58,59,60])->update(['visible' => 1]);
if (Ninja::isHosted()) { if (Ninja::isHosted()) {
Gateway::whereIn('id', [20,49])->update(['visible' => 0]); Gateway::whereIn('id', [20,49])->update(['visible' => 0]);