Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Class constructor Request cannot be invoked without 'new' #7

Open
iamluxe77 opened this issue Nov 12, 2023 · 0 comments
Open
Assignees

Comments

@iamluxe77
Copy link

iamluxe77 commented Nov 12, 2023

Попробовал из README шаблон:

      const ApiManagerInstance = new ApiManager({
        httpClient: new RequestHttpClient({
          request: Request
        }),
        terminalKey: process.env.TINKOFF_TERMINAL_KEY,
        password: process.env.TINKOFF_PASSWORD
      });

      ApiManagerInstance.initPayment({
        OrderId: '1',
        Amount: 10,
        PayType: PayType.SingleStage,
      }).then((data : InitPaymentResponsePayload) => {
        console.log('Init response:', data);
      });

TypeError: Class constructor Request cannot be invoked without 'new'

@jfkz jfkz self-assigned this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants