In the performPaymentInitialization function, you compare the result of strpos($s, ":") against -1 when it should be compared against FALSE because strpos returns FALSE when no match is found and in PHP -1 is not a FALSE value.
I would also suggest using urlecode() on the query variables when building the URL query string.
In the performTransaction function "id" and "parseResults" are both missing their preceding "$this->"
Towards the bottom of the sendMessage function there appears to be a missing "else" in between "} {".
In the parseResults function, the "s2" and "flag" variables are missing their preceding "$" in one spot each and StartsWith is missing its preceding "$this->".
In the
performPaymentInitializationfunction, you compare the result ofstrpos($s, ":")against -1 when it should be compared against FALSE because strpos returns FALSE when no match is found and in PHP -1 is not a FALSE value.I would also suggest using urlecode() on the query variables when building the URL query string.
In the performTransaction function "id" and "parseResults" are both missing their preceding "$this->"
Towards the bottom of the
sendMessagefunction there appears to be a missing "else" in between "} {".In the
parseResultsfunction, the "s2" and "flag" variables are missing their preceding "$" in one spot each andStartsWithis missing its preceding "$this->".