PHP Class EDD\HelpScout\Endpoint

Show file Open project: dannyvankooten/edd-helpscout

Public Methods

Method Description
__construct ( ) Constructor
order_row ( array $order ) : string

Private Methods

Method Description
build_response_html ( ) : string Process the request - Find purchase data - Generate response*
get_customer_emails ( ) : array Get an array of emails belonging to the customer
get_customer_emails_by_license_key ( ) : array get customer mail address by license key
get_payment_method ( integer $payment_id ) : string Get the payment method used for the given $payment_id. Returns a link to the transaction in Stripe or PayPal if possible.
parse_data ( ) : array | mixed
query_customer_payments ( ) : array Query all payments belonging to the customer (by email)
respond ( string $html, integer $code = 200 ) Set JSON headers, return the given response string
validate ( ) : boolean Validate the request

Method Details

__construct() public method

Constructor
public __construct ( )

order_row() public method

public order_row ( array $order ) : string
$order array
return string