Closed whatcould closed 7 years ago
Actually, now that I look closer at this, CustomerType
isn't even the right one to use for createTransactionRequest
. That doesn't become apparent until you start trying to pass more parameters, though. When you do, the request returns an error because it's sending field names that don't match the schema.
I've switched it to CustomerDataType
which also takes email as the third parameter.
CustomerType takes the ID as second parameter and email as third parameter; this sample code, sending the email as the ID, works in the sandbox (inexplicably), but fails in production, where it returns an error — "The actual length is greater than the MaxLength value".