for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pleets\LaravelPayPal\Providers;
use Illuminate\Support\ServiceProvider;
use PaymentGateway\PayPalSdk\PayPalService;
use Pleets\LaravelPayPal\Helpers\Environment;
class PayPalServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
$this->app->bind(PayPalService::class, function () {
$paypalService = new PayPalService(Environment::getEndpoint());
$paypalService->setAuth(Environment::getClientId(), Environment::getSecret());
return $paypalService;
});
}