POSTFINANCE problems

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #130919

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.2.2
-- Joomla version -- :3.1.5
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message


Hi,

I have some problems configuring the postfinance plugin. I am getting repeated errors by postfinance.
To ensure that all options are configured corretly, some data is missing (for the postfinance side), such as what kind of SHA is used ? -1, -256 or -512 ?

there are other mandatory configurations within Postfinance, are you using the same as customweb? They provide a nice install doc, but even with these settings I am running into problems.
Also, I couldn't find the logfile of the plugin?

Many thanks,
Torsten

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #130923

Hi Torsten,

Firstly, can you :
- Put your debug mode option ON through your PostFinance payment configuration page
- Test it again
- Show me your Payment log file through "Hikashop->System->Configuration->Main"

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #130934

weird...

debug is on, postfiance is still reporting error and aborting, but the logfile is empty....?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #130948

Ok, and can you :
1. Tell me exactly where postfiance is reporting errors and aborting ?
2. Give me some screenshots of the issue/error that you are having, and of how you configured your PostFinance payment method ?

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #130953

Hi, can I provide you the info in a secure way?

Many thanks,
Torsten

Here the postfinance config

Hashing method: all parameters
Hash algo: SHA-256 (options 1/512)
Character encoding: UTF-8
Template
Enable Javascript on template: no
allow usage of static template: no
allow usage of dynamic templates: yes
Trusted website hostname: www.mysite.ch
SHA-IN is set as in the pluging
HTTP redirection in the browser: noting set
direct http server-to-server request: always online
URL of merchants post-payment page
if accepted, on hold or uncertain: www.mysite.ch/shop/index.php?option=com_...nance&tmpl=component
If cancelled : same as above
request method: post
SHA-OUT is set

Error: this order has already been processed (number)

When I set the SHA to 512, then error is : unknown order/1/s

WHen the postsfinance mask for payment is displayed (with an error), I notice that no amount is displayed, also no customer details, if submitted.

Many thanks for your help
Torsten

Last edit: 11 years 5 months ago by tspielmann.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #131039

Hi,

I understand the problem that you are facing, this problem is related to your order number which seems to be already used through your Post Finance order listing.Can you try :
- To clear your order listing history through your Postfinance account
- or Increase your order number by using this SQL request through your phpmyadmin for example :

ALTER TABLE #_hikashop_order AUTO_INCREMENT=10000;
Don't forget to replace # by your database table prefix.
Also, is it possible to have a temporary access to you back-end for testing purpose ?

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #131081

Hi Mohamed,

I sent you the confidential login information though a pm.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #131103

this problem is related to your order number which seems to be already used through your Post Finance order listing.Can you try :
- To clear your order listing history through your Postfinance account
- or Increase your order number by using this SQL request through your phpmyadmin for example :
ALTER TABLE #_hikashop_order AUTO_INCREMENT=10000;

Did you tried it ?

Last edit: 11 years 5 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #131105

yes, i did that, the order reference number is now 10000, but still error

An error has occurred; please try again later. If you are the owner or the integrator of this website, please log into the PostFinance back office to see the details of the error.

unknown order/1/s/

so it has top be a problem with the key? what settings is your plugin using ? 1/256/512 ?
did you get the pm with the logon details to post and backend?

Regards
Torsten

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #131204

Ok good,
The unknown order/1/s/ only means that the error is coming from the fact that the SHA that you configured through your Postfinance account and your Hikashop Postfinance configuration page doesn't match, so you should check it.

Also, The Postfinance account that you sent me don't seems to work so I wasn't able to see how did you configured your Postfinance account.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #131245

Hi Mohamed,

thanks for your reply.
The string do match, i copied them several times already from the post finance into hike without anything changing.

The login for the backend was tested - you might NOT login as the master user, but have to login as a USER,
this direct link should work!
e-payment.postfinance.ch/ncol/test/admin_POSTFINANCE.asp

Many thanks
Torsten

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #131302

Hi,

I just checked your PostFinance configuration, copy/paste your sha-in/out into your Hikashop PostFinance configuration page, and it seems to be ok now :

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #131336

Hi,

yes, though trial and error I managed to get that far, but after processing the payment the screen stays empty...no result is given back to hikashop now.

also, how can the form be displayed in german?
It seems that customer name is not transferred into the payment mask too.

Many thanks
Torsten

p.s. here is a TEST Visa Card

Visa
Karten Nr: 4900 0000 0000 0003
Ablaufdatum: 12/2015
CVV: 123

Last edit: 11 years 5 months ago by tspielmann.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #131348

Hi,
I think that you should directly ask it to PostFinance, I checked your Postfinance configuration, and I think that you're not redirected because you're still in TEST mode.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #131353

Hi Mohamed,

thanks, but that can't be the problem. I had the backend setup with mijoshop before, it worked flawless in the same test mode!
Any idea on the other two questions?

1.also, how can the form be displayed in german?
2.It seems that customer name is not transferred into the payment mask too.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #131498

Hi,
As I told you, your redirection issue is probably coming from the PostFinance platform can you directly ask it to PostFinance ? Also, if your want you the payment form to be displayed in German, you should edit the file : "\plugins\hikashoppayment\postfinance\postfinance.php".
and change the line : "

$vars = array(
			"PSPID" => $this->payment_params->shop_ID,
			"LANGUAGE" => 'en_US',

By :
$vars = array(
			"PSPID" => $this->payment_params->shop_ID,
			"LANGUAGE" => 'nl_NL',

Last edit: 11 years 5 months ago by Mohamed Thelji.
The following user(s) said Thank You: tspielmann

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #131741

Hi,

In the meantime, I managed to get the process more or less working - the problem right now is the following:

Payment by postfinance is processed as ok, then hikashop is displayed but with an error msg:

Message: Transaction Failed with the status number: (empty)
The cart is empty


Whilest 2(!) Emails are sent to the purchaser, that the orde status has now changed to paid.
Also Postfinance is sending details in an email and they say:

"Process error with online postsales http request"

then they go into deferred mode:

"the deferred postsale process is now setup etc..."


I talked to Postfiance, they are telling, that the return URL you are providing is generating a HTML response, which is not good, because their system in that case tries to display your response,, instead of processing further.
if you look at the logfiles within hikashop, you can see that the payment ok has been received, but never processed, the order stays on created.

here the details of what I wrote above from postfinance:
9.3.3 Response to the customer
We use a possible reply from your post-payment page to show a feedback (end of transaction page)
to your customer.
If your post-payment page replies with: an HTML page (containing an <html> tag) or A redirection
(HTTP 302 Object Moved), our system will send this HTML page “as is” to the client browser or
perform the redirection, rather than redirecting your customer at the end of your post-payment
feedback process to one of the four URLs you may have sent in the hidden fields (ACCEPTURL,
EXCEPTIONURL, CANCELURL and DECLINEURL as described here: Redirection depending on the
payment result).
Alternatively, if you use none of the above as feedback to your customer, you can have your postpayment
page respond with a few lines of text (no <html> tag) which we will include in our standard
response, or our system will simply show the standard response (as described in: Default reaction).

*****************************************************************************************************************

Attachments:
Last edit: 11 years 5 months ago by tspielmann.

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #132157

Hi Mohamed,

any chance to get that solved?

Many thanks
Torsten

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #132232

Ok, I've done some tests on my end, so can you edit your "\plugins\hikashoppayment\postfinance\postfinance.php" and change this line :

$app->redirect($return_url);
By :
//$app->redirect($return_url);
And this line :
$app->redirect($cancel_url);
By :
//$app->redirect($cancel_url);

Please Log in or Create an account to join the conversation.

  • Posts: 35
  • Thank you received: 0
11 years 5 months ago #132235

I changed that, then tested (had to set the order increment before as it was a double number again)

but now it's worse - nothing is displayed at all! empty white screen.

did you change anything in the postfinance backend? or the hika one?

Regards
Torsten

Please Log in or Create an account to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum