Jump to content

How to correctly assign variables to confirmation url?


Todor

Recommended Posts

Hello,
I am currently creating a new payment module.
From validation.tpl I am redirecting to custom created demo.php
It is supposed to carry the ammount and the user data to a 3rd party credit card processing site.
The thing which I need is this:

Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id;_cart='.intval($cart->id).'&id;_module='.intval($Epay->id).'&id;_order='.intval($Epay->currentOrder))


This is from validation.php and sends the customer to the order condirmation page.
I need to get those variables in my demo.php
So far I have tried this:

$order_url =__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id;_cart='.intval($cart->id).'&id;_module='.$instance->id.'&id;_order='.intval($Epay->currentOrder);


and tried to initialize the variables but no luck.
also import of validation.php does not help?
Any ideas?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...