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

notificationJson Error not found #34

Closed
ArifandiHartono opened this issue Aug 19, 2021 · 2 comments
Closed

notificationJson Error not found #34

ArifandiHartono opened this issue Aug 19, 2021 · 2 comments

Comments

@ArifandiHartono
Copy link

saat saya menjalankan code midatransSnap.transaction.notification(notificationJson);
saya mendapatkan error
2021-08-19T17:32:49.789Z error: /v1/transaction/payment_status - 127.0.0.1 - ReferenceError: notificationJson is not defined
apakah bisa dibantu? Terima kasih

@ArifandiHartono
Copy link
Author

sudah kurang teliti saya harus tambahkan req.body

@rizdaprasetya
Copy link
Collaborator

Betul. Baiklah jika issue sudah solve. Terima kasih.

Bagi yang lain jika mengalami issue yang sama bisa refer ke example berikut:

app.post('/notification_handler', function(req, res){
let receivedJson = req.body;
core.transaction.notification(receivedJson)
.then((transactionStatusObject)=>{

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