e commerce - programming a very simple way to buy an item off a website? -


i dont want program shopping cart. want simple way people able click buy on site , able pay credit card , download software bought.

i know there third party merchants make super complicated process.

  1. what easiest way yourself?
  2. is there third-party service heavily simplifies buying process?

if want pay else, there bewildering array of ecommerce packages kinds of snazzy things, don't tell if support simple "pay , download" system want. spent ages looking , decided did far (shopping carts etc), opted roll own.

if you're happy write code, "simple" approach go provider paypal , implement basic ipn handler releases download when transaction complete. can of worms - there's huge learning curve , lot of poor (well, misleading) documentation/information on net, once figure out how works, it's rather simple.

for example, paypal...

the buy part easy: paypal's website generate button you, whack in form , bob's uncle. sets off transaction, passes user on paypal, takes money, , then... default sends email saying "please send t-shirt person now". useless immediae download! release download, need handle ipn (instant payment notification) react transaction being completed. read information on ipn , pdt. ipn comes website in different session , complete pig connect user's session (unless have logged in account have set in database, i'm sure you're trying avoid). pdt allows @ relevant information when user returns website (perfect) has down side if user forgets return website, nothing money (argh!). ideally need implement ipn (with database-supported session) or ipn+pdt sure user bought.

paypal has sandbox, can set website use , buy/sell as need test code without spending real money.

the main gotchas discovered: options on paypal have unexpected side effects... e.g. if ask customers automatically returned website, data paypal sends changes radically, , crafted code falls apart. also, there "custom" field in initial form allows send 200 characters of data paypal, , returned in ipn/pdt information - ideal keeping session alive across transaction.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -