Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaymentOptionsType ¶
type PaymentOptionsType struct { CustomerName string `json:"customer_name" validate:"required"` CustomerEmail string `json:"customer_email" validate:"required,email"` CustomerPhoneNumber string `json:"customer_phone_number" validate:"required,len=10|len=12"` AmountToCharge float64 `json:"amount_to_charge" validate:"required,gt=0"` CallbackURL string `json:"callback_url" validate:"required,url"` }
PaymentOptionsType defines payment details.
type PaymentResponseType ¶
type PaymentResponseType struct { Status string `json:"status"` Message string `json:"message"` OrderID string `json:"order_id"` }
PaymentResponseType defines the response for a payment request.
Click to show internal directories.
Click to hide internal directories.