Documentation ¶
Index ¶
Constants ¶
View Source
const ZARINPAL_NORMAL = "normal"
View Source
const ZARINPAL_SANDBOX = "sandbox"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Paytr ¶
type Paytr struct {
// contains filtered or unexported fields
}
type PaytrConfig ¶
type PaytrConfig struct { IsTest bool MerchantID string MerchantSalt string MerchantKey string CallbackURL string }
func NewPaytrConfig ¶
func NewPaytrConfig(isTest bool, callbackURL, merchantID, merchantSalt, merchantKey string) *PaytrConfig
func (*PaytrConfig) Prepare ¶
func (c *PaytrConfig) Prepare() *Paytr
type Zarinpal ¶
type Zarinpal struct {
// contains filtered or unexported fields
}
type ZarinpalConfig ¶
func NewZarinpalConfig ¶
func NewZarinpalConfig(mode, merchantID, callback string) *ZarinpalConfig
func (*ZarinpalConfig) Gateway ¶
func (z *ZarinpalConfig) Gateway() (*Zarinpal, error)
Gateway creates new Zarinpal gateway from the credentials in config
Click to show internal directories.
Click to hide internal directories.