Author Topic: Gateway callback page  (Read 2699 times)

Offline Keen

  • Sr. Member
  • ****
  • Posts: 55
    • View Profile
Gateway callback page
« on: 17/May/2008, 03:50:39 PM »
Hello,

I'm developing a payment gatewaty for nBill (dutch iDEAL gateway).
The payment process works correctly, but i have got some problems with displaying the callback page.

I created a folder named 'ideal' and a file ideal.php at the same level as admin.ideal.

When the payment succeeds, I only see the standard 'my account' page.

The return url I used is:  index.php?option=com_netinvoice&action=gateway&gateway=ideal

Anyone an idea how to solve/debug this problem.

-Keen

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Gateway callback page
« Reply #1 on: 17/May/2008, 06:13:15 PM »
That URL would call this file:

components/com_netinvoice/gateway/ideal/ideal.php

Does that file exist? If so, what is in the file?

Offline Keen

  • Sr. Member
  • ****
  • Posts: 55
    • View Profile
Re: Gateway callback page
« Reply #2 on: 18/May/2008, 04:59:05 PM »
Ok I have to place the callback file in the frontend folder instead of the backend folder. That solved my problem!!

Maybe you can help me with another question:

I post some variables from /admin.gateway/admin.ideal/ideal/ideal.php to a file named TransReq.php. That's works correctly, but if an error occurs, i see only a blank page with the error. I want to show the file within de site (even as ideal.php).

-Keen


Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Gateway callback page
« Reply #3 on: 18/May/2008, 07:30:03 PM »
Sorry, I didn't understand the question.

Offline Keen

  • Sr. Member
  • ****
  • Posts: 55
    • View Profile
Re: Gateway callback page
« Reply #4 on: 18/May/2008, 08:24:38 PM »
iDEAL transactions are seperated in 3 parts:

- directory request (available bankers)  : takes place in admin.gateway/admin.ideal/ideal/ideal.php
- transaction request                          : takes place in admin.gateway/admin.ideal/ideal/TransReq.php
- status request                                 : takes place in gateway/ideal/ideal.php

The questions is that i want to show the transaction request as part of payment gateway (now it is blank page).
Thus the TransReg.php has te be part of the payment gateway.

Hopefully you understand the question.

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Gateway callback page
« Reply #5 on: 19/May/2008, 11:31:47 AM »
Still not sure, but if you are saying that you want a process to take place within the context of Joomla and nBill, then you must use a URL that goes through the site's main index.php.

For example, you could use a URL like this: http://www.yourdomain.com/index.php?option=com_netinvoice&action=gateway&gateway=ideal&task=transaction

Then to farm out any processing to a separate TransReq.php file, you would have some code like this in your /components/com_netinvoice/gateway/ideal/ideal.php file:

Code: [Select]
switch (mosGetParam($_REQUEST, 'task'))
{
  case "transaction":
    include_once(dirname(__FILE__) . "/TransReq.php");
    break;
  case "something else":
    //Whatever
    break;
}

Offline Keen

  • Sr. Member
  • ****
  • Posts: 55
    • View Profile
Re: Gateway callback page
« Reply #6 on: 19/May/2008, 02:45:44 PM »
Yes this is wat I mean, thanks!

Offline Cluetrain

  • Jr. Member
  • **
  • Posts: 1
    • View Profile
Re: Gateway callback page
« Reply #7 on: 06/July/2008, 04:25:49 PM »
Keen and others,

I am very interested in a payment gateway extension for NBill that works with the Dutch Ideal system (which is overwhelmingly the largest E-commerce processor in NL). Please keep me posted.

And, is yours tied to a third party account (derdegeldrekening)?

Thanks!

Offline Keen

  • Sr. Member
  • ****
  • Posts: 55
    • View Profile
Re: Gateway callback page
« Reply #8 on: 10/July/2008, 11:08:58 PM »
Hi,

I made the iDEAL payment gateway available to download for a small price, see:

http://www.web4more.nl/ideal-voor-nbill

Regards,
Keen

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,952
    • View Profile
Re: Gateway callback page
« Reply #9 on: 11/July/2008, 07:03:12 AM »
@Keen - you should've told me! I have added a link to your gateway from the nBill site home page. :)

 

anything