PostFinance blank page after payment

  • Posts: 1
  • Thank you received: 0
9 years 7 months ago #199608

Hi,

I experienced the same blank page issue with the PostFinance plugin. (page blank and order not qualified)

In the Postfinance control panel, i ve already check the "I would like to receive transaction feedback parameters on the redirection URLs" but the blank page issue is still present . (I enter the same SHA-out passphrase in both panel, postfinance and hikashop )

I also tested to reinstall the latest version of hikashop and the problem is still the same.

here is the log of my last attempt:

Does this log means that the SHA are not corresponding?

-- 04.22.15 14:13:18 --
---------------------------------------START----------------------------------------
-- 04.22.15 14:13:18 --
$_REQUEST :Array
(
[option] => com_hikashop
[ctrl] => checkout
[task] => notify
[notif_payment] => postfinance
[tmpl] => component
[lang] => fr
[Itemid] => 1452
[orderID] => 44
[currency] => CHF
[amount] => 2000
[PM] => PostFinance e-finance
[ACCEPTANCE] => 123456
[STATUS] => 5
[CARDNO] =>
[ED] =>
[CN] =>
[TRXDATE] => 04/22/15
[PAYID] => 41051456
[NCERROR] => 0
[BRAND] => PostFinance e-finance
[CREDITDEBIT] =>
[IPCTY] => CH
[CCCTY] => CH
[ECI] => 5
[CVCCheck] =>
[AAVCheck] =>
[VC] =>
[AAVZIP] => NO
[AAVADDRESS] => NO
[AAVNAME] => NO
[AAVPHONE] => NO
[AAVMAIL] => NO
[IP] => 85.0.239.17
[SHASIGN] => A154E491625E0362E2E69C00B778A0FB149E5634
[__atuvc] => 27|15,119|16
[_ga] => GA1.2.1946472772.1428915546
[referrerid] => NAO
[2ac17d818dea8323f650b6d56b4c9ba1] => cd31648a0f77f74958c3454cc1db4014
[__atssc] => google;2
[72f016810a94ed3e4115f4fb803222e5] => 2bfec3dbb1cbe9e20a8855b04e96b655
[__atuvs] => 55379019d76b2393003
)

-- 04.22.15 14:13:18 --
date :Array
(
[seconds] => 18
[minutes] => 13
[hours] => 14
[mday] => 22
[wday] => 3
[mon] => 4
[year] => 2015
[yday] => 111
[weekday] => Wednesday
[month] => April
[0] => 1429704798
)

-- 04.22.15 14:13:18 --
result :Array
(
[AAVADDRESS] => NO
[AAVZIP] => NO
[ACCEPTANCE] => 123456
[AMOUNT] => 2000
[BRAND] => PostFinance e-finance
[CCCTY] => CH
[CURRENCY] => CHF
[ECI] => 5
[IP] => 85.0.239.17
[IPCTY] => CH
[NCERROR] => 0
[ORDERID] => 44
[PAYID] => 41051456
[PM] => PostFinance e-finance
[STATUS] => 5
[TRXDATE] => 04/22/15
)

-- 04.22.15 14:13:18 --
MYSHA : 08BDB223B08EA2A1EF4D936426A326425991FB98 THEIRCHA : A154E491625E0362E2E69C00B778A0FB149E5634
-- 04.22.15 14:13:18 --
sha_out :***************************

Last edit: 9 years 7 months ago by Jerome. Reason: [code] is nice

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

  • Posts: 12953
  • Thank you received: 1778
9 years 7 months ago #199617

Hello,

Does this log means that the SHA are not corresponding?

Yes it means that the SHA returned by PostFinance (THEIRCHA), and the SHA that you've calculated based on :
- The way you configured your PostFinance payment method
- The parameters that are returned from PostFinance

So you should maybe check how you configured your PostFinance payment method, espacially the SHA-IN / SHA-OUT options

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

  • Posts: 38
  • Thank you received: 0
9 years 3 months ago #209775

Hello

I have exactly this problem. I'm still in the test environment of Postfinance. the payment works, just the return to hikaschop make a blank page.
I look at the apache error log, but no errors are showing just warnings.

the return address is which makes a blank page :

http://tuenni.ch/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=postfinance&tmpl=component&lang=de&Itemid=393&orderID=95&currency=CHF&amount=2&PM=CreditCard&ACCEPTANCE=test123&STATUS=5&CARDNO=XXXXXXXXXXXX5162&ED=0218&CN=Pierre+Burr-Wittke&TRXDATE=07%2F27%2F15&PAYID=44727477&NCERROR=0&BRAND=MasterCard&IPCTY=DE&CCCTY=DE&ECI=5&CVCCheck=NO&AAVCheck=NO&VC=NO&IP=84.175.76.139&SHASIGN=C2D68602801733D78BB6FC4EA1433B73DA59D493

in the log of Postfinance it only says, "PostFinance FEHLER währen DER POSTSALE-ABWICKLUNG" -> PostFinance error during POST SALE processing.

I enter the SHA-IN signature & SHA-OUT signature in the Postfinance backend and in the Hikasho Postfinance plugin.

I have hikashop business 2.5.0, Joomla! 3.4.3, PHP 5.4.35 % Firefox 39.0.
Error reporting on Joomla to maximum.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #209784

Hi,

The notification page can be blank if nothing is processed.

The notification system is generally used for the IPN, where HikaShop return raw data for the payment gateways.
That's why if the notification return "false" ; you can have a blank page. That's a rate case when you can have a blank page without any PHP error.

Thanks to your notification URL, we will be able to perform new tests.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 38
  • Thank you received: 0
9 years 3 months ago #209812

hi,

actually after the first test I made with Postfinance, the return url after a successful payment was:

index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=postfinance&tmpl=component&lang=de&Itemid=393

witch already return a blank page. I looked what was the Itemid=393, and found out that it the menu of the category listing of the item I bought.

I'm glad if I can give you more information, because with the blank page, I can't put Postfinance as a payment system in the shop....
thank you for your help.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #209822

Hello,
Your issue is probably coming from the way you configured your PostFinance account, so I can check it and fix if you want, I'll just need a temporary back-end access to your website and also to your PostFinance configuration space.
Note that you can send it through the contact form : www.hikashop.com/support/contact-us.html
Thanks.

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

  • Posts: 38
  • Thank you received: 0
9 years 3 months ago #209956

Hi,
I sent you the data to both accounts.
there is definitely a mistake in the Postfinance backend configuration -> template, that I can't correct any more.
I ask support about it, through an email to Postfinance.
Thanks a lot.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #210008

Hello,
I just uploaded, the last Post finance version through your website which will handle the case when the PostFinance plateform will return a status = 5 (Authorized).
Can you test it again ?

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

  • Posts: 38
  • Thank you received: 0
9 years 3 months ago #210081

good morning

yes great ! it work perfectly.
the only small thing is, that the return message is in English "Your payment is authorized.", is there a way to translate it in German or/and in French ?
Thank a lot for you great work . I appreciate it a lot.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 3 months ago #210101

Hello,
By using that last PostFinance version you'll just have to add a translation for the "POSTFINANCE_AUTHORIZED_PAYMENT" key through your translation file via "Hikashop->System->Configuration->Languages->'YourTranslationFile'", so that the message will be automatically translated regarding your website language.

Attachments:
Last edit: 9 years 3 months ago by Mohamed Thelji.

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

  • Posts: 38
  • Thank you received: 0
9 years 3 months ago #210325

thanks a lot again.

there is still a tiny problem with the language, the payment accepted return url is defined in the plugin and the language is not a part of the url, that means always the default language (for this web site german) is showing.
I tried to put index.php?option=com_content&view=article&id=73 instead of the SEF url, but it doesn't make a difference.
The Falang translation of the plugin is only for the title & text, but not for the parameters.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 3 months ago #210351

Hi,

Change the code:

$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=' . $order_id . $this->url_itemid;
		$cancel_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=' . $order_id . $this->url_itemid;
to:
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=' . $order_id . '&lang='.$this->locale.$this->url_itemid;
		$cancel_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id=' . $order_id . '&lang='.$this->locale. $this->url_itemid;
in the file plugins/hikashoppayment/postfinance/postfinance.php and that should do it.

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

  • Posts: 38
  • Thank you received: 0
9 years 3 months ago #210650

Hi,
I made the change but it still doesn't work.
But I realised that I have a (new) problem with the French translation of the shop. So I will first look at this problem and try to resolve it. If the French translation of this Postfinance plugin (respectively the success message in french) still doesn't work, I will come back to this post.

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

  • Posts: 38
  • Thank you received: 0
9 years 1 week ago #220490

Hi,

there is still a problem with acknowledgement of the postfinance transaction. the postfinance plugin sends back a http code 303 (redirect) and postfinance interpret it as an error instead of success. Is there a way to return a success ?

That means that I get always an email after the transaction with the following subject :

PostFinance FEHLER WÄHREND DER POSTSALE-ABWICKLUNG tuenniTEST
-> transleted : PostFinance error during POST SALE Processing tuenniTEST

email content:

****************************************
Process Error :
****************************************

Problem bei der Online Postsale http-Anfrage

****************************************
Ergebnis postsale Anfrage :
****************************************

Anfrageparameter gesendet :
orderID=119¤cy=CHF&amount=2&PM=PostFinance+e%2Dfinance&ACCEPTANCE=123456&STATUS=5&CARDNO=&ED=&CN=&TRXDATE=08%2F12%2F15&PAYID=45513408&NCERROR=0&BRAND=PostFinance+e%2Dfinance&IPCTY=CH&CCCTY=CH&ECI=5&CVCCheck=&AAVCheck=&VC=&IP=178%2E39%2E171%2E233&SHASIGN=6B9DB96FAE703997D4F7B1BBF9E901171AAAEC66
HTTP/1.1 303 See other

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

  • Posts: 12953
  • Thank you received: 1778
9 years 1 week ago #220499

Hello,
Your issue is probably just coming from the way you have configured your PostFinance account, However I'm facing that error message when I try to access to your PostFinance configuration page :

Your password has expired. You need to change it in order to access the administration module.

Can you change your password and send me a new temporary access to your PostFinance configuration page ?
You can send it through our contact form : www.hikashop.com/support/contact-us.html
Thanks.

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

Time to create page: 0.101 seconds
Powered by Kunena Forum