Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $soap = new SoapClient("https://secure.przelewy24.pl/external/9999.wsdl"); $res= $soap->GetTransactionBySessionId('your_merchant_id','your_api_key','f3958fjsxndri');
  2. //$res->result contains data about transaction,or object with empty field in case of error
  3. if($res->error->errorCode){
  4. echo 'Something went wrong:'.$res->error->errorMessage;
  5. } else {
  6. echo'Transaction:';
  7. $transaction = $res->result;
  8. //data of transaction:$transaction->orderId,$transaction->amount,$transaction->date
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement