Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2024 Changes in this version + func Validate(structure interface{}) error + type AccountDetails struct + AccountNumber string + BankCode string + Currency string + Description string + Name string + Type string + type AuthorizationData struct + AccountName *string + AuthorizationCode string + BIN string + Bank string + Brand string + CardType string + Channel string + CountryCode string + ExpMonth string + ExpYear string + Last4 string + Reusable bool + Signature string + type Bank struct + Active bool + Code string + Country string + CreatedAt string + Currency string + Gateway string + ID int + IsDeleted bool + Longcode string + Name string + PayWithBank bool + Slug string + SupportsTransfer bool + Type string + UpdatedAt string + type BankMeta struct + Next string + PerPage int + Previous string + type BankResponse struct + Data []Bank + Message string + Meta BankMeta + Status bool + type ConfirmTransferInput struct + OTP string + TransferCode string + type ConfirmTransferResponse struct + Data struct{ ... } + Message string + Status bool + type CustomerData struct + CustomerCode string + Email string + FirstName *string + ID int64 + InternationalFormatPhone *string + LastName *string + Metadata *string + Phone *string + RiskAction string + type Error struct + Message string + Status bool + type FailedTrasnferResponse struct + Code string + Message string + Meta struct{ ... } + Status bool + Type string + type FilterBanks struct + Country string + Currency string + EnabledForVerification *bool + Gateway string + Next string + PayWithBank *bool + PayWithTransfer *bool + PerPage int + Previous string + Type string + UseCursor string + func (fb *FilterBanks) FilterEmptyFields() map[string]interface{} + type FullResponse struct + Data []struct{ ... } + Message string + Meta struct{ ... } + Status bool + type GetResponseData struct + Data TransactionData + Message string + Status bool + type History struct + Message string + Time int + Type string + type InitTransferResponse struct + Data struct{ ... } + Message string + Status bool + type ListTransactions struct + Amount int + Customer string + From *time.Time + Page int + PerPage int + Status TransactionStatus + TerminalID string + To *time.Time + func (lt *ListTransactions) FilterFields() map[string]interface{} + type LogData struct + Attempts int + Errors int + History []History + Input []string + Mobile bool + StartTime int64 + Success bool + TimeSpent int + type MetaTransaction struct + Page int + PageCount int + PerPage string + Skipped int + Total int + type Paystack struct + APIKey *string + func NewPaystackClient(apiKey string) *Paystack + func (p *Paystack) ConfirmTransfer(payload ConfirmTransferInput) (*ConfirmTransferResponse, error) + func (p *Paystack) CreateRecipient(payload AccountDetails) (*Recipient, error) + func (p *Paystack) Initialize(payload interface{}) (*PostResponseData, error) + func (p *Paystack) ListBanks(filter FilterBanks) (*BankResponse, error) + func (p *Paystack) ListTransactions(filter ListTransactions) (*FullResponse, error) + func (p *Paystack) Transfer(payload TransferInput) (*InitTransferResponse, error) + func (p *Paystack) Verify(reference string) (*GetResponseData, error) + type PostResponseData struct + Data struct{ ... } + Message string + Status bool + type Recipient struct + Data struct{ ... } + Message string + Status bool + type TransactionData struct + Amount int + Authorization AuthorizationData + Channel string + CreatedAt time.Time + CreatedAtISO string + Currency string + Customer CustomerData + Domain string + Fees int + FeesBreakdown *string + FeesSplit *int + GatewayResponse string + ID int64 + IPAddress string + Log LogData + Message *string + Metadata string + OrderID *string + POSTransactionData *string + PaidAt time.Time + PaidAtISO string + Plan *string + PlanObject map[string]interface{} + Reference string + RequestedAmount int + Source *string + Split map[string]interface{} + Status string + Subaccount map[string]interface{} + TransactionDate string + type TransactionStatus string + const Abandoned + const Failed + const Success + type TransferInput struct + Amount float64 + Currency string + Reason string + Recipient string + Reference string