class Payment

Entity Event (linked to DB table stripe_payment)

Properties

protected int $id Payment unique id
protected bool $finished If the Payment is finished
protected string $orderId OrderId for the Payment
protected int $amount Amount in cents for the Payment
protected int $vat VAT rate without decimal (x 100) for the Payment
protected string $description Description for the Payment
protected string $currency Currency for the Payment
protected string $action Action to be executed after the payment
protected int $stripeFee Estimated Stripe fee in cents
protected string $stripeToken Stripe token
protected string $stripeTokenType Stripe token type
protected string $stripeEmail Email used for Stripe Payment
protected int $userId User unique id (if logged in)
protected string $userIp User IP address
protected DateTime $creation DateTime creation for the Payment
protected bool $live Wether or not the payments are live (not mapped)
protected string $returnRoute Return Route to be used after payment (not mapped)

Methods

__construct($data, $timezone)

No description

setDataFromArray(array $data)

Hydrates entity from associative array

int
getId()

Get id

setFinished(bool|null $finished)

Set finished

bool|null
getFinished()

Get finished

setOrderId(string|null $orderId)

Set orderId

string|null
getOrderId()

Get orderId

setAmount(int|null $amount)

Set amount

int|null
getAmount()

Get amount

setVat(int|null $vat)

Set vat

int|null
getVat()

Get vat

setDescription(string|null $description)

Set description

string|null
getDescription()

Get description

setCurrency(string|null $currency)

Set currency

string|null
getCurrency()

Get currency

setAction(string|null $action)

Set action

string|null
getAction()

Get action

setStripeFee(int|null $stripeFee)

Set stripeFee

int
getStripeFee()

Get stripeFee

setStripeToken(string|null $stripeToken)

Set stripeToken

string|null
getStripeToken()

Get stripeToken

setStripeTokenType(string|null $stripeTokenType)

Set stripeTokenType

string|null
getStripeTokenType()

Get stripeTokenType

setStripeEmail(string|null $stripeEmail)

Set stripeEmail

string|null
getStripeEmail()

Get stripeEmail

setUserId(int|null $userId)

Set userId

int|null
getUserId()

Get userId

setUserIp(string|null $userIp)

Set userIp

string|null
getUserIp()

Get userIp

setCreation(DateTime|null $creation)

Set creation

DateTime|null
getCreation()

Get creation

setLive(bool|null $live)

Set live

bool|null
getLive()

Get live

setReturnRoute(string|null $returnRoute)

Set returnRoute

string|null
getReturnRoute()

Get returnRoute

Details

at line 161
__construct($data, $timezone)

Parameters

$data
$timezone

at line 176
setDataFromArray(array $data)

Hydrates entity from associative array

Parameters

array $data

at line 190
int getId()

Get id

Return Value

int

at line 200
Payment setFinished(bool|null $finished)

Set finished

Parameters

bool|null $finished

Return Value

Payment

at line 211
bool|null getFinished()

Get finished

Return Value

bool|null

at line 221
Payment setOrderId(string|null $orderId)

Set orderId

Parameters

string|null $orderId

Return Value

Payment

at line 232
string|null getOrderId()

Get orderId

Return Value

string|null

at line 242
Payment setAmount(int|null $amount)

Set amount

Parameters

int|null $amount

Return Value

Payment

at line 253
int|null getAmount()

Get amount

Return Value

int|null

at line 263
Payment setVat(int|null $vat)

Set vat

Parameters

int|null $vat

Return Value

Payment

at line 274
int|null getVat()

Get vat

Return Value

int|null

at line 284
Payment setDescription(string|null $description)

Set description

Parameters

string|null $description

Return Value

Payment

at line 295
string|null getDescription()

Get description

Return Value

string|null

at line 305
Payment setCurrency(string|null $currency)

Set currency

Parameters

string|null $currency

Return Value

Payment

at line 316
string|null getCurrency()

Get currency

Return Value

string|null

at line 326
Payment setAction(string|null $action)

Set action

Parameters

string|null $action

Return Value

Payment

at line 337
string|null getAction()

Get action

Return Value

string|null

at line 347
Payment setStripeFee(int|null $stripeFee)

Set stripeFee

Parameters

int|null $stripeFee

Return Value

Payment

at line 358
int getStripeFee()

Get stripeFee

Return Value

int

at line 368
Payment setStripeToken(string|null $stripeToken)

Set stripeToken

Parameters

string|null $stripeToken

Return Value

Payment

at line 379
string|null getStripeToken()

Get stripeToken

Return Value

string|null

at line 389
Payment setStripeTokenType(string|null $stripeTokenType)

Set stripeTokenType

Parameters

string|null $stripeTokenType

Return Value

Payment

at line 400
string|null getStripeTokenType()

Get stripeTokenType

Return Value

string|null

at line 410
Payment setStripeEmail(string|null $stripeEmail)

Set stripeEmail

Parameters

string|null $stripeEmail

Return Value

Payment

at line 421
string|null getStripeEmail()

Get stripeEmail

Return Value

string|null

at line 431
Payment setUserId(int|null $userId)

Set userId

Parameters

int|null $userId

Return Value

Payment

at line 442
int|null getUserId()

Get userId

Return Value

int|null

at line 452
Payment setUserIp(string|null $userIp)

Set userIp

Parameters

string|null $userIp

Return Value

Payment

at line 463
string|null getUserIp()

Get userIp

Return Value

string|null

at line 473
Payment setCreation(DateTime|null $creation)

Set creation

Parameters

DateTime|null $creation

Return Value

Payment

at line 484
DateTime|null getCreation()

Get creation

Return Value

DateTime|null

at line 494
Payment setLive(bool|null $live)

Set live

Parameters

bool|null $live

Return Value

Payment

at line 505
bool|null getLive()

Get live

Return Value

bool|null

at line 515
Payment setReturnRoute(string|null $returnRoute)

Set returnRoute

Parameters

string|null $returnRoute

Return Value

Payment

at line 526
string|null getReturnRoute()

Get returnRoute

Return Value

string|null