diff --git a/customer_profile.go b/customer_profile.go index 9f9310b..3bad4d9 100644 --- a/customer_profile.go +++ b/customer_profile.go @@ -166,7 +166,7 @@ func CreateProfile(profile Profile) (*CustomProfileResponse, error) { CreateCustomerProfile: CreateCustomerProfile{ MerchantAuthentication: GetAuthentication(), Profile: profile, - ValidationMode: testMode, + //ValidationMode: testMode, }, } jsoned, err := json.Marshal(action) @@ -335,7 +335,7 @@ type CreateCustomerProfileRequest struct { type CreateCustomerProfile struct { MerchantAuthentication MerchantAuthentication `json:"merchantAuthentication"` Profile Profile `json:"profile"` - ValidationMode string `json:"validationMode"` + ValidationMode string `json:"validationMode,omitempty"` } type CustomerProfiler struct { @@ -428,6 +428,7 @@ type GetShippingProfiles struct { type GetPaymentProfiles struct { CustomerPaymentProfileID string `json:"customerPaymentProfileId"` + DefaultPaymentProfile bool `json:"defaultPaymentProfile"` Payment struct { CreditCard struct { CardNumber string `json:"cardNumber"` diff --git a/payment_transactions.go b/payment_transactions.go index 6631d58..9b9dd18 100644 --- a/payment_transactions.go +++ b/payment_transactions.go @@ -158,6 +158,7 @@ type TranxResponse struct { TestRequest string `json:"testRequest"` AccountNumber string `json:"accountNumber"` AccountType string `json:"accountType"` + Profile Profile `json:"profile"` Errors []struct { ErrorCode string `json:"errorCode"` ErrorText string `json:"errorText"`