I am using opaqueData from Accept JS. I need to charge the card and at the same time create a customer profile. The docs reccomend this approach. the following is my request payload:
{
"createTransactionRequest": {
"merchantAuthentication": {
"name": "some_name",
"transactionKey": "some_key"
},
"refId": "123456",
"transactionRequest": {
"transactionType": "authCaptureTransaction",
"amount": "20.00",
"payment": {
"opaqueData": {
"dataDescriptor": "COMMON.ACCEPT.INAPP.PAYMENT",
"dataValue": "some_data"
}
},
"profile": {
"createProfile": "true"
},
"customer": {
"type": "individual",
"id": "1",
"email": "test@test.com"
},
"billTo": {
"firstName": "Ellen",
"lastName": "Johnson",
"company": "Souveniropolis",
"address": "14 Main Street",
"city": "Pecan Springs",
"state": "TX",
"zip": "44628",
"country": "USA"
}
}
}
}and what i get back is :
{"transactionResponse"=>
{"responseCode"=>"1",
"authCode"=>"000000",
"avsResultCode"=>"P",
"cvvResultCode"=>"",
"cavvResultCode"=>"",
"transId"=>"0",
"refTransID"=>"",
"transHash"=>"",
"testRequest"=>"1",
"accountNumber"=>"XXXX1111",
"accountType"=>"Visa",
"messages"=>[{"code"=>"1", "description"=>"This transaction has been approved."}],
"transHashSha2"=>
"76743D19EB73F0EC73C22B71FFAC00D9507821AF225901BE8B9DD7767774C304D096D1A09E1B39995B3F9A5A894C1085E4B001BF83A4CF9C574651257F40E648",
"SupplementalDataQualificationIndicator"=>0},
"profileResponse"=>{"messages"=>{"resultCode"=>"Error", "message"=>[{"code"=>"E00114", "text"=>"Invalid OTS Token."}]}},
"refId"=>"",
"messages"=>{"resultCode"=>"Ok", "message"=>[{"code"=>"I00001", "text"=>"Successful."}]}}Notice the message in the profileResponse... I'm a bit perplexed...
Any Ideas?
โ03-20-2020 12:52 PM
Thanks for the solution waiting since 2 months ,
โ05-24-2020 02:53 AM