Documentation ¶
Index ¶
- func HandlePaymentCancel(w http.ResponseWriter, r *http.Request) error
- func HandlePaymentFailure(w http.ResponseWriter, r *http.Request) error
- func HandlePaymentSuccess(w http.ResponseWriter, r *http.Request) error
- func HandleSquareWebhook(w http.ResponseWriter, r *http.Request) error
- func HandleWebhook(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlePaymentCancel ¶
func HandlePaymentCancel(w http.ResponseWriter, r *http.Request) error
HandlePaymentCancel handles the success routine of the payment
func HandlePaymentFailure ¶
func HandlePaymentFailure(w http.ResponseWriter, r *http.Request) error
HandlePaymentFailure handles the failure routine of the square payment by responding to the GET request
func HandlePaymentSuccess ¶
func HandlePaymentSuccess(w http.ResponseWriter, r *http.Request) error
HandlePaymentSuccess handles the success routine of the payment
func HandleSquareWebhook ¶
func HandleSquareWebhook(w http.ResponseWriter, r *http.Request) error
HandleSquareWebhook receives the webhook POST request from the Square
func HandleWebhook ¶
func HandleWebhook(w http.ResponseWriter, r *http.Request) error
HandleWebhook receives the webhook POST request from the payment gateways
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.