Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

[mv] Re: Submitting order automagically



******    message to minivend-users from cfm@maine.com     ******



<mats@sbrain.syh.fi>:
Sorry, I couldn't find any host named sbrain.syh.fi. (#5.1.2)

Your return address is bad so I'm sending this to list.

--- Below this line is a copy of the message.

Return-Path: <cfm@maine.com>
Received: (qmail 24894 invoked by uid 507); 10 Apr 2000 15:17:04 -0000
From: cfm@maine.com
Date: Mon, 10 Apr 2000 11:17:04 -0400
To: Mats Andersson <mats@sbrain.syh.fi>
Subject: Re: Subitting order automagically
Message-ID: <20000410111703.A24631@maine.com>
References: <20000410090001.A23281@maine.com> <Pine.LNX.4.04.10004101008060.26775-100000@proxy.sbrain.syh.fi>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.1.5i
In-Reply-To: <Pine.LNX.4.04.10004101008060.26775-100000@proxy.sbrain.syh.fi>; from mats@sbrain.syh.fi on Mon, Apr 10, 2000 at 10:17:58AM -0400


OK.  Sounds like you are generating a page and sending the POST
to the bank.  Something comes back; the bank is redirecting 
to a variation on the usual final page that says "everything OK, 
press big red button to generate receipt".  Right?

You want to eliminate that page, and have it place the order?  Right?



--

Have the bank return to a page that then sends a redirect according
to whether or not the order is OK.


payment.html
  Customer selects pay by bank online option

(other pages for checkout sequence go here if you want)

final.html
  Customer confirms everything.
  if pay_by =~ /bank_online/ you have generatated a POST to 
  bank and (I'm guessing) you can set a return page.  Set it to
  redirect.html

redirect.html
  if OK, set mv_final=1 and anything else you want to put into
  session and redirect to receipt.html.  See [tag op-header].

  if NOT, redirect to failed.html
  The customer never sees redirect.html.

    
Did I write that intelligibly?  Does that sequence work with your order
sequence?

**When** you get it to work, write up a synopsis for the list!  ;^)

Best,

cfm



On Mon, Apr 10, 2000 at 10:17:58AM -0400, Mats Andersson wrote:
> [snip]
> 
> > 
> > 
> > ????  Those don't look quite like perl modules.
> > HTTP::Request
> > LWP
> > The both have additional subsidiary modules.
> > Get the ls-lR and look through that.
> > 
> > I was only guessing at how you've structured your application and
> > you didn't elaborate on that.  We'd put a sub like this in our
> > own perl pm file in lib/Vend otherwise code base gets hard to manage.
> > You might find putting it in catalog.cfg or minivend.cfg easier.
> > 
> > The code I gave you is not a subroutine, only the critical calls
> > that you would embed in whatever you use to build the request.  That
> > will be clearer once you get the perl modules.
> > 
> > Sorry to be vague, but I can't answer your question well without
> > knowing the catalog structure, the infrastructure on which it is
> > installed and the resources you bring to bear.  All I can do is point
> > you in direction that worked for us. ;^)
> 
> Ok, I'll try to explain a bit what I'm trying to do.
> On the checkout page I have a form that gets populated with various hidden
> fields that I calculate. Ie. order ref, sum to pay, MD5 hash check....
> 
> These are sent via a POST to the server at the bank. If everything goes
> OK, (the customer remember his code, has money on the bank.... etc), the
> bank will return him to a page I give like:
> http://www.myshop.com/~foo/simple/ord/was_ok?;uid=ksadj;SOLO-PMT=342374....
> The values after the uid I parse in a Perl script to create some scratch
> variables that I use to find out if the user really paid or only came to
> the page whitout going by the bank. This part I seem to have solved.
> 
> What I need is a Perl script that automagically submits the order if all
> the tests are passed and transfers the customer to receipt.html. Now
> he/she has to press a submit button to submit the order.
> 
> Hope my ramblings make some sense :)
> 
> Rgrds

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.

----- End forwarded message -----

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: