Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
Hello, i'm a junior developer and it has been my second week learning Node JS so errors might be because of my poor use of Javascript. My problem is that after sending a request pretty much like in

Replies Created

Reply to: Can't successfully retrieve package id

0 votes
Hi, Thank you for such a fast answer. Do i have to send the payload as a string or as an object ? I don't understand why you have to use '+' to build the payload as a string if you cant use an object & just set the values with the form. Have a good afternoon.

Reply to: Can't successfully retrieve package id

0 votes
Hello, Thank you for your help it was very helpful. Another error that i detected was my 'content-type' parameter which was set to 'null' instead of null. Unfortunately, i also have a problem with the session token. I embedded the token request in the handler of the package id request here in line 323. My session token is undefined & the body empty. Am i doing things correctly ? Again, thank you for your time.

Reply to: Can't successfully retrieve package id

0 votes
Hi, Not only i still can't get the session token but now i don't get the package id either. Just by changing DRAFT to SENT they both are undefined. Are you sure these types of requests can be done with a sandbox account ? Have a good afternoon :)

Reply to: Can't successfully retrieve package id

0 votes
Hello Mr Haidary, You are right i forgot about the fact that the code was set to this actual document. The retrieval of the packageid and the session token run smoothly thanks to your payload & advices. However, when i get the iframe in our front-end, i have this result as shown in the attachment. What can i understand from it ? Thank you++;

Attachments

Subscriptions

Topics Replies Freshness Views Users
Hello, i'm a junior developer and it has been my second week learning Node JS so errors might be because of my poor use of Javascript. My problem is that after sending a request pretty much like in
25 7 years ago 85
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.