Documentation
¶
Index ¶
- Constants
- type Driver
- func (Driver) GetDriverName() string
- func (*Driver) PayMethod() string
- func (*Driver) PayURL(invoice *invoice.Invoice) string
- func (d *Driver) Purchase(invoice *invoice.Invoice) (string, error)
- func (d *Driver) RenderRedirectForm(invoice *invoice.Invoice) (string, error)
- func (Driver) SetClient(c httpClient.Client)
- func (d *Driver) Verify(vReq interface{}) (*receipt.Receipt, error)
- type VerifyRequest
Constants ¶
View Source
const ( APIPurchaseURL = "https://gateway.zibal.ir/v1/request" APIVerifyURL = "https://gateway.zibal.ir/v1/verify" APIPaymentURL = "https://gateway.zibal.ir/start/" )
Const's for zibal driver
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver config struct for zibal driver
func (Driver) GetDriverName ¶
GetDriverName returns driver name
func (*Driver) RenderRedirectForm ¶
RenderRedirectForm renders the html form for redirect to payment page.
func (Driver) SetClient ¶
func (Driver) SetClient(c httpClient.Client)
SetClient sets the http client
type VerifyRequest ¶
type VerifyRequest struct {
TrackID string `json:"track_id"`
}
VerifyRequest is the request struct for verify
Click to show internal directories.
Click to hide internal directories.