Ogone PSP integration

Contrib type: 
Module
Status: 
Uploaded for testing
Moderation: 
Not ready for moderation
Latest version: 
1.0
Compatibility: 
Ubercart 1.x

Hi all,

I've been working on a Ogone payment gateway integration, it's up and running, and ready to be reviewed. It's been tested successfully in the Ogone sandbox. The code has some rough edges, it's partially based on some copy/paste code from the uc_credit module. There might be some pollution because of that. I'm looking forward to some critical feedback and test results.

The module is moved to Drupal.org:
http://drupal.org/project/uc_ogone

Please use the issue tracker available through the project page on Drupal.org for bug reports and troubleshooting. Comments are no longer available on this page.
INFORMATION HERE CAN BE OUTDATED!

Need a test account?
Get it here:
http://www.ogone.com/ncol/web_new_testaccount8.asp
(Choose e-commerce)
Ogone will review your data and send you an email with confirmation and a password.
You can login here: https://secure.ogone.com/ncol/test/frame_ogone.asp

New to Ogone? Check Ogone_e-Com-BAS_v1-1_EN.pdf, available to you after making a test account.

IMPORTANT: In Ogone admin area,
-Enable 'Get' under 1.1
-Fill in 'http://www.yourdomain.com/cart/checkout' under 2.2
-fill in 'http://www.yourdomain.com/cart/checkout/ogone_return_ok' by 4.1 (OK URL)
-Enable "Display a ticket to the client if ..." under 5.2
-Please DO use SHA-1 signatures, or else your merchant-feedback might be messed with

You could change the 'submit order' button text to something more meaningful like 'Go to Payment Screen'.

It's tricky to test from localhost. You have to open up port 80 to that machine, and configure the right URL to it under 4.1.

Thanks to the helpful Ubercart team and forum users for tips and answers.

Regards,

Kees

Qrios Webdiensten, Drupal development

Changelog:

1.0: Added payment method check


Joined: 08/13/2007
Juice: 485

Here is the file again, zip file corruption?? hmmm.

AttachmentSize
uc_ogone.tar 24 KB
 
Joined: 08/07/2007
Juice: 15046

Works great! I'll update the original post. Smiling

 
Joined: 08/13/2007
Juice: 485

"Works great", you actualy had time to test this module? Even recovering from your D/Hell of a server crash Eye-wink
Do you have comments on it?

 
Joined: 08/07/2007
Juice: 15046

hehe Sorry, "works great" was just for the download itself working. I haven't been able to test it out yet... rebuilding the issue tracker now. Sticking out tongue

 
Joined: 09/10/2007
Juice: 2

Hi,

Thanks for sharing your work in a module!

I'm doing some tests with your Ogone module and Ubercart Alpha 7c and so far it all seems to work fine.

Do you any plans to implement the deferred status update feature of Ogone btw?

Regards,
Dale

 
Joined: 08/13/2007
Juice: 485

Hi Dale,

Thanks for testing.

I will some day probably, not in the near future. If you have 'lazy' info for me, like what URL's are exactly returned, and what status changes and -messages you would like to relate to them, it might speed up the proces Eye-wink.

Regards,

Kees

 
Joined: 01/12/2008
Juice: 17

You should check if the payment_method equals your module name in hook_order(). Now all the methods in the order hook are called, even if your payment method is not enabled..

 
Joined: 08/13/2007
Juice: 485

Hi, thanks for pointing out.

This is a known issue, this payment method works when it's the only one.

I'm open for patches.

Kees

 
Joined: 08/20/2007
Juice: 48

Hi, I want to fix this bug.
I haven´t already made or change drupal-modules. I need some help.

Must it happen here?

/**
* Implementation of hook_order().
*/
function uc_ogone_payment_order($op, &$arg1, $arg2) {
  switch ($op) {
    case 'submit':
                                                          //  (an extra test ????) which one?
        uc_ogone_call($arg1, $arg2);

      break;
....

 
Joined: 08/20/2007
Juice: 48
if ($arg1->payment_method == 'ogone_payment') {
    uc_ogone_call($arg1, $arg2);
}else{
    //what here???
}
 
Joined: 08/13/2007
Juice: 485

Hi Jurgen,

Its fixed, please try/test.
Can you confirm the module being compatible with latest version?

Thanks,

Kees

 
Joined: 08/20/2007
Juice: 48

Hi,

Thanks, it looks to work. Still 2 questions:

The Ogone-payment-screen is opened in a popup screen, that is ok for me. But the "back to merchant"-button opens the website also in the popup. It´s better to close the popup and launch the ok-url in the original screen, is this possible...
Otherwise I think the iframe is better. I see some iframe code in comment in your module, does this code work.

cart/checkout/ogone_popup_ok goes to my homepage. I think it´s better to go to cart/checkout/complete. Do you agree, how to do this?

Jurgen Agten
www.i Gadgets.be

 
Joined: 08/13/2007
Juice: 485

Iframing is strongly discouraged by Ogone. Users will not see if it is an HTTPS connection or not. It allso will have the same issue as popup, the parent window has to be reloaded by javascript.

It supposed to close the popupwindow and reload the "opener" window to the checkout comlete screen by javascript.
This is why cart/checkout/ogone_popup_ok is caled.

If cart/checkout/ogone_popup_ok loades your homepage, this is where it goes wrong. Do you have clean urls?
Maybe there is a menu caching bug in the module (i cannot imagine, since the cart/checkout/ogone_popup_ok path is static).

Again, cart/checkout/ogone_popup_ok should NOT open your homepage!

Please download form drupal.org DONT use any comment attachments, they are old.

Regards,

Kees

 
Joined: 08/13/2007
Juice: 485

Use Drupal issue cue for questions or issue reports:
http://drupal.org/project/issues/uc_ogone

Thanks,

Kees

 
Joined: 06/02/2008
Juice: 9

Hi,

I've noticed that I have to use SHA signatures for verification on drupal. Can someone please tell me what signature I have to use and which are the settings I have to use on my ogone account in order to let drupal verify the order payment by ogone?
The problem is that now, user can pay via Ogone but they don't get any confirmation emails from drupal because drupal doesn't know the order is completed.

Please help

 
Joined: 08/13/2007
Juice: 485

Read on top of this page:

"...
IMPORTANT: In Ogone admin area,
-Enable 'Get' under 1.1
-Fill in 'http://www.yourdomain.com/cart/checkout' under 2.2
-fill in 'http://www.yourdomain.com/cart/checkout/ogone_return_ok' by 4.1 (OK URL)
..."

Do yo have clean URL's enabled?

Kees

 
Joined: 06/02/2008
Juice: 9

Ok,

The redirection works now but the order number isn't updated.
This is the confirmation message I get:

Order complete

Your order is complete! Your order number is .

Still no emails to the client... Something misconfigured in SHA?

 
Joined: 08/13/2007
Juice: 485