forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Nevans on June 02, 2008, 03:04:52 pm

Title: Variables, Variables, Variables.
Post by: Nevans on June 02, 2008, 03:04:52 pm
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.

Title: Re: Variables, Variables, Variables.
Post by: just_some_guy on June 02, 2008, 03:28:14 pm
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
Title: Re: Variables, Variables, Variables.
Post by: Nevans on June 02, 2008, 03:56:25 pm
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.