I put this together and tested it worked. Missing the imports and what not which I didnt include in the gist. Let me know if this helps. Code makes a payment and tracks the status.
https://gist.github.com/BitcoinCoderBob/6adcc1a79c5c584cbf634c11e01a499f