move capture to payment controller.
[doc] draft working examples.