The Ogone-payment-screen is opened in a popup screen.
In ogone, under 4.1, I added in the first field:
http://test.iGadgets.be/nl/cart/checkout/ogone_popup_ok

After payment is done, the following url is called:
http://test.example.be/?CSRFSP=%2Fncol%2Ftest%2Forder%5FAKBC%2Easp&CSRFK...

it doesn´t close the popup and don´t open
http://test.example.be/cart/checkout/ogone_popup_ok ??????

clean url´s is on.

Somebody can help me.

Jurgen.

Comments

Jurgen8en’s picture

brakkevh’s picture

You have to use the SHA signatures, so far I found out. I don't know exactly what this SHA signature has to be but I just put in a secret word and did the same for the configuration in ubercart ogone. Now it redirects and tells me the order is complete, but clients don't receive invoice emails...

keesje’s picture

Assigned: Unassigned » keesje

Hi,

Right, the SHA sign is created following a code procedure hashing concatenated strings. One of these strings is a preshared key, your 'secret'. Quite obvious.

I you are rerouted back OK, and the order is set to status "In progress" (not sure, it should switch from "In checkout" to something else), you have to look at your Ubercart config.

Try:
-See if order status is changed after OK redirect, cart must be emptied
-Try other payment method (e.g. "Other") and see if confirmation mail is sent after fulfillment.

Luck,

Kees

brakkevh’s picture

Hi,

I tried and after OK redirect, the cart is empty but the order still has the status 'Checkout' and no confirmation email. If I update the status manually 2 emails are sent to the client. One with the message that the status has been updated and the other one with the invoice. It is this invoice that should be mailed immedialtely after the purchase via Ogone, but that doesn't work.

If I try another payment method like COD a confirmation mail is sent to the client immediately...

brakkevh’s picture

The status still keeps stuck at 'In Checkout'. I even tried to update the status with workflow but that doesn't work? Please can someone tell me what I have to do so that the status gets updated after payment? Could it be that the status stays in Checkout because I am using a test account from Ogone?

Help would be much appreciated.

keesje’s picture

OK, I understand.

Edit: Sorry didnt read #4. Has nothing to do with test account. I assume you do not test from localhost?

Be back on this soon.

Kees

keesje’s picture

Possible solution:

Change

uc_order_update_status($_SESSION['ogone_order_id'], 1);

to

uc_order_update_status($_SESSION['ogone_order_id'], uc_order_state_default('payment_received'));

In
uc_ogone_payment.module
line 446

please report back.

keesje’s picture

Status: Active » Needs review
brakkevh’s picture

Hi qrios! Thanks for helping me on this issue.

I am not running on localhost.
I've changed the code and now the status is updated and so clients also get emails with their invoices, great! Thanks!

But there are still some issues... If a new user goes to checkout and completes it no email with their new account details is sent to them. I have turned on all the options to send seperate mails with account info for new users, but again no emails... :( new user accounts aren't created at all. Also the Customer number: 0 for several new users.

I've also noticed that after the checkout the confirmation message in drupal says 'You order id is .' (no number shows up) So it doesn't get updated or something I quess but that ok, I will just change that message so it doesn't show the order id.

It would be great if you could help me out because I really want to use übercart.

Thanks!

keesje’s picture

Status: Needs review » Fixed

Thanks for feedback, module is to be updated.

...If a new user goes to checkout and completes it no email with their new account details is sent to them...
Is this a Ogone only issue, or does it apply to other payment methods?

...(no number shows up) So it doesn't get updated or something...
This is an Uberbercart message, it should show ID number. Check if message translations are correct.
What is not getting updated? The order status IS updating isn't it?

Important: please confirm what Ubercart version you use? (1.0 released yesterday)

Also check if the user is returned to the SAME session. Some browsers treat //www.tld and //tld as different sessions.

Thanks,

Kees

brakkevh’s picture

Is this a Ogone only issue, or does it apply to other payment methods?

Answer: My settings are that new users can insert their desired username and password along with their mailadres. So they are allowed to checkout anonymously and have to enter their desired account login during the checkout process.
I've tried this with COD and OGONE, these are the results I got after checkout:

for COD: (everything OK)
---------------
Your order is complete! Your order number is 36.

Thank you for shopping at Drupal!. A new account has been created for you here that you may use to view your current order status.

Click here to login to your new account using the following information:

Username: brak
Password: 123456

-------------- -> The user has automatically been login during checkout, everything seems fine!

for OGONE: (not OK)
---------------
Your order is complete! Your order number is . -> (no order number shows up here but the order number does exist and the status is updated to payment received)

Thank you for shopping at Drupal. Your current order has been attached to the account we found matching your e-mail address.

Click here to login and view your current order status and order history. Remember to login when you make your next purchase for a faster checkout experience!

-------------- -> No account details are provided and the message is also different, it looks like drupal thinks the e-mail address is already registered and that it has an account attached to it but that isn't the case. Also, no email with their account information. if I go and take a look in the 'users' section of Drupal BackEnd the new user account isn't even created...

I updated to Ubercart 1.0 release but the issues still remain so I guess something is wrong in the Ogone module.
Maybe good to know: my domain name is a subdomain like shop.domain.com

Thanks for your time to take a look at this.

Grtz

keesje’s picture

Category: support » bug

Thanks for explaining, this seems like an Ogone issue indeed.

Can I pls use your webshop to debug the module? I do not have an Ogone test account at this moment.
Only if you feel free to let me of course.

I would need:
FTP access
Drupal Admin account

Please use my contact form.

Jurgen8en’s picture

About the SHA signatures:

Must this be placed in:
Ogone:
3.2. SHA-1 Signature
4.4. Feedback data checking:

In ubercart:
SHA-1 Signature pre:
SHA-1 Signature post:

Thanks.

For confirmation, the SHA-1 is just a string?

brakkevh’s picture

I've sent you an email. Could you please use a credit card test number in checkout to test?

keesje’s picture

Yes, it's just a pre-shared key used to generate the SHA1 hash.
Tread it like a password.

Jurgen8en’s picture

Can someone tell me in which of the fields I must place the SHA-1 string

Thanks

keesje’s picture

@jurgen:
-3.1: must be the same as "SHA-1 Signature pre"
-4.4: must be the same as "SHA-1 Signature post"
(you can use the same key for both if you like)

New version of module will have readme.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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