payment return url
Hi,
at this moment, i try do integrate a payment gateway for my site. And i need some help.
i will send some data to an external javascript, i do it like this:
Code:
<div="data_form">
<?php
$refno = $order->get_id();
$amount_total = $order->get_total() * 100;
$succes_url = ???
?>
<script src="EXTERNAL SCRIPT HERE"></script>
<form id="paymentForm"
data-refno="<?php echo "Bestellnummer: " .$refno; ?>"
data-amount="<?php echo $amount_total; ?>"
data-success-url="<?php echo $success_url; ?>"
</form>
</div>
As template i use the test-gateway / developer-gateway. All works well, but how i can get the "$success_url" (url where users are redirected after payment)?
I try to look at some other payment-plugins i buy and also the integrated paypal gateway, but i dont understand (till now) the way it works with de rederict.
I do programming as a hobby, so my knowledge is limitet, please help me
.