[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Using external online payment systems with minivend?
Hi Jarno,
[SNIP]
> So how I can fetc the information that the bank returns to me, is it like
> in normal perl? Or does minivend have special tools for that
Without any informations about the names of the variables from your
bank? 8-)
Can you write an example, what you get?
Can you translate the part of the interface document?
It is possible to save the real form page from your bank (with your
browser) to see the variables and the values?
With post methode, you get variable names and values of this variables!
Without any knowledge about the structure or format of the cgi query
string (i don't know the right words), it is difficult to solve your
problem. A simple example
callback via browser agent:
http://www.yourdomain.com/cgi-bin/yourshop/ok-or-failure-page?uid=1234&time=12:15:00&date=09/21/1999&status=ok-or-what?mv-session-id
(all in one line).
In your ok-or-failure-page, you have some codes like e.g.
[perl arg="cgi scratch"]
$Safe{'scratch'}->{"uid"} = $Safe{'cgi'}->{"uid"};
$Safe{'scratch'}->{"time"} = $Safe{'cgi'}->{"time"};
$Safe{'scratch'}->{"date"} = $Safe{'cgi'}->{"date"};
$Safe{'scratch'}->{"status"} = $Safe{'cgi'}->{"status"};
"";
[/perl]
Simple test the value of "status" and redirect to the right page is e.g.
[if scratch status eq ok]
[tag op=header interpolate=1]
Status: 302 moved
Location: [area href="your-ok-page-or-checkout-page.html"]
[/tag]
[/if]
[if scratch status eq needmoremoney]
[tag op=header interpolate=1]
Status: 302 moved
Location: [area href="needmoremoneypage.html"]
[/tag]
[/if]
[if scratch status eq you-are-bankruptcy]
[tag op=header interpolate=1]
Status: 302 moved
Location: [area href="Ooooops.html"]
[/tag]
[/if]
> I think this is borderline (because there may be other people trying to
> implement same kind of thing), I've heard that the online bank accounts are
> becoming more popular also in other countries. By using the the customer
> has all benefits of using credit cards, but none of the risks (as the customer
> accepts every transaction before it happens).
> But you can respond as private email, if you think I've wandered too off
> topic for this mail group.
No! I think the same like you!
Remember! It is difficult to give a right solution by unknown bank
interface.
Good lucks!
Joachim
--
Hans-Joachim Leidinger
buch online jojo@buchonline.net
Munscheidstr. 14 FAX: +49 209 1971449
45886 Gelsenkirchen