Documentation ¶
Index ¶
- type AddUPOResponse
- type AlternativePaymentMethod
- type AmountDetails
- type BillingAddress
- type BrowserDetails
- type Card
- type CardData
- type CreateUserResponse
- type DeviceDetails
- type ExternalSchemeDetails
- type FraudDetails
- type InitPaymentResponse
- type Item
- type MerchantDetails
- type NuveiAction
- type OpenOrderResponse
- type PaymentMethod
- type PaymentOption
- type PaymentResponse
- type PaymentStatusResponse
- type PayoutResponse
- type PayoutStatusResponse
- type Response
- type SessionToken
- type SessionTokenResponse
- type SubMerchant
- type ThreeD
- type UPOsResponse
- type UpoData
- type UserPaymentOption
- type V2AdditionalParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUPOResponse ¶
type AlternativePaymentMethod ¶
type AlternativePaymentMethod struct { ExternalAccountID string `json:"externalAccountID"` ExternalTransactionId string `json:"externalTransactionId"` APMReferenceID string `json:"APMReferenceID"` OrderTransactionId string `json:"orderTransactionId"` ApmPayerInfo string `json:"apmPayerInfo"` PaymentMethod string `json:"paymentMethod"` }
type AmountDetails ¶
type BillingAddress ¶
type BillingAddress struct { FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Address string `json:"address,omitempty"` Cell string `json:"cell,omitempty"` Phone string `json:"phone,omitempty"` Zip string `json:"zip,omitempty"` City string `json:"city,omitempty"` Country string `json:"country"` State string `json:"state,omitempty"` Email string `json:"email"` County string `json:"county,omitempty"` }
type BrowserDetails ¶
type BrowserDetails struct { AcceptHeader string `json:"acceptHeader"` Ip string `json:"ip"` JavaEnabled string `json:"javaEnabled"` JavaScriptEnabled string `json:"javaScriptEnabled"` Language string `json:"language"` ColorDepth string `json:"colorDepth"` ScreenHeight string `json:"screenHeight"` ScreenWidth string `json:"screenWidth"` TimeZone string `json:"timeZone"` UserAgent string `json:"userAgent"` }
type Card ¶
type Card struct { CardNumber string `json:"cardNumber,omitempty"` CardHolderName string `json:"cardHolderName,omitempty"` ExpirationMonth string `json:"expirationMonth,omitempty"` ExpirationYear string `json:"expirationYear,omitempty"` CVV string `json:"CVV,omitempty"` ThreeD ThreeD `json:"threeD,omitempty"` CcTempToken string `json:"ccTempToken,omitempty"` }
type CreateUserResponse ¶
type DeviceDetails ¶
type DeviceDetails struct {
IP string `json:"ipAddress"`
}
type ExternalSchemeDetails ¶
type FraudDetails ¶
type FraudDetails struct {
FinalDecision string `json:"finalDecision"`
}
type InitPaymentResponse ¶
type InitPaymentResponse struct { Response OrderId string `json:"orderId"` TransactionStatus string `json:"transactionStatus"` CustomData string `json:"customData"` TransactionId string `json:"transactionId"` TransactionType string `json:"transactionType"` GwExtendedErrorCode int `json:"gwExtendedErrorCode"` GwErrorCode int `json:"gwErrorCode"` ClientUniqueId string `json:"clientUniqueId"` PaymentOption PaymentOption `json:"paymentOption"` SessionToken string `json:"sessionToken"` UserTokenId string `json:"userTokenId"` }
type MerchantDetails ¶
type MerchantDetails struct {
CustomField1 string `json:"customField1"`
}
type NuveiAction ¶
type NuveiAction string
const ( GetSessionToken NuveiAction = "/getSessionToken.do" OpenOrder NuveiAction = "/openOrder.do" InitPayment NuveiAction = "/initPayment.do" Pay NuveiAction = "/payment.do" Payout NuveiAction = "/payout.do" GetPaymentStatus NuveiAction = "/getPaymentStatus.do" GetPayoutStatus NuveiAction = "/getPayoutStatus.do" CreateUser NuveiAction = "/createUser.do" AddUPOByTempToken NuveiAction = "/addUPOCreditCardByTempToken.do" GetUPOs NuveiAction = "/getUserUPOs.do" DeleteUPO NuveiAction = "/deleteUPO.do" )
type OpenOrderResponse ¶
type PaymentMethod ¶
type PaymentMethod struct { UserPaymentOptionId string `json:"userPaymentOptionId"` PaymentMethodName string `json:"paymentMethodName"` UpoName string `json:"upoName"` UpoRegistrationDate string `json:"upoRegistrationDate"` UpoStatus string `json:"upoStatus,omitempty"` ExpiryDate string `json:"expiryDate"` BillingAddress BillingAddress `json:"billingAddress"` UpoData UpoData `json:"upoData"` UpoStatus1 string `json:"upoStatus ,omitempty"` }
type PaymentOption ¶
type PaymentOption struct { UserPaymentOptionId string `json:"userPaymentOptionId,omitempty"` Card Card `json:"card,omitempty"` AlternativePaymentMethod AlternativePaymentMethod `json:"alternativePaymentMethod,omitempty"` }
type PaymentResponse ¶
type PaymentResponse struct { Response OrderId string `json:"orderId"` TransactionStatus string `json:"transactionStatus"` CustomData string `json:"customData"` TransactionId string `json:"transactionId"` TransactionType string `json:"transactionType"` GwExtendedErrorCode int `json:"gwExtendedErrorCode"` GwErrorCode int `json:"gwErrorCode"` GwErrorReason string `json:"gwErrorReason"` ClientUniqueId string `json:"clientUniqueId"` PaymentOption PaymentOption `json:"paymentOption"` SessionToken string `json:"sessionToken"` UserTokenId string `json:"userTokenId"` ExternalTransactionId string `json:"externalTransactionId"` AuthCode string `json:"authCode"` FraudDetails FraudDetails `json:"fraudDetails"` }
type PaymentStatusResponse ¶
type PaymentStatusResponse struct { Response TransactionType string `json:"transactionType"` TransactionStatus string `json:"transactionStatus"` TransactionId string `json:"transactionId"` PaymentOption PaymentOption `json:"paymentOption"` Currency string `json:"currency"` Amount string `json:"amount"` SessionToken string `json:"sessionToken"` }
type PayoutResponse ¶
type PayoutResponse struct { Response UserTokenId string `json:"userTokenId"` ClientUniqueId string `json:"clientUniqueId"` TransactionId string `json:"transactionId"` ExternalTransactionId string `json:"externalTransactionId"` CardData CardData `json:"cardData"` TransactionStatus string `json:"transactionStatus"` MerchantDetails MerchantDetails `json:"merchantDetails"` UserPaymentOptionId string `json:"userPaymentOptionId"` PaymentMethodErrorCode string `json:"paymentMethodErrorCode"` PaymentMethodErrorReason string `json:"paymentMethodErrorReason"` GwErrorCode string `json:"gwErrorCode"` GwErrorReason string `json:"gwErrorReason"` GwExtendedErrorCode string `json:"gwExtendedErrorCode"` }
type PayoutStatusResponse ¶
type PayoutStatusResponse struct { Response UserTokenId string `json:"userTokenId"` TransactionId string `json:"transactionId"` Amount string `json:"amount"` Currency string `json:"currency"` TransactionStatus string `json:"transactionStatus"` UserPaymentOptionId string `json:"userPaymentOptionId"` GwErrorCode string `json:"gwErrorCode"` GwErrorReason string `json:"gwErrorReason"` GwExtendedErrorCode string `json:"gwExtendedErrorCode"` }
type Response ¶
type Response struct { InternalRequestId int `json:"internalRequestId"` Status string `json:"status"` ErrCode int `json:"errCode"` Reason string `json:"reason"` MerchantId string `json:"merchantId"` MerchantSiteId string `json:"merchantSiteId"` Version string `json:"version"` ClientRequestId string `json:"clientRequestId,omitempty"` }
type SessionToken ¶
type SessionToken struct {
SessionToken string `json:"sessionToken"`
}
type SessionTokenResponse ¶
type SubMerchant ¶
type ThreeD ¶
type ThreeD struct { BrowserDetails BrowserDetails `json:"browserDetails"` Version string `json:"version"` NotificationUrl string `json:"notificationUrl"` MerchantUrl string `json:"merchantUrl"` PlatformType string `json:"platformType"` V2AdditionalParams V2AdditionalParams `json:"v2AdditionalParams"` }
type UPOsResponse ¶
type UPOsResponse struct { Response PaymentMethods []PaymentMethod `json:"paymentMethods"` }
type UpoData ¶
type UpoData struct { CardType string `json:"cardType,omitempty"` CcCardNumber string `json:"ccCardNumber,omitempty"` CcCardNumberHash string `json:"ccCardNumberHash,omitempty"` CcExpMonth string `json:"ccExpMonth,omitempty"` CcExpYear string `json:"ccExpYear,omitempty"` CcNameOnCard string `json:"ccNameOnCard,omitempty"` CcToken string `json:"ccToken,omitempty"` Brand string `json:"brand,omitempty"` UniqueCC string `json:"uniqueCC,omitempty"` Bin string `json:"bin,omitempty"` Last4Digits string `json:"last4Digits,omitempty"` AccountId string `json:"account_id,omitempty"` }
type UserPaymentOption ¶
type UserPaymentOption struct {
UserPaymentOptionId string `json:"userPaymentOptionId"`
}
type V2AdditionalParams ¶
type V2AdditionalParams struct {
ChallengeWindowSize string `json:"challengeWindowSize"`
}
Click to show internal directories.
Click to hide internal directories.