markette/gopay-inline a javascript

ikoon
Člen | 69
+
0
-

Zdravim

Snazim sa rozbehnut markete gopay inline. Zatial mi to chodi, ale neviem co s tymto:

$url = $response['gw_url'];

// Redirect to URL
// ...

// Send over AJAX to inline variant
// ...

Z dokumentacie gopay som nasiel, ze tam mam dat formular a ked klikne zaplatit, tak ma to presmeruje na gopay. Uz tu je problem, ze ma to presmeruje, malo by to zobrazit inline okno cez moju stranku.

V lattecku mam:

<form action="{$url}" method="post" id="gopay-payment-button" class="ajax">
  <input type="hidden" name="signature" value="{signature}"/>
  <button name="pay" type="submit">Zaplatit</button>
  <script type="text/javascript" src="https://gw.sandbox.gopay.com/gp-gw/js/embed.js"></script>
</form>

Este, ta markette/gopay inline obsauje nejake js, ale netusim co s nimi.

Vdaka za nakopnutie…