Changing the vt to use fetch
This commit is contained in:
@ -393,6 +393,8 @@ func (app *application) VirtualTerminalPaymentSucceeded(w http.ResponseWriter, r
|
||||
ExpiryMonth: txnData.ExpiryMonth,
|
||||
ExpiryYear: txnData.ExpiryYear,
|
||||
BankReturnCode: pi.LatestCharge.ID,
|
||||
PaymentIntent: txnData.PaymentIntent,
|
||||
PaymentMethod: txnData.PaymentMethod,
|
||||
TransactionStatusID: 2,
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,7 @@ func (app *application) routes() http.Handler {
|
||||
w.Write([]byte("got in"))
|
||||
})
|
||||
|
||||
mux.Post("/virtual-terminal-succedded", app.VirtualTerminalPaymentSucceeded)
|
||||
mux.Post("/virtual-terminal-succeeded", app.VirtualTerminalPaymentSucceeded)
|
||||
})
|
||||
|
||||
return mux
|
||||
|
Reference in New Issue
Block a user