Comments (15)
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.
It will take some more time. I have solution ready in my head if I get free time.
from banklink.
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.
Any updates? Let me know if there's something I can help with.
from banklink.
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.
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.
From this document, 000
is exactly what it should generate. View start of last page.
from banklink.
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.
Is bank replying with message that VK_MAC is invalid?
Yep.
from banklink.
Is there any test environment I could test on?
from banklink.
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.
Completely understand. Does bank have test environment I could play with?
from banklink.
From what I see in https://www.swedbank.lt/business/cash/banklink/paymentPortal Swedbank does not have a sandbox.
from banklink.
I suppose I could look into opening an account for a personal project.
from banklink.
For debuging, please uncomment this line
Banklink/src/Protocol/IPizza/Services2015.php
Line 101 in 2a95015
Let's see of it then passes.
from banklink.
Related Issues (16)
- VK_STAMP could be string as well HOT 6
- Test request url COOPPANK HOT 3
- Feature request: ability to set different return and cancel urls HOT 5
- orderId type from int to string in protocol requests HOT 1
- Problem of PHP versions HOT 4
- Problem of PHP 7.0 version support HOT 1
- Swedbank LT doesn't include VK_RETURN into mac HOT 2
- Rename Liizi to Liisi through the project
- PaymentResponse::setAutomatic is not part of the ResponseInterface HOT 3
- New Luminor banklink HOT 2
- New provider: Everypay
- Rename banks HOT 4
- Add Pocopay support
- Drop PHP 5.6 & 7.0 support
- Add support for separate request URLs for auth and payment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from banklink.