\PP\ModelsDonation

Represents a donation

Summary

Methods
Properties
Constants
__construct()
setAmount()
setCurrency()
setReceiptEmail()
setPlatformFee()
setSource()
setDestinationEIN()
getAmount()
getCurrency()
getReceiptEmail()
getPlatformFee()
getSource()
getDestinationEIN()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$amount
$currency
$source
$receiptEmail
$platformFee
$destinationEIN
N/A

Properties

$amount

$amount : 

Type

$currency

$currency : 

Type

$source

$source : 

Type

$receiptEmail

$receiptEmail : 

Type

$platformFee

$platformFee : 

Type

$destinationEIN

$destinationEIN : 

Type

Methods

__construct()

__construct() 

setAmount()

setAmount(integer  $amt) 

Sets the donation amount

Parameters

integer $amt

the amount in cents

setCurrency()

setCurrency(String  $cur) 

Sets the currency

Parameters

String $cur

the currency

setReceiptEmail()

setReceiptEmail(  $em) 

Sets the email

Parameters

$em

Throws

\InvalidArgumentException

on bad email

setPlatformFee()

setPlatformFee(integer  $amt) 

Sets the platform fee amount

Parameters

integer $amt

the amount in cents

setSource()

setSource(  $src) 

Sets the payment source

Parameters

$src

setDestinationEIN()

setDestinationEIN(String  $ein) 

Sets the destination EIN

Parameters

String $ein

the EIN

getAmount()

getAmount() : integer

gets the donation amount

Returns

integer —

$amt the amount in cents

getCurrency()

getCurrency() : String

gets the currency

Returns

String —

$cur the currency

getReceiptEmail()

getReceiptEmail() : String

gets the email

Returns

String —

$email the email

getPlatformFee()

getPlatformFee() : integer

gets the platform fee amount

Returns

integer —

$amt the amount in whole dollars

getSource()

getSource() : String

gets the payment source

Returns

String —

$source the tokenized cc

getDestinationEIN()

getDestinationEIN() : String

gets the destination EIN

Returns

String —

$ein the EIN