Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPaymentRequest ¶
func NewVerifyRequest ¶
Types ¶
type Mellat ¶
type Mellat struct {
// contains filtered or unexported fields
}
func New ¶
func New(client client.Transporter, username, password string) (*Mellat, error)
New create mellat object for create new request
func (*Mellat) CreateTransaction ¶
func (m *Mellat) CreateTransaction(ctx context.Context, req *paymentRequest) (*PaymentResponse, error)
func (*Mellat) VerifyTransaction ¶
func (m *Mellat) VerifyTransaction(ctx context.Context, req *verifyRequest) (*VerifyResponse, error)
type PaymentResponse ¶
type PaymentResponse struct { XMLName xml.Name `xml:"Envelope"` Body struct { XMLName xml.Name `xml:"Body"` BpPay struct { XMLName xml.Name `xml:"bpPayRequestResponse"` Return string `xml:"return"` } } // contains filtered or unexported fields }
func (*PaymentResponse) RefId ¶
func (pr *PaymentResponse) RefId() string
func (*PaymentResponse) ResponseCode ¶
func (pr *PaymentResponse) ResponseCode() int
type VerifyResponse ¶
type VerifyResponse struct { XMLName xml.Name `xml:"Envelope"` Body struct { XMLName xml.Name `xml:"Body"` BpPay struct { XMLName xml.Name `xml:"bpVerifyRequestResponse"` Return string `xml:"return"` } } // contains filtered or unexported fields }
func (*VerifyResponse) ResponseCode ¶
func (vr *VerifyResponse) ResponseCode() int
Click to show internal directories.
Click to hide internal directories.