Documentation
¶
Index ¶
- Constants
- type Driver
- func (Driver) GetDriverName() string
- func (*Driver) PayMethod() string
- func (d *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.idpay.ir/v1.1/payment" APIPaymentURL = "https://idpay.ir/p/ws/" APISandBoxPaymentURL = "https://idpay.ir/p/ws-sandbox/" APIVerifyURL = "https://api.idpay.ir/v1.1/payment/verify" )
Const's for idpay
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver configures the idpay 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.