PHP Class App\Ninja\PaymentDrivers\BasePaymentDriver

Afficher le fichier Open project: hillelcoren/invoice-ninja Class Usage Examples

Méthodes publiques

Свойство Type Description
$accountGateway
$invitation

Protected Properties

Свойство Type Description
$customer
$customerReferenceParam
$customerResponse
$gateway
$gatewayType
$input
$purchaseResponse
$sourceId
$sourceReferenceParam
$tokenResponse
$transactionReferenceParam

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
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 ( )

Private Methods

Méthode Description
paymentDetailsFromInput ( $input )
updateClient ( )

Method Details

__construct() public méthode

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

account() protected méthode

protected account ( )

attemptVoidPayment() protected méthode

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

checkCustomerExists() protected méthode

protected checkCustomerExists ( $customer )

client() protected méthode

protected client ( )

completeOffsitePurchase() public méthode

public completeOffsitePurchase ( $input )

completeOnsitePurchase() public méthode

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

contact() protected méthode

protected contact ( )

createLocalPayment() protected méthode

protected createLocalPayment ( $payment )

createPayment() public méthode

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

createPaymentMethod() public méthode

public createPaymentMethod ( $customer )

createToken() public méthode

public createToken ( )

createTransactionToken() public méthode

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

creatingCustomer() protected méthode

protected creatingCustomer ( $customer )

creatingPayment() protected méthode

protected creatingPayment ( $payment, $paymentMethod )

creatingPaymentMethod() protected méthode

protected creatingPaymentMethod ( $paymentMethod )

customer() public méthode

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

deleteToken() public méthode

public deleteToken ( )

gateway() protected méthode

protected gateway ( )

gatewayTypes() public méthode

public gatewayTypes ( )

handleWebHook() public méthode

public handleWebHook ( $input )

handles() public méthode

public handles ( $type )

invoice() protected méthode

protected invoice ( )

isGateway() public méthode

public isGateway ( $gatewayId )

isGatewayType() protected méthode

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

isTwoStep() public méthode

set payment method as pending until confirmed
public isTwoStep ( )

isValid() public méthode

public isValid ( )

meetsGatewayTypeLimits() protected méthode

protected meetsGatewayTypeLimits ( $gatewayTypeId )

parseCardType() protected méthode

protected parseCardType ( $cardName )

partialView() public méthode

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

paymentDetails() protected méthode

protected paymentDetails ( $paymentMethod = false )

paymentDetailsFromClient() public méthode

paymentUrl() protected méthode

protected paymentUrl ( $gatewayTypeAlias )

paymentView() protected méthode

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

providerName() public méthode

public providerName ( )

refundDetails() protected méthode

protected refundDetails ( $payment, $amount )

refundPayment() public méthode

public refundPayment ( $payment, $amount )

removePaymentMethod() public méthode

public removePaymentMethod ( $paymentMethod )

rules() public méthode

public rules ( )

shouldCreateToken() protected méthode

protected shouldCreateToken ( )

startPurchase() public méthode

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

tokenize() public méthode

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

verifyBankAccount() public méthode

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

Property Details

$accountGateway public_oe property

public $accountGateway

$customer protected_oe property

protected $customer

$customerReferenceParam protected_oe property

protected $customerReferenceParam

$customerResponse protected_oe property

protected $customerResponse

$gateway protected_oe property

protected $gateway

$gatewayType protected_oe property

protected $gatewayType

$input protected_oe property

protected $input

$invitation public_oe property

public $invitation

$purchaseResponse protected_oe property

protected $purchaseResponse

$sourceId protected_oe property

protected $sourceId

$sourceReferenceParam protected_oe property

protected $sourceReferenceParam

$tokenResponse protected_oe property

protected $tokenResponse

$transactionReferenceParam protected_oe property

protected $transactionReferenceParam