Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFiatProcessorType ¶
Is the payment processor type handle fiat
Types ¶
type Payment ¶
type Payment struct {
mixin.BaseModel
// Deprecated
Type accounts.Type `json:"type"`
// Order this payment is associated with
OrderId string `json:"orderId,omitempty"`
// User this payment is associated with
UserId string `json:"userId,omitempty"`
// Payment source information
Account accounts.Account `json:"account"`
// Immutable buyer data from time of payment, may or may not be associated
// with a user.
Buyer Buyer `json:"buyer"`
Currency currency.Type `json:"currency"`
CampaignId string `json:"campaignId,omitempty"`
Amount currency.Cents `json:"amount"`
AmountRefunded currency.Cents `json:"amountRefunded"`
Fee currency.Cents `json:"fee"`
FeeIds []string `json:"fees" datastore:",noindex"`
AmountTransferred currency.Cents `json:"-"`
CurrencyTransferred currency.Type `json:"-"`
Description string `json:"description,omitempty"`
Status Status `json:"status"`
// Client's browser, associated info
Client client.Client `json:"client,omitempty"`
// Whether this payment has been captured or not
Captured bool `json:"captured"`
// Stripe livemode
Live bool `json:"live"`
// Internal testing flag
Test bool `json:"-"`
Metadata Map `json:"metadata,omitempty" datastore:"-"`
Metadata_ string `json:"-" datastore:",noindex"`
}
Click to show internal directories.
Click to hide internal directories.