Documentation ¶
Index ¶
- func AuthorizeCard(creditCard CreditCardCVV, amount string) (map[string]interface{}, bool, bool)
- func CreateCustomerBillingProfile(profileID string, creditCard CreditCard, address Address) (string, map[string]interface{}, bool)
- func CreateCustomerProfile(userInfo AuthUser) (string, map[string]interface{}, bool)
- func CreateShippingAddress(profileID string, address Address) (string, bool)
- func CreateSubscription(newSubscription Subscription) (string, bool)
- func CreateTransaction(profileID string, paymentID string, item LineItem, amount string) (map[string]interface{}, bool, bool)
- func DeleteCustomerPaymentProfile(profileID string, paymentID string) bool
- func DeleteCustomerProfile(profileID string) bool
- func DeleteShippingAddress(profileID string, shippingID string) bool
- func DeleteSubscription(subscriptionId string) bool
- func FindResultCode(incoming map[string]interface{}) bool
- func GetAllProfiles() []interface{}
- func GetCustomerPaymentProfile(profileID string, paymentID string) (map[string]interface{}, bool)
- func GetCustomerProfile(profileID string) (map[string]interface{}, bool)
- func GetShippingAddress(profileID string, shippingID string) (map[string]interface{}, bool)
- func GetSubscriptions()
- func GetTransactionDetails(tranID string) map[string]interface{}
- func RefundTransaction(transactionId string, amount string, creditCardLastFour string, cardExp string) (map[string]interface{}, bool, bool)
- func SendRequest(input string) (map[string]interface{}, interface{})
- func SetAPIInfo(name string, key string, mode string)
- func TestConnection() bool
- func TransactionApproved(incoming map[string]interface{}) bool
- func UpdateCustomerPaymentProfile(profileID string, paymentID string, creditCard CreditCard, address Address) bool
- func UpdateSubscription()
- func VoidTransaction(transactionId string) bool
- type ARBCreateSubscription
- type Address
- type AllCustomerProfileIds
- type AuthUser
- type AuthenticateTestRequest
- type AuthorizeNetTest
- type AuthorizeTransactionRequest
- type AuthorizeTransactionRequestARB
- type BillTo
- type BillingProfile
- type CreateAuthorizeTransactionRequest
- type CreateCustomerBillingProfileRequest
- type CreateCustomerProfileRequest
- type CreateRefundTransactionRequest
- type CreateSubscriptionRequest
- type CreateTransactionRequest
- type CreditCard
- type CreditCardCVV
- type CustomerPaymentProfileRequest
- type CustomerProfile
- type CustomerShippingAddress
- type CustomerShippingAddressRequest
- type DeleteARBSubscriptionRequest
- type DeleteCustomerShippingAddressRequest
- type DeleteSubscriptionRequest
- type DoCreateTransaction
- type DoRefundTransaction
- type FullProfile
- type GetCustomerShippingAddress
- type GetCustomerShippingAddressRequest
- type Interval
- type LineItem
- type LineItems
- type MerchantAuthentication
- type MinTrans
- type NewCustomerBillingProfile
- type NewCustomerProfile
- type Payment
- type PaymentBillingProfile
- type PaymentCVV
- type PaymentProfiles
- type PaymentSchedule
- type Profile
- type RefundTransactionRequest
- type SubProfile
- type Subscription
- type TranProfile
- type TransactionDetails
- type TransactionDetailsRequest
- type TransactionMessages
- type TransactionRecord
- type TransactionRequest
- type TransactionResponse
- type UpdatePaymentBillingProfile
- type User
- type VoidTransactionRequest
- type VoidTransactionRequestARB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeCard ¶
func AuthorizeCard(creditCard CreditCardCVV, amount string) (map[string]interface{}, bool, bool)
func CreateCustomerProfile ¶
func CreateShippingAddress ¶
func CreateSubscription ¶
func CreateSubscription(newSubscription Subscription) (string, bool)
func CreateTransaction ¶
func DeleteCustomerProfile ¶
func DeleteShippingAddress ¶
func DeleteSubscription ¶
func FindResultCode ¶
func GetAllProfiles ¶
func GetAllProfiles() []interface{}
func GetCustomerProfile ¶
func GetShippingAddress ¶
func GetSubscriptions ¶
func GetSubscriptions()
func GetTransactionDetails ¶
func RefundTransaction ¶
func SendRequest ¶
func SetAPIInfo ¶
func TestConnection ¶
func TestConnection() bool
func TransactionApproved ¶
func UpdateCustomerPaymentProfile ¶
func UpdateCustomerPaymentProfile(profileID string, paymentID string, creditCard CreditCard, address Address) bool
func UpdateSubscription ¶
func UpdateSubscription()
func VoidTransaction ¶
Types ¶
type ARBCreateSubscription ¶
type ARBCreateSubscription struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` Subscription Subscription `json:"subscription"` }
type AllCustomerProfileIds ¶
type AllCustomerProfileIds struct {
CustomerProfileIdsRequest getCustomerProfileIdsRequest `json:"getCustomerProfileIdsRequest"`
}
type AuthenticateTestRequest ¶
type AuthenticateTestRequest struct {
MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"`
}
type AuthorizeNetTest ¶
type AuthorizeNetTest struct {
AuthenticateTestRequest AuthenticateTestRequest `json:"authenticateTestRequest"`
}
type AuthorizeTransactionRequest ¶
type AuthorizeTransactionRequest struct { TransactionType string `json:"transactionType"` Amount string `json:"amount"` Payment PaymentCVV `json:"payment"` }
type AuthorizeTransactionRequestARB ¶
type AuthorizeTransactionRequestARB struct {
AuthorizeTransaction CreateAuthorizeTransactionRequest `json:"createTransactionRequest"`
}
type BillingProfile ¶
type BillingProfile struct { Address Address `json:"billTo"` PaymentProfile PaymentBillingProfile `json:"paymentProfile"` }
type CreateAuthorizeTransactionRequest ¶
type CreateAuthorizeTransactionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefID string `json:"refId"` AuthorizeTranx AuthorizeTransactionRequest `json:"transactionRequest"` }
type CreateCustomerBillingProfileRequest ¶
type CreateCustomerBillingProfileRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileId string `json:"customerProfileId"` Profile PaymentBillingProfile `json:"paymentProfile"` ValidationMode string `json:"validationMode"` }
type CreateCustomerProfileRequest ¶
type CreateCustomerProfileRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` Profile Profile `json:"profile"` }
type CreateRefundTransactionRequest ¶
type CreateRefundTransactionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefundTransactionRequest RefundTransactionRequest `json:"transactionRequest"` }
type CreateSubscriptionRequest ¶
type CreateSubscriptionRequest struct {
CreateSubscription ARBCreateSubscription `json:"ARBCreateSubscriptionRequest"`
}
type CreateTransactionRequest ¶
type CreateTransactionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` RefID string `json:"refId"` TransactionRequest TransactionRequest `json:"transactionRequest"` }
type CreditCard ¶
type CreditCardCVV ¶
type CustomerPaymentProfileRequest ¶
type CustomerPaymentProfileRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileId string `json:"customerProfileId"` CustomerPaymentProfileId string `json:"customerPaymentProfileId"` }
type CustomerProfile ¶
type CustomerProfile struct {
CustomerProfileRequest getCustomerProfileRequest `json:"getCustomerProfileRequest"`
}
type CustomerShippingAddress ¶
type CustomerShippingAddress struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileId string `json:"customerProfileId"` Address Address `json:"address"` }
type CustomerShippingAddressRequest ¶
type CustomerShippingAddressRequest struct {
CustomerShippingAddress CustomerShippingAddress `json:"createCustomerShippingAddressRequest"`
}
type DeleteARBSubscriptionRequest ¶
type DeleteARBSubscriptionRequest struct {
ARBCancelSubscriptionRequest DeleteSubscriptionRequest `json:"ARBCancelSubscriptionRequest"`
}
type DeleteCustomerShippingAddressRequest ¶
type DeleteCustomerShippingAddressRequest struct {
GetCustomerShippingAddress GetCustomerShippingAddress `json:"deleteCustomerShippingAddressRequest"`
}
type DeleteSubscriptionRequest ¶
type DeleteSubscriptionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` SubscriptionId string `json:"subscriptionId"` }
type DoCreateTransaction ¶
type DoCreateTransaction struct {
CreateTransactionRequest CreateTransactionRequest `json:"createTransactionRequest"`
}
type DoRefundTransaction ¶
type DoRefundTransaction struct {
CreateRefundTransactionRequest CreateRefundTransactionRequest `json:"createTransactionRequest"`
}
type FullProfile ¶
type GetCustomerShippingAddress ¶
type GetCustomerShippingAddress struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` CustomerProfileId string `json:"customerProfileId"` CustomerShippingId string `json:"customerAddressId"` }
type GetCustomerShippingAddressRequest ¶
type GetCustomerShippingAddressRequest struct {
GetCustomerShippingAddress GetCustomerShippingAddress `json:"getCustomerShippingAddressRequest"`
}
type MerchantAuthentication ¶
type NewCustomerBillingProfile ¶
type NewCustomerBillingProfile struct {
CreateCustomerProfileRequest CreateCustomerBillingProfileRequest `json:"createCustomerPaymentProfileRequest"`
}
type NewCustomerProfile ¶
type NewCustomerProfile struct {
CreateCustomerProfileRequest CreateCustomerProfileRequest `json:"createCustomerProfileRequest"`
}
type Payment ¶
type Payment struct {
CreditCard CreditCard `json:"creditCard"`
}
type PaymentBillingProfile ¶
type PaymentCVV ¶
type PaymentCVV struct {
CreditCard CreditCardCVV `json:"creditCard"`
}
type PaymentProfiles ¶
type PaymentSchedule ¶
type SubProfile ¶
type SubProfile struct {
CustomerPaymentProfileId string `json:"paymentProfileId"`
}
type Subscription ¶
type Subscription struct { Name string `json:"name"` PaymentSchedule PaymentSchedule `json:"paymentSchedule"` Amount string `json:"amount"` TrialAmount string `json:"trialAmount"` FullProfile FullProfile `json:"profile"` }
type TranProfile ¶
type TranProfile struct { CustomerProfileId string `json:"customerProfileId"` SubProfile SubProfile `json:"paymentProfile"` }
type TransactionDetails ¶
type TransactionDetails struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` TransId string `json:"transId"` }
type TransactionDetailsRequest ¶
type TransactionDetailsRequest struct {
TransactionDetails TransactionDetails `json:"getTransactionDetailsRequest"`
}
type TransactionMessages ¶
type TransactionMessages struct { }
type TransactionRecord ¶
type TransactionRecord struct { }
type TransactionRequest ¶
type TransactionRequest struct { TransactionType string `json:"transactionType"` Amount string `json:"amount"` TranProfile TranProfile `json:"profile"` LineItems LineItems `json:"lineItems"` }
type TransactionResponse ¶
type TransactionResponse struct { ResponseCode string `json:"responseCode"` AuthCode string `json:"authCode"` AvsResultCode string `json:"avsResultCode"` CvvResultCode string `json:"cvvResultCode"` CavvResultCode string `json:"cavvResultCode"` TransID string `json:"transId"` RefTransID string `json:"refTransID"` TransHash string `json:"transHash"` TestRequest string `json:"testRequest"` AccountNumber string `json:"accountNumber"` AccountType string `json:"accountType"` }
type User ¶
type User struct { ID string Email string ProfileID string BillingProfiles interface{} ShippingProfiles interface{} Subscriptions map[string]interface{} }
var CurrentUser User
type VoidTransactionRequest ¶
type VoidTransactionRequest struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` MinTrans MinTrans `json:"transactionRequest"` }
type VoidTransactionRequestARB ¶
type VoidTransactionRequestARB struct {
VoidTransaction VoidTransactionRequest `json:"createTransactionRequest"`
}
Click to show internal directories.
Click to hide internal directories.