PHP Class Give_Helper_Payment, Give

Helper class to create and delete a donation payment easily.
Inheritance: extends WP_UnitTestCase
Mostra file Open project: wordimpress/give Class Usage Examples

Public Methods

Method Description
create_multilevel_payment ( ) Creates a multi-level (variable) donation payment.
create_simple_payment ( ) Create a simple donation payment.
create_simple_payment_with_fee ( ) : boolean | integer Create Simple Donation w/ Fee
delete_payment ( integer $payment_id ) Delete a payment.

Method Details

create_multilevel_payment() public static method

Creates a multi-level (variable) donation payment.
Since: 1.0
public static create_multilevel_payment ( )

create_simple_payment() public static method

Create a simple donation payment.
Since: 1.0
public static create_simple_payment ( )

create_simple_payment_with_fee() public static method

Create Simple Donation w/ Fee

delete_payment() public static method

Delete a payment.
Since: 1.0
public static delete_payment ( integer $payment_id )
$payment_id integer ID of the payment to delete.