MiniVend Akopia Services

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

Re: [mv] Using external online payment systems with minivend?



On 20 Sep, Jarno Niemela wrote:
> ******    message to minivend-users from Jarno Niemela <jargon@iki.fi>     ******
> 
> I'm implementing a web shop that uses online
> bank transactions and external payment
> systems (locals don't like using credit cards...)
> 
> The payment system works in a following way:
> 
> -When the customer has clicked the order button,
> he gets taken to a new page, where he's shown
> a from which takes to the banks online payment
> page
> 
> <FORM METHOD="POST"
> ACTION="https://verkkomaksu.leonia.fi/vema.nd/Verkkomaksu/pgTunnistus">
> etc...
> 
> -When the user has completed the transaction with the bank, the bank
> returns the user to a page
> specified by the shopowner (ie. accept transaction
> page)
> 
> -And the shop is supposed to email the order data
> to the shopkeeper only after the payment
> is accepted
> 
> Diagram:
> 
> ----
> checkout
> ----
>  |
>  |
> ----
> Form to the bank (still in minivend)
> ----
>  |
>  |
> ----
> Bank  (Outside minivend)
> ----
>  |
>  |
> ----
> Payment accepted 'page'
> ----
>  |
>  |
> ----
> receipt to customer and email order to shopkeeper
> ----
> 
> So what I need to do is to add one page between
> the /ord/checkout.html (the order page) and the
> system sending the email to the shopkeeper
> and printing the receipt. 

If i understand you right, there are two ways!

1. add mv_nextpage like

[set [L]Place Order![/L]]
mv_todo=submit
mv_nextpage=pagename-between-checkout-and-receipt
[/set]

or

2. add a line like

<INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="pagename-between-checkout-and-receipt">

near at this lines e.g.

<INPUT TYPE="hidden" NAME="mv_doit" VALUE="refresh">
<INPUT TYPE="hidden" NAME="mv_orderpage" VALUE="ord/checkout">
<INPUT TYPE="hidden" NAME="mv_order_report" VALUE="ord/report">
<INPUT TYPE="hidden" NAME="mv_failpage" VALUE="special/needfield">
<INPUT TYPE="hidden" NAME="mv_order_profile" VALUE="checkout_profile">

If you "pagename-between-checkout-and-receipt" page is in the directory
..../ord", you must write "ord/pagename-between-checkout-and-receipt".

Make sure, your bank is able to handle the mv session id [data session
id] or it works with cookie!

I hope, this can helps you!

Regards

Joachim


> 
> The add on should support the order form and 
> at least two result pages (ok and fail).
> 
> The question is: 
> -What would be the best place to modify the 
> minivend to accept external payments?
> 
> -Do you already have an interface for such
> operations?
> 
> -Which file should i modify? 
> 
> Jarno Niemela


-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen



Search for: Match: Format: Sort by: