PHP 클래스 App\Ninja\PaymentDrivers\BasePaymentDriver

파일 보기 프로젝트 열기: hillelcoren/invoice-ninja 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$accountGateway
$invitation

보호된 프로퍼티들

프로퍼티 타입 설명
$customer
$customerReferenceParam
$customerResponse
$gateway
$gatewayType
$input
$purchaseResponse
$sourceId
$sourceReferenceParam
$tokenResponse
$transactionReferenceParam

공개 메소드들

메소드 설명
__construct ( $accountGateway = false, $invitation = false, $gatewayType = false )
completeOffsitePurchase ( $input )
completeOnsitePurchase ( $input = false, $paymentMethod = false )
createPayment ( $ref = false, $paymentMethod = null )
createPaymentMethod ( $customer )
createToken ( )
createTransactionToken ( ) Some gateways (ie, Checkout.com and Braintree) require generating a token before paying for the invoice
customer ( $clientId = false ) * protected function tokenDetails() { $details = [];
deleteToken ( )
gatewayTypes ( )
handleWebHook ( $input )
handles ( $type )
isGateway ( $gatewayId )
isTwoStep ( ) set payment method as pending until confirmed
isValid ( )
partialView ( ) check if a custom partial exists for this provider
paymentDetailsFromClient ( )
paymentLinks ( )
providerName ( )
refundPayment ( $payment, $amount )
removePaymentMethod ( $paymentMethod )
rules ( )
startPurchase ( $input = false, $sourceId = false )
tokenLinks ( )
tokenize ( ) when set to true we won't pass the card details with the form
verifyBankAccount ( $client, $publicId, $amount1, $amount2 )

보호된 메소드들

메소드 설명
account ( )
attemptVoidPayment ( $response, $payment, $amount )
checkCustomerExists ( $customer )
client ( )
contact ( )
createLocalPayment ( $payment )
creatingCustomer ( $customer )
creatingPayment ( $payment, $paymentMethod )
creatingPaymentMethod ( $paymentMethod )
gateway ( )
invoice ( )
isGatewayType ( $gatewayType, $paymentMethod = false ) optionally pass a paymentMethod to determine the type from the token
meetsGatewayTypeLimits ( $gatewayTypeId )
parseCardType ( $cardName )
paymentDetails ( $paymentMethod = false )
paymentUrl ( $gatewayTypeAlias )
paymentView ( ) check if a custom view exists for this provider
refundDetails ( $payment, $amount )
shouldCreateToken ( )

비공개 메소드들

메소드 설명
paymentDetailsFromInput ( $input )
updateClient ( )

메소드 상세

__construct() 공개 메소드

public __construct ( $accountGateway = false, $invitation = false, $gatewayType = false )

account() 보호된 메소드

protected account ( )

attemptVoidPayment() 보호된 메소드

protected attemptVoidPayment ( $response, $payment, $amount )

checkCustomerExists() 보호된 메소드

protected checkCustomerExists ( $customer )

client() 보호된 메소드

protected client ( )

completeOffsitePurchase() 공개 메소드

public completeOffsitePurchase ( $input )

completeOnsitePurchase() 공개 메소드

public completeOnsitePurchase ( $input = false, $paymentMethod = false )

contact() 보호된 메소드

protected contact ( )

createLocalPayment() 보호된 메소드

protected createLocalPayment ( $payment )

createPayment() 공개 메소드

public createPayment ( $ref = false, $paymentMethod = null )

createPaymentMethod() 공개 메소드

public createPaymentMethod ( $customer )

createToken() 공개 메소드

public createToken ( )

createTransactionToken() 공개 메소드

Some gateways (ie, Checkout.com and Braintree) require generating a token before paying for the invoice

creatingCustomer() 보호된 메소드

protected creatingCustomer ( $customer )

creatingPayment() 보호된 메소드

protected creatingPayment ( $payment, $paymentMethod )

creatingPaymentMethod() 보호된 메소드

protected creatingPaymentMethod ( $paymentMethod )

customer() 공개 메소드

if ($customer = $this->customer()) { $details['customerReference'] = $customer->token; } return $details; }
public customer ( $clientId = false )

deleteToken() 공개 메소드

public deleteToken ( )

gateway() 보호된 메소드

protected gateway ( )

gatewayTypes() 공개 메소드

public gatewayTypes ( )

handleWebHook() 공개 메소드

public handleWebHook ( $input )

handles() 공개 메소드

public handles ( $type )

invoice() 보호된 메소드

protected invoice ( )

isGateway() 공개 메소드

public isGateway ( $gatewayId )

isGatewayType() 보호된 메소드

optionally pass a paymentMethod to determine the type from the token
protected isGatewayType ( $gatewayType, $paymentMethod = false )

isTwoStep() 공개 메소드

set payment method as pending until confirmed
public isTwoStep ( )

isValid() 공개 메소드

public isValid ( )

meetsGatewayTypeLimits() 보호된 메소드

protected meetsGatewayTypeLimits ( $gatewayTypeId )

parseCardType() 보호된 메소드

protected parseCardType ( $cardName )

partialView() 공개 메소드

check if a custom partial exists for this provider
public partialView ( )

paymentDetails() 보호된 메소드

protected paymentDetails ( $paymentMethod = false )

paymentDetailsFromClient() 공개 메소드

paymentUrl() 보호된 메소드

protected paymentUrl ( $gatewayTypeAlias )

paymentView() 보호된 메소드

check if a custom view exists for this provider
protected paymentView ( )

providerName() 공개 메소드

public providerName ( )

refundDetails() 보호된 메소드

protected refundDetails ( $payment, $amount )

refundPayment() 공개 메소드

public refundPayment ( $payment, $amount )

removePaymentMethod() 공개 메소드

public removePaymentMethod ( $paymentMethod )

rules() 공개 메소드

public rules ( )

shouldCreateToken() 보호된 메소드

protected shouldCreateToken ( )

startPurchase() 공개 메소드

public startPurchase ( $input = false, $sourceId = false )

tokenize() 공개 메소드

when set to true we won't pass the card details with the form
public tokenize ( )

verifyBankAccount() 공개 메소드

public verifyBankAccount ( $client, $publicId, $amount1, $amount2 )

프로퍼티 상세

$accountGateway 공개적으로 프로퍼티

public $accountGateway

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

protected $customer

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

protected $customerReferenceParam

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

protected $customerResponse

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

protected $gateway

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

protected $gatewayType

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

protected $input

$invitation 공개적으로 프로퍼티

public $invitation

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

protected $purchaseResponse

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

protected $sourceId

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

protected $sourceReferenceParam

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

protected $tokenResponse

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

protected $transactionReferenceParam