Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions customer_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions payment_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down