c_ws_plugin__s2member_pro_google_utilities
public  class c_ws_plugin__s2member_pro_google_utilities
1.5
( 6 Methods ) Method Summary | |
|---|---|
| public static array | Formulates request Authorization headers.  | 
| public static array|bool | google_parse_s2vars(str $xml) Parses s2Vars from Google® IPN Notifications.  | 
| public static str | google_periodicity(str $period_term) Converts a "Period Term" into a Google® periodicity for XML subscription attribute.  | 
| public static array|bool | Get   | 
| public static str | google_sign(str $xml) Builds an HMAC-SHA1 signature for XML data transfer verification.  | 
| public static int | google_start_time(str $period1, str $period3) Calculates start date for a Recurring Payment Profile.  | 
public static  array google_api_headers()
Formulates request Authorization headers.
1.5
array - Request Authorization headers for Google® API communication.
public static  array|bool google_parse_s2vars(str $xml)
Parses s2Vars from Google® IPN Notifications.
1.5
str $xml - XML data section returned by Google® for s2Vars.
array|bool - An array of s2Vars, else false on failure.
public static  str google_periodicity(str $period_term)
Converts a "Period Term" into a Google® periodicity for XML subscription attribute.
1.5
str $period_term - A "Period Term" combination.
str - The Google® Checkout equivalent for $period_term. One of DAILY, WEEKLY, SEMI_MONTHLY, MONTHLY, EVERY_TWO_MONTHS, QUARTERLY, or YEARLY. Defaults to MONTHLY if $period_term is not configured properly.
public static  array|bool google_postvars()
Get $_POST or $_REQUEST vars from Google®.
1.5
array|bool - An array of verified $_POST or $_REQUEST variables, else false.
Continue optimizing this routine with empty() and isset().
Candidate for the use of ifsetor()?
public static  str google_sign(str $xml)
Builds an HMAC-SHA1 signature for XML data transfer verification.
1.5
str $xml - An XML data string to sign.
str - An HMAC-SHA1 signature string.
public static  int google_start_time(str $period1, str $period3)
Calculates start date for a Recurring Payment Profile.
1.5
str $period1 - Optional. A "Period Term" combination. Defaults to 0 D.
str $period3 - Optional. A "Period Term" combination. Defaults to 0 D.
int - The start time, a Unix timestamp.
Google® utilities.