Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BearerTokens = map[string]string{}
Functions ¶
func AuthenticateUser ¶
AuthenticateUser checks credentials of the user
Types ¶
type AccessToken ¶
type AccessToken struct {
Token string `json:"token"`
}
type ApiResponse ¶
type Payment ¶
type Payment struct {
ID int `json:"id,omitempty"`
UserID int `json:"user_id"`
SenderMobileNo string `json:"sender_mobile_no"`
BeneficiaryMobileNo string `json:"beneficiary_mobile_no"`
Amount int `json:"amount"`
TransactionID string `json:"transaction_id"`
Status string `json:"status"`
}
func InsertIntoPayment ¶
func NewPaymentWithMakePaymentRequest ¶
func NewPaymentWithMakePaymentRequest(req *requests.MakePaymentRequest, transactionId *string) *Payment
Click to show internal directories.
Click to hide internal directories.