Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
srmklive
/
paypal
/
src
/
Services
Location:
/home/zoteqbgb/public_html/vendor/srmklive/paypal/src/Services
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: PayPal.php
<?php namespace Srmklive\PayPal\Services; use Exception; use Srmklive\PayPal\Traits\PayPalRequest as PayPalAPIRequest; use Srmklive\PayPal\Traits\PayPalVerifyIPN; class PayPal { use PayPalAPIRequest; use PayPalVerifyIPN; /** * PayPal constructor. * * @param array $config * * @throws Exception */ public function __construct(array $config = []) { // Setting PayPal API Credentials $this->setConfig($config); $this->httpBodyParam = 'form_params'; $this->options = []; $this->setRequestHeader('Accept', 'application/json'); } /** * Set ExpressCheckout API endpoints & options. * * @param array $credentials */ protected function setOptions(array $credentials): void { // Setting API Endpoints $this->config['api_url'] = 'https://api-m.paypal.com'; $this->config['gateway_url'] = 'https://www.paypal.com'; $this->config['ipn_url'] = 'https://ipnpb.paypal.com/cgi-bin/webscr'; if ($this->mode === 'sandbox') { $this->config['api_url'] = 'https://api-m.sandbox.paypal.com'; $this->config['gateway_url'] = 'https://www.sandbox.paypal.com'; $this->config['ipn_url'] = 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr'; } // Adding params outside sandbox / live array $this->config['payment_action'] = $credentials['payment_action']; $this->config['notify_url'] = $credentials['notify_url']; $this->config['locale'] = $credentials['locale']; } }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
PayPal.php
1,596 bytes
0644
2025-02-26 02:38
âï¸
ðï¸
Rename
Str.php
657 bytes
0644
2025-02-26 02:38
âï¸
ðï¸
Rename
VerifyDocuments.php
1,687 bytes
0644
2025-02-26 02:38
âï¸
ðï¸
Rename
Chang
Apply