Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Type definition of constructor not sufficient #94

Open
stanglt opened this issue Oct 23, 2020 · 0 comments
Open

Type definition of constructor not sufficient #94

stanglt opened this issue Oct 23, 2020 · 0 comments

Comments

@stanglt
Copy link

stanglt commented Oct 23, 2020

We stumbled upon an error with an API change of you (I guess).

For the creation of a payment type we used the same Heidelpay SDK instance as for authorizing the payment, for example.
This, however, does not work anymore. We recognized that the instance for creating a payment type needs the public key, while authorizing utilizes the private key. The documentation of this is not sufficient and it is only recognizable in your code examples (https://docs.unzer.com/reference#testinput & https://docs.unzer.com/reference#paymentsauthorize).

The type definition of the SDK-Constructor is also not sufficient, as it only describes the private key as input parameter.

export default class Heidelpay {
    constructor(privateKey: string, locale?: string, env?: string);
 [...]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant