APP_Order::__construct( object $post, array $items )
Sets up the order objects
Package
Description Description
Parameters Parameters
- $post
(object) (Required) Post object returned from get_post() See (<a href="http://codex.wordpress.org/Function_Reference/get_post">http://codex.wordpress.org/Function_Reference/get_post</a>)
- $gateway
(string) (Required) Gateway indentifier for this order to use
- $ip_address
(string) (Required) IP_Address used to create the order
- $currency
(string) (Required) Currency code for currency currently being used. Should be registered with APP_Currencies
- $items
(array) (Required) Array of items currently attached to the order