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
};
07-08-2020 06:20 PM
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
};
08-09-2020 04:53 PM