PHP 클래스 App\Http\Controllers\OnlinePaymentController

상속: extends BaseController
파일 보기 프로젝트 열기: hillelcoren/invoice-ninja

보호된 프로퍼티들

프로퍼티 타입 설명
$invoiceRepo App\Ninja\Repositories\InvoiceRepository
$paymentService App\services\PaymentService
$userMailer App\Ninja\Mailers\UserMailer

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
error ( $paymentDriver, $exception, boolean $showPayment = false ) : Illuminate\Http\RedirectResponse

메소드 상세

__construct() 공개 메소드

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 doPayment ( CreateOnlinePaymentRequest $request ) : Illuminate\Http\RedirectResponse
$request App\Http\Requests\CreateOnlinePaymentRequest
리턴 Illuminate\Http\RedirectResponse

getBankInfo() 공개 메소드

public getBankInfo ( $routingNumber ) : Illuminate\Http\JsonResponse
$routingNumber
리턴 Illuminate\Http\JsonResponse

handleBuyNow() 공개 메소드

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

handlePaymentWebhook() 공개 메소드

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

offsitePayment() 공개 메소드

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

showPayment() 공개 메소드

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

프로퍼티 상세

$invoiceRepo 보호되어 있는 프로퍼티

protected InvoiceRepository,App\Ninja\Repositories $invoiceRepo
리턴 App\Ninja\Repositories\InvoiceRepository

$paymentService 보호되어 있는 프로퍼티

protected PaymentService,App\Services $paymentService
리턴 App\services\PaymentService

$userMailer 보호되어 있는 프로퍼티

protected UserMailer,App\Ninja\Mailers $userMailer
리턴 App\Ninja\Mailers\UserMailer