title: Omnipay Paypal set store name and logo (Laravel)
body: <p>How can I set the store name and logo using the Omnipay Paypal package for Laravel?
  Please see my code below, until now I tried to use the method setBrandName on the gateway variable, but this method was not found. It seems like the class ExpressCheckout has such methods but is like deprecated and one should use this code and checkout procedure. Also tried to add entry to the purchase method array parameter but it didn't work.</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  ..
  use Omnipay\Omnipay;
  
  class PurchaseController extends Controller
  {
      public $gateway;
  
      public function __construct()
      {
          $this-&gt;gateway = Omnipay::create('PayPal_Rest');
          $this-&gt;gateway-&gt;setClientId(...);
          $this-&gt;gateway-&gt;setSecret(...);
          $this-&gt;gateway-&gt;setTestMode(true);
      }
      
      protected function makePurchase(Request $request) {
          try {
              $items = ...;
  
              $response = $this-&gt;gateway-&gt;purchase(array(
                  'amount' =&gt; $cart-&gt;getSum(),
                  'items' =&gt; $items,
                  'currency' =&gt; config('paypal.currency'),
                  'returnUrl' =&gt; route('payment.success'),
                  'cancelUrl' =&gt; route('cart'),
              ))-&gt;send();
  
  
              if ($response-&gt;isRedirect()) {
                  $response-&gt;redirect(); // this will automatically forward the customer
              } else {
                  // not successful
                  return $response-&gt;getMessage() . &quot;, &quot; . $response-&gt;getCode();
              }
          } catch(Exception $e) {
              return $e-&gt;getMessage();
          }
      }
  
      protected function purchaseCompleted(Request $request) {
          ...    
      }
  }
  </code></pre>