protected function paymentDetails($paymentMethod = false)
 {
     $data = parent::paymentDetails();
     $data['ButtonSource'] = 'InvoiceNinja_SP';
     $data['solutionType'] = 'Sole';
     // show 'Pay with credit card' option
     return $data;
 }
 protected function paymentDetails($paymentMethod = false)
 {
     $data = parent::paymentDetails();
     if ($ref = array_get($this->input, 'token')) {
         $data['transactionReference'] = $ref;
     }
     return $data;
 }
 protected function gateway()
 {
     $gateway = parent::gateway();
     if ($gateway->getSandbox() && isset($_ENV['DWOLLA_SANDBOX_KEY']) && isset($_ENV['DWOLLA_SANSBOX_SECRET'])) {
         $gateway->setKey($_ENV['DWOLLA_SANDBOX_KEY']);
         $gateway->setSecret($_ENV['DWOLLA_SANSBOX_SECRET']);
     } elseif (isset($_ENV['DWOLLA_KEY']) && isset($_ENV['DWOLLA_SECRET'])) {
         $gateway->setKey($_ENV['DWOLLA_KEY']);
         $gateway->setSecret($_ENV['DWOLLA_SECRET']);
     }
     return $gateway;
 }
 public function completeOffsitePurchase($input)
 {
     parent::completeOffsitePurchase(['token' => Request::query('pt')]);
 }
 protected function paymentDetails($paymentMethod = false)
 {
     $data = parent::paymentDetails();
     $data['ButtonSource'] = 'InvoiceNinja_SP';
     return $data;
 }