PHP Class App\Http\Controllers\OnlinePaymentController

Inheritance: extends BaseController
Mostrar archivo Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$paymentService App\services\PaymentService
$userMailer App\Ninja\Mailers\UserMailer

Public Methods

Method Description
__construct ( PaymentService $paymentService, UserMailer $userMailer, InvoiceRepository $invoiceRepo ) OnlinePaymentController constructor.
doPayment ( CreateOnlinePaymentRequest $request ) : Illuminate\Http\RedirectResponse
getBankInfo ( $routingNumber ) : Illuminate\Http\JsonResponse
handleBuyNow ( ClientRepository $clientRepo, InvoiceService $invoiceService, $gatewayTypeAlias = false )
handlePaymentWebhook ( $accountKey, $gatewayId ) : Illuminate\Http\JsonResponse
offsitePayment ( boolean $invitationKey = false, mixed $gatewayTypeAlias = false ) : Illuminate\Http\RedirectResponse
showPayment ( $invitationKey, $gatewayTypeAlias = false, boolean $sourceId = false ) : Illuminate\Http\RedirectResponse

Private Methods

Method Description
error ( $paymentDriver, $exception, boolean $showPayment = false ) : Illuminate\Http\RedirectResponse

Method Details

__construct() public method

OnlinePaymentController constructor.
public __construct ( PaymentService $paymentService, UserMailer $userMailer, InvoiceRepository $invoiceRepo )
$paymentService App\services\PaymentService
$userMailer App\Ninja\Mailers\UserMailer
$invoiceRepo App\Ninja\Repositories\InvoiceRepository

doPayment() public method

public doPayment ( CreateOnlinePaymentRequest $request ) : Illuminate\Http\RedirectResponse
$request App\Http\Requests\CreateOnlinePaymentRequest
return Illuminate\Http\RedirectResponse

getBankInfo() public method

public getBankInfo ( $routingNumber ) : Illuminate\Http\JsonResponse
$routingNumber
return Illuminate\Http\JsonResponse

handleBuyNow() public method

public handleBuyNow ( ClientRepository $clientRepo, InvoiceService $invoiceService, $gatewayTypeAlias = false )
$clientRepo App\Ninja\Repositories\ClientRepository
$invoiceService App\services\InvoiceService

handlePaymentWebhook() public method

public handlePaymentWebhook ( $accountKey, $gatewayId ) : Illuminate\Http\JsonResponse
$accountKey
$gatewayId
return Illuminate\Http\JsonResponse

offsitePayment() public method

public offsitePayment ( boolean $invitationKey = false, mixed $gatewayTypeAlias = false ) : Illuminate\Http\RedirectResponse
$invitationKey boolean
$gatewayTypeAlias mixed
return Illuminate\Http\RedirectResponse

showPayment() public method

public showPayment ( $invitationKey, $gatewayTypeAlias = false, boolean $sourceId = false ) : Illuminate\Http\RedirectResponse
$invitationKey
$sourceId boolean
return Illuminate\Http\RedirectResponse

Property Details

$invoiceRepo protected_oe property

protected InvoiceRepository,App\Ninja\Repositories $invoiceRepo
return App\Ninja\Repositories\InvoiceRepository

$paymentService protected_oe property

protected PaymentService,App\Services $paymentService
return App\services\PaymentService

$userMailer protected_oe property

protected UserMailer,App\Ninja\Mailers $userMailer
return App\Ninja\Mailers\UserMailer