c_ws_plugin__s2member_pro_clickbank_utilities
public class c_ws_plugin__s2member_pro_clickbank_utilities
1.5
( 4 Methods ) Method Summary | |
|---|---|
| public static array | Formulates request Authorization headers. |
| public static str | clickbank_cc_reminder(str $support, array $vars) Credit card reminder on Return Page templates. |
| public static array | clickbank_parse_s2vars(str $cvendthru, str $type) Parses s2Vars passed through by ClickBank®. |
| public static array|bool | Get |
public static array clickbank_api_headers()
Formulates request Authorization headers.
1.5
array - Request Authorization headers for ClickBank® API communication.
public static str clickbank_cc_reminder(str $support, array $vars)
Credit card reminder on Return Page templates.
110720
add_filter("ws_plugin__s2member_return_template_support");
str $support - The current value for the %%support%% Replacement Code, passed through by the Filter.
array $vars - An array of defined variables, passed through by the Filter.
str - The $support value, after possible modification.
public static array clickbank_parse_s2vars(str $cvendthru, str $type)
Parses s2Vars passed through by ClickBank®.
111205
str $cvendthru - Expects the URL-encoded query string of s2Vars, including _s2member_sig.
str $type - Optional. The type of ClickBank® transaction. This deals with backward compatibility. For SALE transactions, do NOT accept the older format. For others, remain backward compatible.
array - Array of s2Vars. Possibly an empty array.
public static array|bool clickbank_postvars()
Get $_POST or $_REQUEST vars from ClickBank®.
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()?
ClickBank® utilities.