cancel
Showing results for 
Search instead for 
Did you mean: 

.NET SDK transactionRequestType does not have any field for the customerProfileBaseType

I am trying to create a customer profile from a transaction request.
When I specify createProfile = true to the customerProfilePaymentType I get E00102 (Customer Info is Missing).

 

However, there is no way to specify that customer info. There is no field with a transactionRequestType that is there to receive the email and descripton of the customer (customerProfileBaseType).

 

What am I missing?

Thanks

 

---------------------

 

var transactionRequest = new transactionRequestType
{
transactionType = tType,
amount = amount,
payment = paymentType,
profile = profileToCreate
};

FDJDEV
Member
1 REPLY 1

In case someone else stumbles on this issue, the solution is to provide the customer field.
There is no customerProfilePaymentType , but a customerDataType that is being accepted for the customer fiels.
When doing so, the create profile will work an return a profile Id and paymentProfileListId.

 

Here are the steps missing to the original code:

 

var customerProfile = new customerDataType
{
id = "A unique id",
email = email,
type = customerTypeEnum.individual
};

var transactionRequest = new transactionRequestType
{
transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
amount = amount,
payment = paymentType,
profile = profileToCreate,
customer = customerProfile
};

FDJDEV
Member