Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $soap = new SoapClient("https://secure.przelewy24.pl/external/9999.wsdl"); $res= $soap->GetTransactionBySessionId('your_merchant_id','your_api_key','f3958fjsxndri');
- //$res->result contains data about transaction,or object with empty field in case of error
- if($res->error->errorCode){
- echo 'Something went wrong:'.$res->error->errorMessage;
- } else {
- echo'Transaction:';
- $transaction = $res->result;
- //data of transaction:$transaction->orderId,$transaction->amount,$transaction->date
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement