handlers

package
v1.1.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package handlers contains the http handlers which receive requests to be processed by the API.

Index

Constants

View Source
const ProducerSchemaName = "payment-processed"

ProducerSchemaName is the schema which will be used to send the payment processed kafka message with

View Source
const ProducerTopic = "payment-processed"

ProducerTopic is the topic to which the payment processed kafka message is sent

Variables

This section is empty.

Functions

func HandleCreateExternalPaymentJourney

func HandleCreateExternalPaymentJourney(w http.ResponseWriter, req *http.Request)

HandleCreateExternalPaymentJourney creates an external payment session with a Payment Provider that is given, e.g. GOV.UK Pay

func HandleCreatePaymentSession

func HandleCreatePaymentSession(w http.ResponseWriter, req *http.Request)

HandleCreatePaymentSession creates a payment session and returns a journey URL for the calling app to redirect to

func HandleGetPaymentDetails

func HandleGetPaymentDetails(w http.ResponseWriter, req *http.Request)

HandleGetPaymentDetails retrieves the payment details from the external provider

func HandleGetPaymentSession

func HandleGetPaymentSession(w http.ResponseWriter, req *http.Request)

HandleGetPaymentSession retrieves the payment session from request context

func HandleGovPayCallback

func HandleGovPayCallback(w http.ResponseWriter, req *http.Request)

HandleGovPayCallback handles the callback from Govpay and redirects the user

func HandlePatchPaymentSession

func HandlePatchPaymentSession(w http.ResponseWriter, req *http.Request)

HandlePatchPaymentSession patches and updates the payment session

func Register

func Register(mainRouter *mux.Router, cfg config.Config)

Register defines the route mappings for the main router and it's subrouters

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL