wl-online-payments-direct / sdk-client-js

Other
3 stars 2 forks source link

APIVERSION set to v1? #1

Closed mho-drouot closed 2 years ago

mho-drouot commented 2 years ago

Hi there,

Why did you guys hardcode APIVERSION to "client/v1"? Since v2 APIs exist, wouldn't it be right to set it to "client/v2" (to be up to date)?

worldline-direct-support-team commented 2 years ago

Hi @mho-drouot, the SDK follows the OpenAPI contract of Direct, which you can find here: https://support.direct.ingenico.com/documentation/api/reference/#tag/ClientCrypto. Direct supports v2 for the server API, and uses v1 for the client API.

mho-drouot commented 2 years ago

OK thanks for the information. Just to make sure:

worldline-direct-support-team commented 2 years ago

Yes, @mho-drouot, that's correct.

mho-drouot commented 2 years ago

Thanks!