POSTFINANCE problems

  • Posts: 12953
  • Thank you received: 1778
10 years 4 months ago #182664

Hello,
You should use the Hikashop Post finance payment plugin which is working fine, you'll just have to use it and configure your Post finance account.

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

  • Posts: 9
  • Thank you received: 0
10 years 3 months ago #185235

Hi Mohamed,

we followed your advice and did a step-by-step configuration at the Post Finance Test account. The transaction at Post Finance is properly called and one can do a proper payment. But when coming back to the HikaShop the URL shows:

/index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=postfinance&tmpl=component&lang=de&Itemid=341

but the page remains white. We would apprechiate any good idea...

++ EDIT: The status of the payment is Canceled - allthough the payment has been accepted by Post Finance ++

Regards, Reto

Last edit: 10 years 3 months ago by rbaettig. Reason: Update

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

  • Posts: 9
  • Thank you received: 0
10 years 3 months ago #185239

Appendix to my last post:
This is the answer coming from Post Finance:


Fehler während postsale http-Anfrage :

HTTP/1.1 303 See other
Anfrageparameter gesendet :
orderID=54¤cy=CHF&amount=3013%2E2&PM=CreditCard&ACCEPTANCE=test123&STATUS=9&CARDNO=XXXXXXXXXXXX0002&BIN=400000&ED=0116&CN=Super+User&TRXDATE=01%2F05%2F15&PAYID=38265652&NCERROR=0&BRAND=VISA&CREDITDEBIT=&IPCTY=CH&CCCTY=US&ECI=5&CVCCheck=NO&AAVCheck=NO&VC=NO&AAVZIP=NO&AAVADDRESS=NO&AAVNAME=NO&AAVPHONE=NO&AAVMAIL=NO&IP=46%2E126%2E138%2E42&SHASIGN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Problem bei der Online Postsale http-Anfrage

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

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #185272

Hello,
The issue that you are having is coming from the way you configured your PostFinance account.
For example for your 2nd issue you should set the "Direct HTTP server-to-server request" option to no request.

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

  • Posts: 9
  • Thank you received: 0
10 years 3 months ago #186309

Hi Mohamed,

thank you for this hint - the ERROR 303 has gone.

Unfortunately the white returning page is still there. Any transaction result is -open-.

Sending you a PM.

Thanks, Reto

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

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #186315

Hello Reto,
I just changed your
- "HTTP redirection in the browser"
- "I would like to receive transaction feedback parameters on the redirection URLs."
and it seems to be working fine now.

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

  • Posts: 9
  • Thank you received: 0
10 years 3 months ago #188173

Hi Mohamed,

thank you - status transfer seems to work now. But...

Typically you will receive a stauts 5, 9 or status 91 from Postfinance.
5 Authorised
9 Payment requested
91 Payment processing

If status 9 comes back, the system acts like this:

1.) Message on the screen for the user:
Transaction failed with the status: 9
Cart ist empty

2.) Order overview on frontend and on backend shows: order cancelled:
C6Y7 2015-01-26 09:53 Storniert 6 301,80 CHF

3.) Notification E-Mail from Postfinance shows correct status:
Bestelldatum : 26/01/2015 10:53:03
Bestellnummer : 67
PostFinance Zahlungsreferenz : 38929576
Zahlungsempfänger : XXX
PSPID : hikashopTEST
Status : 9 Zahlung beantragt
Genehmigungscode : test123
UID : 123
TID : 75295150
Gesamtbetrag : 6301.80 CHF
Zahlungsmethode : VISA XXXXXXXXXXXX1111
Ablaufdatum : 01/16
Käuferdaten
Kunde : Tom Tester

4.) Hikashop sends the following message to the Superuser:
Hello,
A Postfinance notification was refused because the response from the Post finance server was invalid

We think that the status for the order should stay on "open" until we get Status 5 from Postfinance. Could there be an error in postfinance.php?

Thank you for checking.

Reto

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

  • Posts: 12953
  • Thank you received: 1778
10 years 3 months ago #188184

Hello Reto,

Typically you will receive a stauts 5, 9 or status 91 from Postfinance.
5 Authorised
9 Payment requested
91 Payment processing

In the postfinance.php file, if the postfinance status is 9/91 the order will be confirmed, if the status is different than 9/91/5 the order will be cancelled, and then if the status is 5, the order won't change and you'll wait for a notification with a 9/91 status or a status different than 9/91/5.

If you order is cancelled, you issue is probably coming from bad status code.

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

  • Posts: 9
  • Thank you received: 0
10 years 3 months ago #188403

Hi Mohamed,

I understand your point. The strange part of it is that we get the right message on the screen with status 9.

Transaction failed with the status: 9
Cart ist empty

Can you please check online again - since we cannot progress for the moment.

Thank you, Reto

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #188587

Your issue is coming from the fact that the sign locally calculated isn't equal to the sign that PostFinance send you through your shop when your customer is redirected back to your shop.
You should check if you have correctly set the "SHA IN" and "SHA OUT" through your shop and PostFinance configuration space.

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

  • Posts: 9
  • Thank you received: 0
10 years 1 month ago #193881

Hi Mohamed,

thank you for your hint with the SHA IN / SHA OUT. Since I cannot find an error there could you please give me the instruction what code to enter in this field.

1.) Both sides the SHA1 code like: 0a4d55a8d778e5022fab701977c5d840bbc486d0
2.) Both sides the clear code: Hello World

We did 1.) and Postfinance tested it ok. Still we get the Hikashop Error "Transaction failed with the status: 9". Could you give further advice?

Thank you, Reto

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #194018

Hello,

Since I cannot find an error there could you please give me the instruction what code to enter in this field.

You'll just have to define a SHA IN / SHA OUT on your PostFinance user space, and then add these values on your Hikashop PostFinance configuration page.

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

Time to create page: 0.192 seconds
Powered by Kunena Forum