checkout 0.0.17/18
jayhen
Joined: 2007-02-12
Posts: 159 |
Posted: Fri, 2007-06-29 02:21 | |||
Hello, Some external factors beyond my control have delayed the release of this version of the checkout modules, which has been several months in the making. This release is a Release Candidate, for you to try out before the official release, but I have it running on several production sites and have not seen any problems with stability. It is tested on G2.2.2. Please do test and report, I'm particularly interested to know what versions of the checkout modules you are upgrading from, on what version of gallery, and of course whether the upgrade was successful. This version is a major feature release and also includes some fixes. Notable features include: - Zip downloads of images purchased If you have been using the 0.0.15 Release Candidate and associated checkoutemail and checkoutpaypal modules, please download and install all new versions of these modules. At the risk of laboring the point, I would appreciate any donations for the huge amount of time I've put into these modules, little of which has been funded, and for which I've had 2 donations to date. You can donate with paypal using the address ppu <at> elucido <dot> net. Thanks. Work left to complete: UPDATE : The checkout modules now have an offical home, and can be downloaded using the Plugins > Get More Plugins site admin section of your Gallery 2 installation. Be sure to select 'Community plugins' in the repository list. Jay (Elucidos)
|
||||
Posts: 159
If there is anyone out there able to translate, I need to get the French translation up-to-date. I could do it myself, but prefer to concentrate on the code. RoZo are you out there?
Posts: 159
It would also be good to get the documentation of these modules up-to-date, there are now a large number of new features. Could someone/several people volunteer?
Posts: 54
Hi.
First, I'd like to thank you for updating this module and for all the work you have put in.
I have a problem which I hope you or someone can help me with.
My test payments get cancelled. PayPal says the invoice has already been paid for and when returning to the shop the order is treated as cancelled.
I have tried relogging and creating new carts, but this happens every time. Seems to me that there is an order ID or something that persists.
I may be doing something wrong, I just now registered a test merchant account on PayPal and I am new to Gallery.
I am using version 0.1.17rc of checkout as well as the corresponding support files.
Thanks for any help you may provide.
Cheers,
Andreas
Posts: 159
Andreas - I've seen this problem once before, but it disappeared just as strangely as it appeared, which made me think that it was a problem with the PayPal sandbox, which I find to be not very reliable. Could you navigate through the checkout process to the page with the PayPal payment button, and view the source of the web page (normally View > Page Source, or something similar) and search for the line:
where 'xxx' is the order number.
Then click again on the View Cart link, and repeat the process above, navigating to the same page, again noting the order number. The two order numbers should not be the same, if they are, there is a problem.
Jay
Posts: 54
Thanks for the swift reply, Jay.
I checked the order number and they are not the same. It increments by 2 each time I view the cart.
Seems it might be an issue with the Sandbox then. I'll try to see if I can find a debug mode or something.
Cheers,
Andreas
Posts: 54
OK, I deleted the test accounts at PayPal and created new ones.
Checkout works beautifully now ;)
One thing...
Is there a way to provide the download link directly after returing to the store without waiting for the confirmation email?
Why is there need for confirmation anyway? Doesn't PayPal confirm payment before returning to the store?
Cheers,
Andreas
Posts: 159
Andreas - it occurred to me afterwards, probably PayPal is complaining about duplicate order numbers because you are using a new installation of Gallery and so the counter has been reset. Did you install checkout on a new installation of Gallery, or update from a previous installation?
For the download link, yes you just need to tick the admin check box 'Display download link after purchase' or 'Display download button after purchase', whichever you prefer. The email confirmation is optional, it's to provide the user with a download link that he/she can refer to after the purchase.
Posts: 1
Hi Jay,
This has been working well for me (certainly much more reliably than the old version I was using). Apologies if there is a simple answer to this question that I should have figured out.
For all order status notifications after something has been purchased, the email send has "PayPal payment is Pending. PayPal transaction must be accepted for funds to clear."
Is there supposed to be an update email when the transaction has been "accepted"? Is it because I am using the developers sandbox? I am not too concerned about this, because I am not using the file download feature. However is there a way to make the system realize that the payment has gone through?
Thank you.
Posts: 159
DyCyn - thanks for your question, it will be useful to everyone. The PayPal payment 'pending' state is a PayPal security measure to handle payments that PayPal considers should be verified manually. A payment in the 'pending' state is not complete, and the funds are not transfered until you accept the payment using the PayPal account management tool. This version of checkout is more secure and correctly withholds completion of the order until the payment has been cleared. You should connect to sandbox, click on 'Test Accounts' followed by 'Enter sandbox test site', login using the sandbox account and accept the payment. Payments for that address will now be accepted automatically by PayPal.
Posts: 54
I had version 0.1.15 installed earlier which I hadn't used. I uploaded your new version and upgraded in the admin.
Order numbers is in the 60'ish. The number gets incremented by 2 on every new order.
The Gallery is not the very latest version but a few months old, in fact I can't find the version number anywhere in the admin ;)
I should probably upgrade my Gallery before taking up any more of your time.
As for the download link/button I already had those checkboxes checked. Including the optional email download link.
Only got the email and no button/link, though. I will keep testing after the upgrade.
Cheers,
Andreas
Posts: 159
Andreas - your comments are useful in order to know whether there is a problem that needs to be investigated. I'm guessing though that you had used the Sandbox previously on another installation, and therefore the order numbers are being duplicated. As an improvement I will however need to look into a way of guaranteeing unique order numbers.
For the download link/button, I'm also guessing that you have the same problem as DyCyn above, i.e. your PayPal payments are staying in the 'pending' state, therefore checkout will not authorise the download. In which case please follow the same steps as outlined for DyCyn above.
Posts: 54
Hello again.
I upgraded my G2 from 2.2.1 to to 2.2.2 and the buttons now appear. Can't really tell if the upgrade itself took care of it or just clearing the cache did the trick.
Everything seems to be working fine now.
It is in fact my very first use of Sandbox, but the invoice issue disappeared after recreating the initial test accounts on PayPal.
I am wondering though why the order numbers gets incremented twice or each order. Makes no real difference.
Minor issues:
I am getting a security warning going from the secure PayPal site back to the Gallery, but I suppose that can't be avoided without making the checkout secure, which I imagine is a lot of work.
The confirmation email going to the siteadmin could be more informative. As is it only notifies of an order status change, ie. a successful purchase, not what was purchased or who the customer was.
The best would of course be an order admin module with order status and history
As a sidenote, I haven't really done much work in G2, been kinda sitting on the fence while the for me crucial checkout process was developed. My client is a professional photographer who wants a download webshop for his portfolio.
Now that checkout works, I will be delving deeper into the system. I still need to understand how to provide different qualities/prices on photos and let the customer view/buy the quality he wants, how to create users that are customers and many other things.
I want to thank you for your help and for your efforts getting this module working. Donation is en route.
Cheers,
Andreas
Posts: 159
Andreas - yes, there are always plenty of things that could be improved. But it all takes time.
For the security warning, it's a slightly complicated issue, not impossible to solve, but would require you having the possibility to buy and install an SSL certificate on your web server as well as access to the appropriate encryption libraries. I'm not sure either whether Gallery supports the use of SSL.
For your qualities question, you could use different 'products' with different prices.
Posts: 54
Yes, I know it is not easy to find the time for open source contributions, a man has to make a living as well and you have done an excellent job getting this module up and running.
I might be able to make a simple order admin module myself as soon as I get a better idea of the structure of G2. Most of the needed info is in the database already.
For my quality selection I was thinking it might be possible to use a derivative of the paper selection in checkout, with appropriate quality additions appended on the filenames (_1024_, _raw_, etc.). This assuming the all pictures cost the same per quality. That might not be the case, I will have to investigate further.
Cheers,
Andreas
Posts: 1
I have just upgraded from the most recent versions of checkout and paypal to the new RCs, however when I click the checkout button I get a blank white page and the following URL string: g2_view=checkout.ConfirmPhotos&g2_statusId=x8ac64777&g2_navId=x2ba653bd
I will admit that I could not get the previous paypal module installed due to the STORAGE ERROR so I decided to upgrade to see if that helped. It did allow me to install and setup (which I hadn't been able to do before) but now I get this. Any help would be great.
Thanks,
ty
Posts: 86
Hi! I just installed the newest Gallery program as well your module... The installation went fine... but there are a few quirks which I don't know whether if it was meant to be or that it is really a bug. But first I should explain how I set up the 2 modules... I installed both the checkout module as well as the checkout by email module... I configured both of them.... I'm not using any payment module for this test.
1) The download zip button appear right after I click on checkout. The download zip button appears in the same page as that wheere it shows the users the files he ahs selected and the quantity with the total cost. There is also a button just above called continue check out. If I click on that, I'm sent to a form to fill in my name and so on. If I submit that form, it says "the order is submitted and will be processed as soon as possible with no link/button that wil aloow the user to download the zip file. However, if I do not choose to click on the continue checkout button but instead click on the download zip button, I can download the selected items with no issue... Correct me if I'm wrong but should that button appear AFTER the continue checkout button is clicked?
2) I have also tried to changed the quantities of the items I selected (like 2 of an item and 4 of another item), I then click on the download zip and still when I open the zip file, there's only 1 of each item not as the specified 2 of item A abd 4 of item B.
3) I'm planning a "virtual" payment system to be tagged along to the checkout module... At which stage should the "virtual payment" be activated so that the proper amount will be deducted from the user's account and then only with sucessfully deduction will the user be presented with the download link/button?
Thanks...
Posts: 51
Hi Jay, great to find your new checkout version
I used to successfully run Gallery 2.2.1 with your checkout 0.0.15RC and checkoutpaypal 0.0.10RC.
I have since upgraded to Gallery 2.2.2 and your new checkout 0.1.17RC and checkoutpaypal 0.1.11RC.
Everything seems to work, except when I use the Album Select block to jump to an album
the session ID resets to g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT
or
the following error appears "Authentication Failure Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in".
In both instances the cart contents are lost.
I have done System Maintenance (optimize database, delete template cache, delete database cache, delete user sessions) but the problem persists.
My gallery's at http://skylark.co.nz/gallery2/v/sl/
Can you or anyone help?
Update: This problem has been fixed: http://gallery.menalto.com/node/66544#comment-241944
Posts: 159
tmanuel - try using the updated version in the Community Repository, using the Get More Plugins admin page.
vampy - 1) what you're describing is a feature I'd hidden since it's not complete. I don't know why you're seeing that Download as Zip button, it should be hidden, but I intend on reintroducing the relevant option in the administration page to turn it on/off, so hang on for bit while I complete that and you can turn it off. The checkoutemail module doesn't currently allow for downloads of the files ordered, although that would be a cool feature to add if someone wants to make the relevant modifications. 2) The bugs you mention are the reason I'd hidden the feature. 3) You'll need to expand on what you mean to achieve.
helaku - sounds like a general Gallery problem rather than a checkout-specific one. I had a similar problem when I upgraded to G2.2.1 for a client site and ended up hacking the code to get rid of the g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT, but I'm sure there's a rational explanation to be gained from valiant or others as to why it's there, I never got around to asking as I was in a hurry.
Posts: 18
I just upgraded Gallery and the Cart/Paypal to the most current install. Since the upgrade, I have had nothing but issues. When trying to configure both the cart and PayPal, I get this error:
Error (ERROR_BAD_PARAMETER) : Class AdminPluginsController not defined in core.AdminPlugins
in modules/core/classes/GalleryController.class at line 165 (gallerycoreapi::error)
in main.php at line 189 (gallerycontroller::loadcontroller)
in main.php at line 94
in main.php at line 83
Any thoughts?
TIA,
Steve
Posts: 86
Hi! Thanks for your prompt reply... Whew... I thought I was hallucinating with the "hidden" feature...As for what i'm trying to do is this:
1) Users get "virtual money" (how they get it I have solved it) from the system.
2) They can then use the "virtual" money to buy items from the gallery.
3) So say a user decides to buy 3 of Item A, 4 of Item B, he now clicks on the appropriate item and then update the quantity in the cart.
4) he then goes to checkout which will show him a list of the items he selected with the quantities he requested. He sees the subtotal and total amount he has to pay.
5) Once he clicks on say a "confirm purchase", the system then deducts the amount from his "virtual" money account.
6) The system then refreshes the page such that the download as zip button appears. He clicks on the button and downloads the items he purchased as a zip file.
7) A log of whether the download was successful should be logged by the system in the event of any disputes...
I guess what I'm asking is which files should I edit in your module to allow me to achieve that? Thanks in advance for your advice.
Posts: 159
sbstaskiewicz1 - do you get the errors with other module admin pages? Are you talking about checkout or cart? Have you upgraded using Get More Plugins?
vampy - there is no fast/easy answer to your question. You would need to create a new payment plugin for checkout. 7) Is impossible, but the number of download attempts are logged already in the database.
Posts: 18
Jayhen - I do not get this error with any of the other plugins' admin pages. Sorry for the confusion - I meant Checkout and Checkout with Paypal. I have upgraded through the Get More Plugins and also tried to deactivate, uninstall, delete and re-upload the plugins - all with the same results.
Posts: 159
sbstaskiewicz1 - you upgraded from what version of checkout? You say you've had nothing but issues, are you referring to checkout or other aspects of Gallery? Can you try deleting the modules with the plugin admin and also delete them from the disk before reinstalling? If that doesn't work, can you turn on debug mode in your config.inc file at the root of your Gallery installation, try the modules again, and post the debug output here, preferably as a file so we don't have to scroll through it.
Posts: 18
jayhen -
Checkout was version 0.1.14 and Checkout with PayPal was version 0.1.09. Ever since I upgraded the plugins, I have not ben able to use the cart function on my site. I have deleted the modules with the plugin admin and deleted them from the disk, and then tried to download them through the plugin admin, as well as from this site, completely deleting the plugins before trying the other install method.
Attached is the log file.
Thanks,
Steve
Posts: 9
Hi, I have just set up the module on my site but the only problem I (seem) to be having is the invoice paid issue. This is the first time using both this and sandbox so I am a bit miffed. I even set up a new sandbox account and it still does it. Other than that it seems to work perfectly (although I can't check this out fully).
EDIT: I changed the paypal email address (in the paypal addon) to the business account in sandbox and it all works now! Doh!
Posts: 1
Hello,
Please post a direct link for downloading the last version of the checkout module.
Unfortunately I can't update it via "Get More Plugins" in admin.
Perhaps it's because of the slow dial-up connection I use now.
Many thanks.
Posts: 6
Hello,
Thanks for all the work with the new checkout. I am running Gallery 2.2.1 core 1.2.0.1 embedded in Joomla. I was using Checkout v 0.1.14 and the 0.1.9 Checkout_Paypal module. All was stable. I upgraded today to Checkout v 0.1.17 (from the Community Repository) and Checkout_Paypal v0.1.11. By looking at the config screens I really like the new option set. This will be useful for me. Unfortunately when I put an item in the shopping cart and select "continue checkout", instead of going to step 2, it gives me a blank screen. This happens whether or not I access Gallery through the embedded frontend or through the standard non-embedded way.
I tried to then delete the new checkouts from the admin page and manually ensured they were deleted (via terminal shell window). I then tried to reinstall the 0.1.14/0.1.9 combo from my zip archives. When I try to configure the old checkout, it comes up with the newer checkout configuration from 0.1.17?;\ I tried to configure only the relevant fields, but when executed, I end up with a "security violation".
I'm kind of dead in the water on this, as my shop is now offline. I'm going to continue to work on it, but if anyone has any suggestions how to a)get the new one to work. or b) successfully roll back to what I had, it would make my life easier.
Thanks
-Tony
UPDATE:
I reinstalled 0.1.17 again. This time *without* the 0.1.11 Checkout_Paypal and I didn't have the issue going to step 2 of the checkout process. I then went back and installed the 1.11 Checkout Paypal module and sure enough I'm back to the blank screen instead of Step 2.
Posts: 159
tony_g - looks like there might be a problem with the upgrade from 0.0.14 given that others also seem to be having problems. Have you tried deleting the cached templates in Site Admin > Maintenance?
Posts: 6
jayhen, I followed your suggestions, ran Admin->Maintenance>Delete Database Cache and Delete Template Cache. Same result though. Also if I go to plugins and "deactivate" checkout by paypal. Checkout itself resumes taking me to step 2.
Any other thoughts.. I'm stuck
Looks like I have the same problem as tmanual's posting. my URL says: main.php?g2_view=checkout.ConfirmPhotos&g2_statusId=x91d93f6f&g2_navId=x80d63735
If you give me some guidance, I could probably give you debug info.
Thanks.
Posts: 159
tony_g - I sent my comment before I saw your update, which is an interesting extra bit of info. Have you tried installing the old checkoutpaypal 0.1.9 with the new version of checkout (0.0.17)? I haven't tried, but in theory it should work and would be interesting info. The problem may come from the fact that although checkoutpaypal 0.1.9 worked for all intents and purposes, it actually was missing some important files. I'll look into it as soon as I can, any extra info is useful, especially if you are able to set the value
$gallery->setDebug(true);
in your config.inc file, and then navigate to the second page of the checkout process to see the debug output. If you could post the results here as a file....
Thanks
Posts: 159
sbstaskiewicz1 - could you do the same as tony_g?, i.e. I need to see the stack trace that is displayed on your site when you get an error, using
$gallery->setDebug(true);
in your config.inc file. You'll get an 'Error Detail' section on the page where you get the error, which you can expand by click on the + sign. You can then copy and paste it here, or put it in a file if it's big.
Posts: 6
wow...!!!I feel so much better... Thanks 0.1.9 *does* work. Now that I know I can get it back online later, I'm going to reinstall 0.1.11 and get the debug info you need.
Ok, I dunno if I did this right. I made the above flag change in config.php (I don't have a config.inc). Instead of the blank screen I got the attached dump on the top of the dump was a link to continue which I pressed and got this error:
Fatal error: Call to undefined function: iconv() in /home/.port/homedir/domainname.com/gallery/modules/checkoutpaypal/classes/CheckoutPaypalPlugin.class on line 117
Update: Ugh I spoke too soon. 0.1.9 is not working correctly. When I hit the Paypal button I go to a paypal.com screen that says Error Detected you shopping cart is empty.
Posts: 159
tony_g - thanks, you found the problem, there's a snippet of code shouldn't have been left in there! If you download checkoutpaypal from the Get More Plugins page in around 8 hours, you should have a version that works.
Posts: 159
tony_g - OK, while you wait for the Community Repository to be updated, here's a quick fix to unzip in your modules folder of your Gallery2 installation. This is a fix for checkoutpaypal v0.1.11. Let me know if it works.
Posts: 6
jayhen, I've reinstalled 0.1.11 and unzipped your patch in the gallery/modules/ directory. I've done preliminary testing and it looks like it works great. Thanks very much.
-Tony
Posts: 18
jayhen-
Attached you will find the complete error detail and debug output.
Posts: 159
sbstaskiewicz1 - The problems experienced by other people seem to be resolved with the latest update. I'm not sure it'll make any difference, but have you tried installing the latest version that contains these fixes (as of about 20 hours ago)?
Posts: 18
jayhen-
I've downloaded the files from the most recent upload and uploaded them. Nothing changes. Am I reading things wrong, or does it look like my core module is the one throwing issues? Or is this expected behavior when there is a plugin issue?
Thanks,
Steve
Posts: 159
Steve, It looks like you are the only person with this problem, with suggests a fault with the upgrade of your Gallery installation. At the same time, if you only have problems with the checkout modules, that's also a little suspect. I'm not sure what I can suggest...
Posts: 54
Hello again.
I wonder if it is possible to disallow a guest to complete a purchase and still allow add to cart (Removing the [checkout] Purchase permission also removes the Add to card link).
As it is now, guests seems to be able to complete a purchase with Paypal, but no download link is provided afterwards and as no email is registered, I guess no email is sent either. So the guest can't download his purchase.
I think the best approach would be to require guests to log in after pressing Continue to Checkout, if the session can be preserved.
Also, I get this error on the order confirmation when the amount is over 1000:
"WARNING: PayPal amount (1200.00) does not match our records (1,200.00)."
Cheers,
Andreas
Posts: 1
What can I do to have "View basket" link on the left? Now, after I add photos to the cart and come back to browsing I Cannot see basket.
Posts: 159
Andreas - If you are using the most recent version of checkoutpaypal, you should be getting a download link/button, depending on what you've configured in the checkout admin. This does however depend on the PayPal transaction being in the 'Completed' state and not the 'Pending' state, as mentioned in previous comments in this thread. The email address that is registered with PayPal is the one that is used to send the email to the user, so you don't need to be registered to make a purchase. Requiring registration for purchase would be a nice option, to be added to the list.
Thanks for the bug report, I will get that comma problem fixed.
marcinnowak - the view basket block can be added in the theme configuration.
Posts: 18
jayhen -
I've done some testing and run across the same problem. I downloaded the "Typical" Gallery 2.2.2 install and have it up and running locally. I then installed both the Checkout and Paypal module through the Plugins interface. I still get the same error.
Upon further testing, I came to realize there is a compatibility issue between Safari 3.0 Beta and Gallery (not necessarily your plugins alone.) I am an early adopter of new technologies and didn't think about a conflict arising there. I went through the configuration and install in Firefox 2.0 Mac and got everything installed and configured without issue.
I am now having an issue with a blank white screen on Step 2 of the Paypal checkout. On my FF install, I have the HTML Validator add-on installed and it tells me that the "HTML Cache is emtpy." When I view the source code of the Step 2 page, there is nothing displayed. Any thoughts?
Thanks,
Steve
Posts: 159
Steve - the best approach in this situation is to turn debug on in config.php and send me the Error Detail as before.
Posts: 18
jayhen-
Attached is the log file as well as the contents of the Smarty Debug window (which I have never seen pop up before.)
Thanks,
Steve
Posts: 18
jayhen-
Attached is the log file as well as the contents of the Smarty Debug window (which I have never seen pop up before.) I get this message in the used-to-be-blank window:
Warning: requireonce(/home/content/s/b/s/sbstash/html/photography/modules/core/classes/../../../modules/cart/classes/CartHelper.class): failed to open stream: No such file or directory in /home/content/s/b/s/sbstash/html/photography/modules/core/classes/GalleryCoreApi.class on line 2717
Fatal error: requireonce(): Failed opening required '/home/content/s/b/s/sbstash/html/photography/modules/core/classes/../../../modules/cart/classes/CartHelper.class' (include_path='.:/usr/local/lib/php') in /home/content/s/b/s/sbstash/html/photography/modules/core/classes/GalleryCoreApi.class on line 2717
Thanks,
Steve
Posts: 159
Steve - sorry you're seeing this, it's a bug I'm aware of. I'm fixing it now so that it's done. In the meantime, could you install the cart module, but make sure it is deactivated. It needs to be installed however, at least until I produce the fix. Thanks.
Posts: 18
jayhen-
It looks as if that solved the problem. I'll keep you posted if anything else comes up. Thanks for working on this with me and getting these modules updated.
Thanks,
Steve
Posts: 159
Fix for dependency on cart modules applied. Update available from Community Repository (Get More Plugins) within 6 hours.
Posts: 13
It seems like everything works like a charm but where can i find the orders admin ?
There's no link anywhere in the matrix theme with an admin part.
How do i get there, i want to update orders and so on
Greetings Rob Huurman