Error in qiwi api node js. What to do?

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


    Error:

    /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!
    JavaScript Anonymous, Mar 7, 2020

  • 0 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!