Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackInfo ¶
type CallbackInfo struct { Site *PayzenSite Production bool Valid bool }
func CallbackCheck ¶
func CallbackCheck(r *http.Request) *CallbackInfo
type PaymentConfig ¶
type PaymentConfig struct { Site *PayzenSite SiHMAC bool Currency vars.Currency PaymentType vars.PaymentType ActionMode vars.ActionMode SiProduction bool URLSuccess string URLRefused string URLCancel string URLError string URLReturn string Language vars.Language AvailableLanguages []vars.Language ReturnMode vars.ReturnMode PageAction vars.PageAction Version string RedirectErrorMessage string RedirectErrorTimeout string RedirectSuccessTimeout string RedirectSuccessMessage string }
func (*PaymentConfig) SetAutomaticReturn ¶
func (p *PaymentConfig) SetAutomaticReturn(msg string, timeout int, msgerror string, timeouterror int) *PaymentConfig
type PaymentError ¶
type PaymentError int
PaymentError retour d'erreur sur le module de paiement
const (
PaymentErrorBadTransactionID PaymentError = iota
)
func (PaymentError) Error ¶
func (pe PaymentError) Error() string
type PayzenPaiement ¶
type PayzenPaiement interface { GetSignature() string GetForm(string) string SetData(string, string) }
func GetNewPaiement ¶
func GetNewPaiement(payzenConfig *PaymentConfig, dt time.Time, amountCents uint64, transactionID, orderID, clientID int) (PayzenPaiement, error)
type PayzenSite ¶
func GetCertificate ¶
func GetCertificate(siteid uint64, SiProduction bool) (string, *PayzenSite)
func GetSite ¶
func GetSite(siteid uint64) (*PayzenSite, bool)
func (*PayzenSite) GetCertificate ¶
func (site *PayzenSite) GetCertificate(SiProduction bool) string
func (*PayzenSite) Register ¶
func (site *PayzenSite) Register() *PayzenSite
Click to show internal directories.
Click to hide internal directories.