paypal with photo shop 1.3 plugin paypal with photo shop 1.3 plugin
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

paypal with photo shop 1.3 plugin

Started by pcp20us, October 29, 2006, 06:06:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pcp20us

Hi all

I am trying to configure the photo shop v1.3 plugin to accept paypal.

I have read post here. I have modified the int gateway inc.php as below.
// ################################################
//2. Add PayPal button
//please read the paypal documentation for country specific settings
//To enable the PayPal gateway set this to 1, 0 to turn the PayPal gateway of the Photo Shop plugin off
$CONFIG['photo_shop_paypal_enable'] = '1';

I assume now that when u click on confirm order in the checkout that this should direct you to paypal?

Have i down all steps to use paypal or is there something missing ??

Cool plugin simple and easy to use

Cheers


Pete



Stramm

no, when you click confirm the checkout the shop stores all the date in its db and user will see a confirmation page with payment info. If you enabled paypal support then he gets presented the paypal pay now button

why don't you just try?

pcp20us

Ha


Yep i have tried it, but i didn't see any paypal button ??

Stramm

can you post your URL and a testuser account

pcp20us

Ha Stramm

Web host has been down !!!

I read that there is an option to download files onces they are paid for ( I think that was an option i read for version 1.3.1.
Where do i configure this as i don't see an option under the cart. (or is this still being developed ?)

My site http://pcp20us.pc.funpic.org ( free hosting there is one pop up )
login test
password test



Thanks


Stramm

The file you should edit is path_to_photo_shop_plugin/include/gateway.inc.php
you edited it and saved it as gateway.inc, that's different filenames. The shop still uses the inc.php file for configuration where the paypal addon still is disabled

navigational images are missing, seems you haven't copied them into your themes images directory

pcp20us

I am a goose,

My mistake with the files renamed then the wrong way, anyway have changed it. And just found link to zipping files for download. Bloody funpic has gone down again, I ll have to test latter. Thanks for the comment about the delete button missing, i new there was something wrong there i did upload em but ftp must have bombed out and missed that file.

Thanks and it a good plugin

Cheers



pcp20us

Ha stramm

Got it working.

Have tried setting it to go to australia pages. put it keeps redirecting to this page

https://www.paypal.com/de/cgi-bin/webscr. The de stands for detch  i assume

This is the config in my gateway.inc.php file (see below)
I think its picking up the de setting from somewhere else. I ve seach google and pay pal to findthe right setting but had no luck. Do u konw what is going on !!

Cheers


//2. Add PayPal button
//please read the paypal documentation for country specific settings
//To enable the PayPal gateway set this to 1, 0 to turn the PayPal gateway of the Photo Shop plugin off
$CONFIG['photo_shop_paypal_enable'] = '1';

//That's the currency paypal should use. You can use eg. 'USD', 'EUR', 'GBP', 'CAD', 'JPY'
$CONFIG['photo_shop_paypal_currency'] = 'USD';

//Define the button, language
$CONFIG['photo_shop_paypal_image'] = 'http://www.paypal.com/en_AUD/i/btn/x-click-but01.gif';;
//The button eg. for Germany
//$CONFIG['photo_shop_paypal_image'] = 'http://www.paypal.com/en_AUD/i/btn/x-click-but01.gif'

//Your PayPal email address, where your customers should send the funds
$CONFIG['photo_shop_paypal_email'] = 'pcp20us@hotmail.com';

pcp20us

i just realised that this is just the link to the image, so where does it pick up the redirect page from ???

I am learning

Pete

Stramm

yes, de stands for 'deutsch' german
but by default the gateway.inc.php is set to use paypal US. Only if you delete the default and commented out the alternative to demonstrate lang specific setup, then the shop connects to the german paypal server

some reading
https://www.paypal.com/IntegrationCenter/ic_home.html
https://www.paypal.com/en_US/pdf/PayflowPro_Guide.pdf

more I can't tell you. It's up to you how you configure the paypal addition. How to do that you'll find on the paypal site

pcp20us

Hi Stramm

I have been playing trying to get this to work.

I am using you orginal files. So using the US pay button. With language set to US.

Though below is the code from photo_shop_checkout which i found the language to be set to de. I do not  understand PHP so i thought i dmention this as i understand that paypal setting should be pickking up by the languge setup which in this case is US so change the post method to US but it stayed set to de?? I may have missed something along the way in the settings but thought i d let u know

I have now have mine set to Australia. Others might get caught by this !!

Cheers



//pay with paypal
         if ($CONFIG['photo_shop_paypal_enable']) {
            $msg_box_txt .= <<<EOT
               <br><br>{$lang_photoshop['paypal']}<br>
               
               <form action="https://www.paypal.com/de/cgi-bin/webscr" method="post">
               <input type="hidden" name="cmd" value="_xclick">
               <input type="hidden" name="business" value="{$CONFIG['photo_shop_paypal_email']}">
               <input type="hidden" name="item_name" value="{$CONFIG['gallery_name']} {$lang_photoshop['order_id']} {$order_id}">
               <input type="hidden" name="currency_code" value="{$CONFIG['photo_shop_paypal_currency']}">
               <input type="hidden" name="amount" value="{$item_price}">
               <input type="hidden" name="shipping" value="{$shipping_price}">
               <input type="image" src="{$CONFIG['photo_shop_paypal_image']}" name="submit" alt="Pay with PayPal!">
               </form>

Stramm

thanks for the report... I'll change that and add a config entry for the form action url

Stramm

that should make it possible to define the paypal server your coppermine installation is connection to within the config (incl.ude/gateway.inc.php)

unpack overwriting the existing files


pcp20us

Very Nice mate Thanks. Now to play with paypal !!

U may want another thread for this question below ??

I have installed you photo_zip but cannot see it anywhere. (I assunme u will see it on the same page as the paypal button.
I have modified the english .php and shop_admin.php.

Though cannot get this to fly.
any suggestion !!

Thanks again
Pete

Stramm

The zip is a feature for the webmaster, not the client... to easily allow downloading of the pics and sending them to a print service etc.

julala

Is it possible to force the user to pay before the order is logged as confirmed?  I get alot of orders and whilst I used to send paypal invoices to each order, its getting a tad too busy to keep up with it.   :-\  It would be cool if the order is only confirmed once the user has paid.

Happy to move this to the request freelancers section and pay for coding if neccessary.

Thanks.

Stramm


julala

OK thanks Straam - have posted request in freelancer board.

Joachim Müller

julala's thread on the freelancer board: http://forum.coppermine-gallery.net/index.php?topic=38686.0

In the future, don't try to hijack threads with unrelated stuff, particularly threads that are marked as "solved". Locking.