I am using the flutterwave-react package to make payments from a web app. It works alright but in the webhook I set up, the payload I receive does not have the meta object I passed.
Do you know why this is?
I am using the flutterwave-react package to make payments from a web app. It works alright but in the webhook I set up, the payload I receive does not have the meta object I passed.
Do you know why this is?
Hi @mishaeljoe
The meta object is not returned with hook sent. you need to verify the transaction to retrieve the meta object.
Regards
Hello @Abraham_Olaobaju,
I am using Next JS and here is the error I am having while calling the verify payment gateway.
Error:
× package
cannot be used as an identifier in strict mode
╭─[C:\Users\tallj\OneDrive\Desktop\unimart2\node_modules\flutterwave-node-v3\utils\logger.js:9:1]
9 │ {
10 │ publicKey: _rave.getPublicKey(),
11 │ language: ‘NodeJs v3’,
12 │ version: package.version,
· ───────
13 │ title: ‘Incoming call’,
14 │ message: name,
15 │ },
╰────
Caused by:
Syntax Error
Import trace for requested module:
./node_modules/flutterwave-node-v3/utils/logger.js
./node_modules/flutterwave-node-v3/services/banks/rave.banks-branches.js
./node_modules/flutterwave-node-v3/lib/rave.banks.js
./node_modules/flutterwave-node-v3/index.js
./app/api/webhook/route.js
⨯ ./node_modules/flutterwave-node-v3/utils/logger.js
Error:
× package
cannot be used as an identifier in strict mode
╭─[C:\Users\tallj\OneDrive\Desktop\unimart2\node_modules\flutterwave-node-v3\utils\logger.js:9:1]
9 │ {
10 │ publicKey: _rave.getPublicKey(),
11 │ language: ‘NodeJs v3’,
12 │ version: package.version,
· ───────
13 │ title: ‘Incoming call’,
14 │ message: name,
15 │ },
╰────
Caused by:
Syntax Error
Import trace for requested module:
./node_modules/flutterwave-node-v3/utils/logger.js
./node_modules/flutterwave-node-v3/services/banks/rave.banks-branches.js
./node_modules/flutterwave-node-v3/lib/rave.banks.js
./node_modules/flutterwave-node-v3/index.js
./app/api/webhook/route.js
How can I handle this error?
It seems that the name ‘package’ is a reserved name and as such can’t be used.