Initial code review

@evanstade Please review.  Hopefully the pull request flow will let you add comments.
how can a site pass along transaction details? i.e. total amount/currency

applies to both custom and standard flows.