Documentation
¶
Index ¶
- Variables
- func Authorize(c *gin.Context)
- func Cancel(c *gin.Context)
- func Capture(c *gin.Context)
- func Charge(c *gin.Context)
- func Confirm(c *gin.Context)
- func Refund(c *gin.Context)
- func Route(router router.Router, args ...gin.HandlerFunc)
- func Sessions(c *gin.Context)
- type Authorization
- type TokenSale
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FailedToCreateCustomer = errors.New("Failed to create customer") FailedToCreateUser = errors.New("Failed to create user") FailedToDecodeRequestBody = errors.New("Failed to decode request body") FailedToReserveItem = errors.New("Item already reserved") FeeCalculationError = errors.New("Failed to calculate fees") FundingAccountCreationError = errors.New("Failed to create funding account") InvalidOrIncompleteOrder = errors.New("Invalid or incomplete order") OnlyOneOfUserBuyerAllowed = errors.New("Only one of user buyer allowed") OrderDoesNotExist = errors.New("Order does not exist") PaymentCancelled = errors.New("Payment was cancelled") TokenSaleNotFound = errors.New("Token sale not found") TransactionLimitReached = errors.New("Transaction Amount May Not Exceed Limit of 5000000") UnsupportedBitcoinCurrency = errors.New("BTC/XBT is supported for 'bitcoin' payment method") UnsupportedEthereumCurrency = errors.New("Only ETH is supported for 'ethereum' payment method") UnsupportedPaymentType = errors.New("Unsupported payment type") UnsupportedStripeCurrency = errors.New("XBT(BTC), ETH not supported by 'stripe' payment method") UserDoesNotExist = errors.New("User does not exist") UserNotProvided = errors.New("None of user, user.id, order.userId is set") WalletCreationError = errors.New("Failed to create wallet for user") MissingTokenSaleOrPassphrase = errors.New("order.tokenSaleId or tokenSale.passphrase is missing") OrderTotalIsLessThan1 = errors.New("order.total is less than 1") AuthorizationFailed = errors.New("Failed to authorize") )
Functions ¶
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.