Obtained my buy them now buttons create ok now (see some other thread) – did a test manage and everything’s fine.
I’m seeking a method – maybe by using a mysql table of marking the items as sold if the paypal has already been made (and not necessarily before). It could be easy to indicate them as sold once the buy it right now button is constrained, but if a person changes their brain and presses " back" around the first paypal pal it’ll get marked sold if they haven’t finalised the payment.
This might have something related to the " return" page on Paypal – if your payment has happen to be finalised and Paypal returns me compared to that page, maybe something has to happen there that will mark the picture as purchased from the database. Any person know anything with regards to this
Thanks.
Nay hassle, people, I worked out a strong method last night time.
Delete thread in order.
If you’ll be able to post how people fixed it these, other people may benefit
Ok I’ll try :
Any time someone presses that " buy the idea now" button it tends to make a timestamp around the sql database for your picture.
If your Paypal payment has been finalised and it sends to the " return" screen as an example paid. php, the code around the return screen accesses this sql database and also marks that image as " sold". It also marks the rest of the pictures apart because of this one and the approaches that are previously sold as " regarding sale" again.
It is found in the latest timestamp and marks you as sold – this makes sure that the a single being marked because " sold" will be very most recent one that someone hit " invest in it now" at. That would amount as that might need to be the just one they hit to undergo the whole cost process. Thus so that the one marked as " sold" will be correct one instead of for example one who someone pressed " invest in it now" on after which you can changed their brain.
There are a number of slight theoretical faults – if someone typed the go back screen directly for their browser address bar it could mark a snapshot as sold which wasn’t designed to be marked – this could happen if anyone had pressed " invest in it now" and changed its mind – then somebody else had typed the return screen with, thus marking by far the most recent timestamped you as sold. Not only a problem it can be fixed up inside unlikely event. Perhaps best to allow the return monitor a cryptic identify or something.
I can’t suppose two people would be able to buy the same item with this method unless they both clicked within a couple of seconds of each additional.
They may be to work — I’ve tested this out. But if you see gaping flaws in buying it, let me know, I was way up all last night looking to work it available.
Edit – this particular guy’s probably just gonna sell 1 or 2 items a month – it had been just an exciting learning exercise to do.
Hope that makes sense.