make payment intent process an api call, include tests
This merge requests also fixes the previously broken tests.
It completes the first half of #131 (closed) and closes #163 (closed).
This merge requests also fixes the previously broken tests.
It completes the first half of #131 (closed) and closes #163 (closed).