Skip to content
Commit aaf66a0d authored by Rich Lott / Artful Robot's avatar Rich Lott / Artful Robot Committed by mattwire
Browse files

Minor refactor of doPayment, extracting to separate functions. NFC.

The primary aim of this refactor was to remove the http redirect(),
since this means the doPayment function could not be used for embedded
checkout in InlayPay. I also tried to split functions so that each did a
specific thing, and in particular, to separate out the munging of the
payment_params array from the doing-things-with-stripe code. I hope this
will make things clearer going forward and more easily integrated in
other APIs, like InlayPay.
parent 6fb2e6c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment