Gallery version = 2.1 core 1.1.0
PHP version = 5.0.4 cgi
Webserver = Apache
Database = mysql 4.1.18-standard-log, lock.system=flock
Toolkits = Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux serv01.siteground118.com 2.6.14.2-grsec-grsec-test #1 SMP Fri Nov 18 02:27:52 CST 2005 i686
Default theme = matrix
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)
When trying to pay for an item through sandbox, I keen receiving this error message.
Error:This invoice has already been paid. For more information, please contact the merchant.
I have removed all items in the cart, added new different items, however still receiving the same message.
Ideas??
Posts: 48
I posted this on Paypal... this is their response.
======
The problem is in your invoice value.
This value must be unique each time you test.
You can either change it manually or dynamically, but it must be unique in the system. You can create it dynamically, but make it sequential so you create a different number or combination of letters and numbers each time.
Or, you can leave out the invoice variable altogether. It is dependent on your application.
=======
Ok, what are they talking about?
Posts: 431
I will look into this. There are very few conditions indeed where the modules will re-use a transaction number (which is what we pass to PayPal as the invoice number), and I don't think I've ever seen the same number passed to PayPal twice.
To try completely clearing things out, did you log off and back on to your Gallery, or maybe even try the transaction as a different user?
Alternatively, have you used the sandbox for more than one install of Gallery? It's very unlikely, but possible that a previous installation has already used some of the same invoice numbers.
Posts: 48
I have tried two different accounts, I will add another and try it out.
I have tried on two different machines with different OSs, XP Pro and Ubuntu Linux.
And I have even tried on different images with different prices... still the same.
I just created a new sandbox account, verified.. blah blah... and tested again.. no go.
I am having some difficulties understanding the "sandbox".
When checking out, it states
Is this just for live? Or is "live" going to be like the sanbox and need a paypal account?
What am I not doing?
Posts: 48
Anyone?
Posts: 431
You don't need a paypal account either in the Sandbox or for live use. The user can just sign in and use an existing paypal accout if they have one, or do a one-off transaction otherwise (as long as you have disabled the "Paypal account required" setting in your paypal merchant account setup).
The module behaves in exactly the same way whether you're using the sandbox or live, it's just the URL it sends the transaction off to that is different (https://sandbox.paypal.com... instead of https://www.paypal.com...). Please can you run through a sandbox transaction once more, and post copies of the following:
Posts: 48
Ok, here we go.
I made sure in my regular paypal account did not require an account.
I did not find any settings in the developer account.
I did a screenshot of before clicking on the paypal icon and all the other you wanted.
I even did the source of the paypal screen.
Here I have cleaned the cache for the gallery, using Firefox, and completly logged out and then did the checkout.
Posts: 48
I noticed in the code the invoice number.
I wondered if it would give the same if I tried it again..
The source from above...
<input type="hidden" name="business" value="jeff@avveduti.com" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="invoice" value="271" />
The source from trying it again...
<input type="hidden" name="business" value="jeff@avveduti.com" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="invoice" value="271" />
For some reason the invoice number is not changing.
I wonder what I did wrong?
Posts: 48
updated information:
Gallery version = 2.1 core 1.1.0
PHP version = 5.0.4 cgi
Webserver = Apache
Database = mysql 4.1.18-standard-log, lock.system=flock
Toolkits = Exif, Getid3, ImageMagick, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux serv01.siteground118.com 2.6.14.2-grsec-grsec-test #1 SMP Fri Nov 18 02:27:52 CST 2005 i686
Default theme = PGtheme
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051010 Firefox/1.0.7 (Ubuntu package 1.0.7)
Posts: 431
Once you've logged into the sandbox at https://developer.paypal.com you need to click on "Sandbox" on the toolbar, and make sure you've created the merchant account for "jeff@avveduti.com". This is the account that the modules will try to pay through the sandbox.
If that account exists, then in the PayPal developer site select it and click on "Launch Sandbox". A new PayPal window will open at https://www.sandbox.paypal.com for you to log into that sandbox account. Once you've logged in you need to set up the account exactly as though it were your real PayPal merchant account.
What did you do between the two attempts? Did you go back and add or change any products? Empty the basket and start again? I went and tried this on your site, and even just by clicking "Modify Order" then "Continue to checkout" again without changing anything made the invoice number change from 278 to 281. Do you want me to try a couple of transactions in the sandbox and see if it will go all the way through?
Posts: 48
Ok, so I am doing something wrong. Please forgive me. I am just trying to get this thing up an going.
There are many things to do, but I think the site is about there.
If you don't mind please try it out. I will walk through the way you suggested. I see my steps appear to be a bit different.
In between each try, I would click back.. clean out the cart and try it again. But I think I have not been doing it correctly from the start. I will try it again. It if worked for you, then I must be doing something wrong.
Posts: 48
Ok, it is working now. I was using the mail developer account as the merchant and did not know it.
I changed it to the
and used the other
to purchase. Working like a charm.
I figured it was something I was doing.
Thank you for your help.
Posts: 431
No problem - glad it's all working now