T
T
tlopster12020-11-02 15:52:37
JavaScript
tlopster1, 2020-11-02 15:52:37

Error in qiwi api node js. What to do?

The code:

const​ ​QiwiBillPaymentsAPI​ ​ =​ ​ require​ (​ '@qiwi/bill-payments-node-js-sdk'​ ); 
const​ ​SECRET_KEY​ ​ = '***ZX******************nlmbC0wMCIsInVzZXJfaW******************6ImMwOTRiNzUzYmIxZDk2ZTZiY*********************jOTY2MTYifX0='​ ; 
const​ qiwiApi ​ =​ ​ new​ ​ QiwiBillPaymentsAPI​ (​ SECRET_KEY​ );


Mistake:

/root/BarsBot(Lucasik)/qiwi.js:24
const​ ​QiwiBillPaymentsAPI​ =​ require​(​'@qiwi/bill-payments-node-js-sdk'​);


SyntaxError: Invalid or unexpected token
    at wrapSafe (internal/modules/cjs/loader.js:931:16)
    at Module._compile (internal/modules/cjs/loader.js:979:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47


Help me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
playscar1, 2021-04-01
@playscar1

go to vk???

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question