Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Variables, Variables, Variables.  (Read 1719 times)

0 Members and 1 Guest are viewing this topic.

Nevans

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Variables, Variables, Variables.
« 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.

Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Variables, Variables, Variables.
« Reply #1 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
« Last Edit: June 02, 2008, 04:11:24 pm by just_some_guy »
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Variables, Variables, Variables.
« Reply #2 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.



Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.