zaporylie/php-vipps

Implement new token-based authorization

zaporylie opened this issue · 4 comments

In a message I got today, Vipps tech team informs about new, token-based authorization system. That will eventually drop old cert-based authentication in favor of simpler and easier to use token based authentication. I'm still waiting for detailed information, including how to retrieve token, but when I get one I will come up with changes to API for this library. These changes will, most likely, break BC so be ready to adjust your application to changes in this SDK.

As a reminder, we are still in pre-release stage on lib development and incompatible changes may occur even between minor releases (0.4 -> 0.5). Be sure you read through list of changes you'll find on release page, and make all required changes before you upgrade this SDK to newer version.

Yesterday I received access to Vipps Developer Portal and I am planning to work on this issue next week.

Unfortunately changes to Vipps API are bigger than I expected. Authorization module completely turns upside down the way how current version of SDK was composed. I decided to re-work lib architecture, but save (more or less) the way how we operate on payments, to make transition painless.

You can see progress on re-work in https://github.com/zaporylie/php-vipps/tree/1.x

Currently status: writing tests and documentation.

I finally got access to new live environment and got access details for new live api. Testing it now but if nothing goes wrong I current state of 1.x branch will become new release.

I am about to release 1.0.0. 1.x will become new "trunk" (default) branch.