Coder Social home page Coder Social logo

Banklink implementation sets VK_REF and VK_MSG even if LtSwedbank specification allows only one of the fields to be used about banklink HOT 15 CLOSED

renekorss avatar renekorss commented on September 4, 2024
Banklink implementation sets VK_REF and VK_MSG even if LtSwedbank specification allows only one of the fields to be used

from banklink.

Comments (15)

renekorss avatar renekorss commented on September 4, 2024 1

Thanks for reporting. I will take a look into this. Since I'm quite busy right now, it could take me some time. Probably this week.

from banklink.

renekorss avatar renekorss commented on September 4, 2024 1

It will take some more time. I have solution ready in my head if I get free time.

from banklink.

zexa avatar zexa commented on September 4, 2024

I tried to overwrite both VK_REF and VK_MSG via $customRequestData inside getPaymentRequest from RKD\Banklink\Banklink , however that causes an UnexpectedValueException that says

Field VK_MSG must be set to use service 1002.

from banklink.

zexa avatar zexa commented on September 4, 2024

Any updates? Let me know if there's something I can help with.

from banklink.

renekorss avatar renekorss commented on September 4, 2024

I researched this a bit and to my understanding setting VK_MSG to empty string ('') is actually what's needed. This is because it still needs to be in VK_MAC. At least what I can see from examples from documentation. I found english version here: https://www.swedbank.lt/files/Banklink_TC_en.pdf

Using empty string won't throw UnexpectedValueException since it is set, is not false and is not null. Have you tried this? If not, please do and let me know.

from banklink.

zexa avatar zexa commented on September 4, 2024

Hi, apologies for the delayed response.

All I get is an invalid VK_MAC if I leave VK_MSG empty. I haven't taken the time to debug the generated VK_MAC before encoding it but my guess would be that leaving VK_MSG generates a 000 signature string.

from banklink.

renekorss avatar renekorss commented on September 4, 2024

From this document, 000 is exactly what it should generate. View start of last page.

from banklink.

renekorss avatar renekorss commented on September 4, 2024

All I get is an invalid VK_MAC if I leave VK_MSG empty

Is bank replying with message that VK_MAC is invalid?

from banklink.

zexa avatar zexa commented on September 4, 2024

Is bank replying with message that VK_MAC is invalid?

Yep.

from banklink.

renekorss avatar renekorss commented on September 4, 2024

Is there any test environment I could test on?

from banklink.

zexa avatar zexa commented on September 4, 2024

The project I'm currently working on is not yet publicly available and even if it was you'd need to meet special conditions in order to get an account in it.

Long story short I don't think I can give you access to a testing environment. I'd have to consult with my employer and I don't think he'd be too happy with the idea.

Perhaps if you told me what you're looking for I could do the experiments for you?

from banklink.

renekorss avatar renekorss commented on September 4, 2024

Completely understand. Does bank have test environment I could play with?

from banklink.

zexa avatar zexa commented on September 4, 2024

From what I see in https://www.swedbank.lt/business/cash/banklink/paymentPortal Swedbank does not have a sandbox.

from banklink.

zexa avatar zexa commented on September 4, 2024

I suppose I could look into opening an account for a personal project.

from banklink.

renekorss avatar renekorss commented on September 4, 2024

For debuging, please uncomment this line

and try to overwrite VK_REF in data by setting it to null.
Let's see of it then passes.

from banklink.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.