# Marketplace message are not working

**URL:** <https://talk.jelurida.com/t/marketplace-message-are-not-working/300>\
**Category:** Developers\
**Created:** [25 April 2021 13:38 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300 "2021-04-25T13:38:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![VCPVCP](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/v/db5fbb/32.png) [@VCPVCP](https://talk.jelurida.com/u/VCPVCP)\
**Post date:** [25 April 2021 13:38 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/1 "2021-04-25T13:38:44Z")

</div>

Seller message for delivered goods to buyer is not working

When seller sends message on the delivery of digital goods, the buyer can't decrypt it

 ![image](https://talk.jelurida.com/uploads/default/original/1X/8783c490dd45ecb3d91cd700ad5760a8acc75406.png)

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [26 April 2021 06:25 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/2 "2021-04-26T06:25:58Z")

</div>

I've just tried and it seems to be working fine.

Are you getting any specific error? On your screen capture you highlight the shared key field but when entering the passphrase or private key on the first field you don't need to enter any shared key.

---

<div class="post-metadata">

**Author:** ![petko.petkov](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@petko.petkov](https://talk.jelurida.com/u/petko.petkov)\
**Post date:** [26 April 2021 10:39 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/3 "2021-04-26T10:39:06Z")

</div>

Which nxt version are you starting from?

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [26 April 2021 17:54 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/4 "2021-04-26T17:54:11Z")

</div>

I am working with @VCPVCP and we are starting from the nxt-starter version 1.12.2

I checked and when you are pressing decrypt there is not any call to the API, and not any error in the console.

After investigating it looks like it has to call the `getDGSPurchase` API (and when I do it with the API I receive the decrypted result).

Also I don't see anywhere in the Javascript code `decryptedGoods` being used, I guess it's used differently, if so could you tell me where so I could check what is not happening correctly?

---

<div class="post-metadata">

**Author:** ![sergi](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sergi/32/21_2.png) [@sergi](https://talk.jelurida.com/u/sergi)\
**Post date:** [27 April 2021 07:41 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/5 "2021-04-27T07:41:23Z")

</div>

Do you have a public node that we can check?

---

<div class="post-metadata">

**Author:** ![petko.petkov](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@petko.petkov](https://talk.jelurida.com/u/petko.petkov)\
**Post date:** [27 April 2021 10:04 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/6 "2021-04-27T10:04:44Z")

</div>

No need for public node - we reproduced it

---

<div class="post-metadata">

**Author:** ![VCPVCP](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/v/db5fbb/32.png) [@VCPVCP](https://talk.jelurida.com/u/VCPVCP)\
**Post date:** [27 April 2021 10:09 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/7 "2021-04-27T10:09:43Z")

</div>

Here's the public node [https://coin.vcashpay.com/index.html#](https://coin.vcashpay.com/index.html#)

---

<div class="post-metadata">

**Author:** ![petko.petkov](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/p/eb8c5e/32.png) [@petko.petkov](https://talk.jelurida.com/u/petko.petkov)\
**Post date:** [27 April 2021 11:18 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/8 "2021-04-27T11:18:20Z")

</div>

Here's a fix if you are in a hurry:

```
Index: html/www/js/nrs.encryption.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/html/www/js/nrs.encryption.js b/html/www/js/nrs.encryption.js
--- a/html/www/js/nrs.encryption.js	(revision 1f16a07ee6dbc54b94952e189cee1796634574c5)
+++ b/html/www/js/nrs.encryption.js	(revision d7564730a626f3a98fd09f381a24b018e1fa4891)
@@ -474,8 +474,8 @@
 			var encrypted = "";
 			var nonce = "";
 			var nonceField = (typeof title != "string" ? title.nonce : key + "Nonce");
- if (key == "encryptedMessage" || key == "encryptToSelfMessage") {
- var otherAccount = _encryptedNote.account;
+ var otherAccount = _encryptedNote.account;
+ if (key == "encryptedMessage" || key == "encryptToSelfMessage") {
 			    if (key == "encryptToSelfMessage") {
 					otherAccount = accountId;
 				}
```

---

<div class="post-metadata">

**Author:** ![sandoche](https://talk.jelurida.com/user_avatar/talk.jelurida.com/sandoche/32/89_2.png) [@sandoche](https://talk.jelurida.com/u/sandoche)\
**Post date:** [27 April 2021 20:36 UTC](https://talk.jelurida.com/t/marketplace-message-are-not-working/300/9 "2021-04-27T20:36:08Z")

</div>

It works, @petko.petkov well done! Thanks a lot.
