Variables, Variables, Variables. Variables, Variables, Variables.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Variables, Variables, Variables.

Started by Nevans, June 02, 2008, 03:04:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nevans

Hi, I'm trying to create a payment system for chase payment tech so I can sell photos.

I was just wondering what variables i should use to pass information to the gateway.

for example:

$somephotofromcoppermine = $_REQUEST['thephotovariablehere'];

I've been skimming the docs, and i can't find it, nor can i seem to find it in the coppermine source code
I've have seen 'photo' but I am unsure if thats correct.

Thanks in advance, a List of usable variables would be appreciated.


just_some_guy

#1
There is a "Shopping Cart" plugin which you may also wish to review.

Which file are you leaving to go to the payment page from?

If you are initiating payment from displayimage.php there is a very handy array set up called $CURRENT_PIC_DATA[...]. Therefore, if you wanted to pass on the file name of the item that is about to be purchased you could use - $CURRENT_PIC_DATA['filename']. So have a look in displayimage.php to see what information there is to pass on, especially the array mentioned above.

I just had a look in theme.php and the current_pic_data array is accessible from there also, rather than editing a core file
Tambien, Hablo EspaƱol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Nevans

Hey Thanks, Much appreciated!!!

As for the shopping cart that is available, it's more complex then it has to be for what I need, and the changes i would have to make it do what I need it to do would involve a lot more time and thus more overhead.