Warning: Undefined variable $transaction in /home/unicornu/public_html/PHP/Exemplu DoPay Links.php on line 85
object(stdClass)#2 (4) {
  ["account"]=>
  object(stdClass)#3 (6) {
    ["id"]=>
    string(24) "N81V-JPMU-21UX-RS3N-AAFA"
    ["user_name"]=>
    string(10) "test.cezar"
    ["customer_ip"]=>
    string(14) "216.73.217.151"
    ["confirm_url"]=>
    string(43) "https://unicornulroz.ro/PHP/cardConfirm.php"
    ["return3d_url"]=>
    string(30) "https://unicornulroz.ro/about/"
    ["hash"]=>
    string(40) "A54E1579E8E0BAAA08FC627472096FBA75C69997"
  }
  ["order"]=>
  object(stdClass)#5 (5) {
    ["id"]=>
    string(32) "c6be0d0e167c0e8333d81e6a972fd67d"
    ["description"]=>
    string(27) "test adaugare link payment3"
    ["amount"]=>
    float(0.1000000000000000055511151231257827021181583404541015625)
    ["currency"]=>
    string(3) "RON"
    ["billing"]=>
    object(stdClass)#4 (8) {
      ["country"]=>
      string(7) "Romania"
      ["county"]=>
      string(9) "Bucuresti"
      ["city"]=>
      string(5) "Bacau"
      ["address"]=>
      string(10) "asa strada"
      ["postal_code"]=>
      string(6) "003507"
      ["first_name"]=>
      string(9) "test link"
      ["phone"]=>
      string(10) "0720777777"
      ["email"]=>
      string(16) "cezar@netopia.ro"
    }
  }
  ["params"]=>
  object(stdClass)#6 (1) {
    ["item"]=>
    object(stdClass)#7 (2) {
      ["name"]=>
      string(4) "test"
      ["value"]=>
      string(7) "testare"
    }
  }
  ["transaction"]=>
  NULL
}
Response: 
object(stdClass)#8 (1) { ["doPayResult"]=> object(stdClass)#9 (5) { ["order"]=> object(stdClass)#10 (12) { ["id"]=> string(32) "c6be0d0e167c0e8333d81e6a972fd67d" ["description"]=> string(27) "test adaugare link payment3" ["amount"]=> float(0.1000000000000000055511151231257827021181583404541015625) ["currency"]=> string(3) "RON" ["billing"]=> object(stdClass)#11 (9) { ["country"]=> string(7) "Romania" ["county"]=> string(9) "Bucuresti" ["city"]=> string(5) "Bacau" ["address"]=> string(10) "asa strada" ["postal_code"]=> string(6) "003507" ["first_name"]=> string(9) "test link" ["last_name"]=> NULL ["phone"]=> string(10) "0720777777" ["email"]=> string(16) "cezar@netopia.ro" } ["shipping"]=> NULL ["installments"]=> NULL ["installments_sel"]=> NULL ["bonuspoints"]=> NULL ["products"]=> object(stdClass)#12 (1) { ["item"]=> object(stdClass)#13 (9) { ["id"]=> NULL ["name"]=> NULL ["description"]=> NULL ["info"]=> NULL ["group"]=> NULL ["amount"]=> NULL ["currency"]=> NULL ["quantity"]=> NULL ["vat"]=> NULL } } ["recurrence"]=> NULL ["int_id"]=> NULL } ["errors"]=> object(stdClass)#14 (4) { ["action"]=> string(3) "new" ["code"]=> string(1) "0" ["message"]=> string(10) "gwApproved" ["details"]=> NULL } ["hash"]=> string(40) "A54E1579E8E0BAAA08FC627472096FBA75C69997" ["transaction"]=> object(stdClass)#15 (5) { ["id"]=> NULL ["amount"]=> float(0.1000000000000000055511151231257827021181583404541015625) ["currency"]=> string(3) "RON" ["paymentUrl"]=> string(33) "https://l.mpy.ro/lq4283e5ad92d4fb" ["current_payment_count"]=> NULL } ["params"]=> NULL } }