I am trying to create payment profile and set email in billing data.
My request (I tried to set email in billTo as below):
{
"createCustomerPaymentProfileRequest": {
"merchantAuthentication": {
"name": "###",
"transactionKey": "###"
},
"customerProfileId": "###",
"paymentProfile": {
"billTo": {
"firstName": "Jon3",
"lastName": "Smith",
"address": "123 Main St.",
"city": "Bellevue",
"state": "WA",
"zip": "98004",
"country": "US",
"phoneNumber": "000-000-0000",
"email": "mytest@test.com"
},
"payment": {
"creditCard": {
"cardNumber": "4111111111111111",
"expirationDate": "2023-12"
}
},
"defaultPaymentProfile": false
},
"validationMode": "testMode"
}
}
I noticed that response contains different email than I porovided: "email@example.com" vs "mytest@test.com"
{
"customerProfileId": "###",
"customerPaymentProfileId": "###",
"validationDirectResponse": "1,1,1,(TESTMODE) This transaction has been approved.,000000,P,0,none,Test transaction for ValidateCustomerPaymentProfile.,1.00,CC,auth_only,none,Jon3,Smith,,123 Main St.,Bellevue,WA,98004,US,000-000-0000,,email@example.com,,,,,,,,,0.00,0.00,0.00,FALSE,none,,,,,,,,,,,,,,XXXX1111,Visa,,,,,,,,,,,,,,,,,",
"messages": {
"resultCode": "Ok",
"message": [
{
"code": "I00001",
"text": "Successful."
}
]
}
}
Different email is also visible in notification:
==== CUSTOMER BILLING INFORMATION ===
Customer ID : none
First Name : Jon3
Last Name : Smith
Company :
Address : 123 Main St.
City : Bellevue
State/Province : WA
Zip/Postal Code : 98004
Country : US
Phone : 000-000-0000
Fax :
E-Mail : email@example.com
The issue is "email@example.com" is set even if I don't provide any email in my request.
Can anyone help me with setting email in billing data of payment profile, and overwriting "email@example.com" email set by default?
โ09-05-2022 05:55 AM