Cowry improvements for payment url.

Tests are passing at least.