Documentation ¶
Index ¶
Constants ¶
View Source
const ( CREATE_TRANSACTION_URL = "https://api.novinpal.ir/invoice/request" VERIFY_TRANSACTION_URL = "https://api.novinpal.ir/invoice/verify" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( identityData IdentityData, ) *novinpal
Types ¶
type ErrorResponse ¶
type IdentityData ¶
type PaymentRequest ¶
type PaymentRequest struct { ApiKey string `json:"api_key"` Amount uint64 `json:"amount"` ReturnUrl string `json:"return_url"` OrderId string `json:"order_id"` Description *string `json:"description,omitempty"` Mobile *string `json:"mobile,omitempty"` CardNumber *string `json:"card_number,omitempty"` }
func NewPaymentRequest ¶
func NewPaymentRequest( amount uint64, returnUrl, orderId string, description, mobile, cardNumber *string, ) *PaymentRequest
type PaymentResponse ¶
type VerifyRequest ¶
func NewVerifyRequest ¶
func NewVerifyRequest( refId string, ) *VerifyRequest
type VerifyResponse ¶
type VerifyResponse struct { PaidAt string `json:"paidAt"` CardNumber string `json:"cardNumber"` Status int `json:"status"` Amount int `json:"amount"` RefNumber string `json:"refNumber"` RefId string `json:"refId"` Description string `json:"description"` OrderId string `json:"orderId"` VerifiedBefore bool `json:"verifiedBefore"` }
Click to show internal directories.
Click to hide internal directories.