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://api.zarinpal.com/pg/v4/payment/request.json" APIVerifyURL = "https://api.zarinpal.com/pg/v4/payment/verify.json" APIPaymentURL = "https://www.zarinpal.com/pg/StartPay/" )
Const's for zarinpal driver
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver config struct for zarinpal driver
func (Driver) GetDriverName ¶
GetDriverName returns driver name
func (*Driver) RenderRedirectForm ¶ added in v1.7.0
RenderRedirectForm renders the html form for redirect to payment page.
func (Driver) SetClient ¶ added in v1.4.0
func (Driver) SetClient(c httpClient.Client)
SetClient sets the http client
type VerifyRequest ¶
VerifyRequest is the request struct for verify
Click to show internal directories.
Click to hide internal directories.