Hi,

First of all thanx for a great module!! And my apologies for a rather long post.

I've been trying to set it up for my website and eventhough I don't get any errors I'm not sure if it's all correct.

What I've done;
- downloaded and activated the latest version of uc_ogone
- admin/store/settings/checkout/edit:
-> enable checkout
-> enable anonymous checkout
-> Submit order button text: Go to Payment Screen
-> uncheck 'hide shipping info'
- admin/store/settings/checkout/edit/panes
-> disabled Payment method (as Ogone is the only payment option)
- admin/store/settings/payment/edit
-> enabled Payment tracking
-> enabled Allow payments to be deleted by users with permission
-> Log payments entered and deleted to order log
- admin/store/settings/payment/edit/methods
-> enabled Ogone Payment - weight: 2 - Default gateway: None available
-> (no other payment methods available)
-> Ogone Payment settings pane:
- Ogone url: https://secure.ogone.com/ncol/test/orderstandard.asp
- pspid: MyID
- Currency: EUR
- Language: en_US
- Title: Secure Checkout
- SHA-1 signature pre: 64 random HEXDEC chars (https://www.grc.com/passwords.htm)
- SHA-1 signature post: same 64 random HEXDEC chars (https://www.grc.com/passwords.htm)
- admin/store/settings/payment/edit/gateways
-> no gateways or settings available

In https://secure.ogone.com/ncol/test/admin_ogone.asp I made the following settings:
- 1.1 methode: GET
- 1.2 emails: my email address
- 2.1 IP address: nothing
- 2.2 URL: http://www.mydomain.com/cart/checkout
- 3.1 URL of XML page: nothing
- 3.2 SHA-1 key: same as above in Ogone Payment settings pane
- 4.1 URL ok: http://www.mydomain.com/cart/checkout/ogone_return_ok
- URL NOT ok: nothing
- 4.2 Request type: Do request after..., Offline request permitted: no
- 4.3 enabled Mail merchant
- 4.4 SHA-1 key: same as above in Ogone Payment settings pane
- 4.5 URL redirection: disabled
- 5.1 # authorized payment attempts: 0
- 5.2 Redirection to eshop: enabled show ticket
- 5.3 disabled Show wait window
- 5.4 enabled Email notification
- 6.0 enabled Offline processing
- 7.1 Warnings: none checked
- 7.2 Method: none checked
URL: none given
- 8.0 Processing: immediate
- 9.0 Payment procedure: Automatic authorization and payment

Now when I click 'Go to Payment Screen' on the review order page of my website I get forwarded to cart/checkout/complete where I get a notice "Your order is complete! Your order number is 13."
I'm not getting a Ogone page where I have to click an ok or enter details, is this meant to be like this? Or did I miss a setting?

When I go to admin/store/orders/13 I see under payment the amount but not the method (empty). In the order overview admin/store/orders/ I see 'pending' right after the order.

Can you please explain what I'm doing wrong or if this is meant to be like this?
I will write a small tutorial when I have it all up and running and post it back if you like?!

Regards,
Bartezz

Comments

keesje’s picture

Priority: Critical » Normal

Hi,

If youre not even getting the payment screen something is messed up. Don't think It has something to do with settings in Ogone backend.
Any error messages in the Ogone log or Drupal log?

PM me the URL please.

Thanks,
Kees

bartezz’s picture

I send ya a PM Kees, hope you can help!

Thanx,
Bartezz

keesje’s picture

Status: Active » Closed (won't fix)

Hi Bart,

You must experience a quite steep learning curve, building an ecommerce site as a first Drupal project ;-).
Thanks for PM.

Anyway, I cant see where it goes wrong, It's strange, since things get messed up before contacting the Ogone gateway. It seems like no payment method is set active at all...
Please setup a fresh, clean Drupal/Ubercart install (Uberinstaller?) on the same hosting environment and try Ogone payment. I don't think it has something to do with the Ogone module directly.

You can contact me for commercial support if you want me to debug your site.

Kees

bartezz’s picture

Hi Kees,

Thanx for taking the time to help me, appreciate it!
I just enabled the payment method pane and tried again, it seems to work now??

I read here (http://www.ubercart.org/contrib/140) that I should disable it so that's what I've done at first, but now when it's enabled I at least get to the Ogone screen with the following message;

Payment confirmation

Order reference : 15 
Total charge : ---  
Beneficiary : --- 

ERROR, Merchant not active  

Does this sound more viable?

Cheers,
Bartezz

bartezz’s picture

Category: support » bug

Hoi Kees,

Well I'm getting there :) Bit by bit, it is a steep learning curve as you mentioned!

Anyhow, I was working on the Ogone Payment settings and found out that the module has some errors. There are wrong titles for the setting fields;

//line #238 - #255
  $form['ogone_layout_txtcolor'] = array(
    '#type' => 'textfield',
    //'#title' => t('Table BG Color'),
    '#title' => t('Text Color'),
    '#default_value' => variable_get('ogone_layout_txtcolor', ''),
    '#description' => t('Text color payment page.(empty for default)'),
  );
  $form['ogone_layout_tblbgcolor'] = array(
    '#type' => 'textfield',
    //'#title' => t('text Color'),
    '#title' => t('Table BG Color'),
    '#default_value' => variable_get('ogone_layout_tblbgcolor', ''),
    '#description' => t('Background color tables in payment page.(empty for default)'),
  );
  $form['ogone_layout_tbltxtcolor'] = array(
    '#type' => 'textfield',
    //'#title' => t('Table BG Color'),
    '#title' => t('Table Text Color'),
    '#default_value' => variable_get('ogone_layout_tbltxtcolor', ''),
    '#description' => t('Text color tables in payment page.(empty for default)'),
  );

Nothing critical but a bit confusing though!

Some other question I have;
- why isn't there a Dynamic Template Page field (TP)?
- there are other fields/variables that Ogone accept like accepturl, declineurl, exceptionurl and cancelurl (more here; https://secure.ogone.com/ncol/test/teststd.htm) why aren't these build into the module, is there a reason for this?

Thanx again Kees!!!!

Regards,
Bart

keesje’s picture

You want Ogone to go back to one URL and hand over the payment process results to be processed automatically in Ubercart. These URLS are typical for more static implementations in my opinion. Do you see a good use for it in Drupal/Ubercart?

Thanks for posting improvements

bartezz’s picture

Hi Kees,

True! Yes when Ubercart processes the results there is no real need for them really...

I've got my setup running.... almost!!!!

This is what I'm encountering now;

##########
Your payment is authorised
Payment reference :2862480
HTTP/1.1 301 Moved Permanently
##########

So when I look into Ogone admin area I see that at point 4.1 I have

www.yourdomain.com/cart/checkout/ogone_return_ok

When I go to this URL it's being forwarded by Drupal to

www.yourdomain.com/en/cart/checkout/ogone_return_ok

So I went into Ogone admin and changed 4.1 to

www.yourdomain.com/en/cart/checkout/ogone_return_ok

Now I get:

##########
Your payment is authorised
Payment reference :2862507

You will now be redirected to the merchant's website. A warning message can be displayed because you are about to leave the secured environment.
##########

Which looks a lot more promissing. Yet this ships me back to: http://www.yourdomain.com/en/cart in which I still see my full cart.
Also the order remains 'In checkout' when i look at admin/store/orders/view.

The only email I'm getting so far is an admin Ogone email saying; Status: 5 Geautoriseerd

Can you tell me what possibly is going wrong that ubercart isn't finalizing the order?

Regards and thanx very much again!
Bartezz

bartezz’s picture

Btw when I cancel an order when I'm already 'in Ogone' it does pass a correct message back to Ubercart saying;
"Ogone returned a cancel for your payment. Your order is not completed. Please try again or contact us."

So giving back variables from Ogone doesn't seem to be the problem, just when an order is authorized...

Hope you can help!

Cheers

keesje’s picture

This could be due to your multilingual setup, probably i18n that forces a /en/ behind the domain.
Please try what happens if you configure the /en/ url?

bartezz’s picture

I've tried that (#7) but I will try and completely disable the multilingual setup and see what happens then!

Will be back!

Cheers,
Bart

PS. Did you have the chance to look at my possible update for your module http://drupal.org/node/336334

bartezz’s picture

Hi Kees,

I have disabled i18n and all the ubercart links are now without a lang prefix.
So in Ogone settings I changed;

2.2 to http://www.yourdomain.com/cart/checkout
4.1 to http://www.yourdomain.com/cart/checkout/ogone_return_ok

Payment get's authorized by Ogone but nothing changes in the cart.

So I took a look at the code and found that the return ok url mentioned in http://www.ubercart.org/contrib/140 is not even existing? http://www.yourdomain.com/cart/checkout/ogone_return_ok' by 4.1 (OK URL)

Think it should be 'cart/ogone_return_ok'

$items[] = array(
      'path' => 'cart/ogone_return_ok',
      'title' => t('Ogone Payment return status'),
      'callback' => 'uc_ogone_return_ok',
      'access' => user_access('access content'),
      'type' => MENU_CALLBACK,
    );

So I tried that in the Ogone settings pages. Now I do get a message in Ubercart/Drupal;

Ogone returned an error for your payment. Your order is not completed. Please try again or contact us.

So getting closer. But not yet there... any ideas?

I've uncommented the print_r($ogone_order); in the uc_ogone_ok() function but nothing get's printed. Yet when I add a line there seying echo $_SESSION['ogone_order_id']; I do get the correct order_id?

Cheers

bartezz’s picture

OH MY GOD! I'm quite excited!!!

I found what the problem was... it's working now.
There is a bug in your code!

db_query("INSERT INTO uc_payment_ogone

should be

db_query("INSERT INTO {uc_payment_ogone}

Reason being that if you don't have the {} the customuser set) table prefix won't be added to the query.

Will go through the whole code, insert my improvements, write a tutorial and post back as soon as I have time!
Don't hesitate to harrass me if it takes too long...

Cheers

keesje’s picture

Hi Bart,

Good one! I'll update a.s.a.p.

Thanks for digging :-).

keesje’s picture

Status: Closed (won't fix) » Fixed

Theres only one line (506) regarding this bug.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

JayNL’s picture

Issue tags: +payment, +problem, +confirmation, +return, +ogone

hi,

hate to bring this up after almost 2 years, but we seem to have the same problem here. I'm currently testing the Ogone module in drupal 6.1.9 with ubercart 6.x-2.4 and I've managed to patch the file as described in http://drupal.org/node/886006 but after that, it still doesn't fully work as supposed.

I'm checking out a bunch of products, with a total of € 55,-
I'm redirected to Ogone, and make my payment with the fake creditcard number 4111.1111.1111.1111. I get a 'transaction succesful' from Ogone and I'm being redirected back to my Drupal site.

Once there, I'm redirected back to /cart, with this message:

Ogone returned an error for your payment. Your order is not completed. Please try again or contact us.

Is this because of the fake creditcard number, or do you have any other suggestions?

Thanks in advance for your reply!

J

bartezz’s picture

Been a while... and I haven't worked with the D6 version... so no clue here.
Am working on a D6 project for which I'll be needing Ogone so I hope Kees can share a light!

Cheers

JayNL’s picture

let's hope so :) Thnx 4 your reply at least, Bartezz.

pistol’s picture

Hi Bart,
I just ready your comment about the module. Are there any news on the dynamic template page field part of your comment. Does the module include it in some way? it would be really great having such a field in my opinion.

bartezz’s picture

Hi Lepistolpete,

I posted a patch for D5 version here http://drupal.org/node/336334 but that never made it in completely. Not sure where the D6 version stands when it comes to templating. Will find out soon tho as I am building a D6 uc site right now ;)

Cheers