Fix for missing return statement from wnsPayload function.

The wnsPayload function formerly did not return anything which was causing HTTP 400 errors during my requests to the API.

This fixes that issue.