Cant create order with transaction details using API

Hi to all,

I can create an order without transaction it placed in my test merchant account and also able to view the order in my simulator device. But If I add transaction information like card details and amounts with in order it will not work. I have received this error message No record found for the business < businessId >.

I want to proceed an order with debit and credit card payments through API. I don’t know python my whole script in PHP.

In our application we send only card number,expiry date with cvv and amount is enough to create transactions for particular order id?

I don’t have clear idea what are the values, have to send to the corresponding attributes.

My sample json code below. If any parameters wrong and let me know.
{
“items”:[
{
“name”:“Coffee”,
“status”:“FULFILLED”,
“quantity”:“1.0”,
“unitOfMeasure”:“EACH”,
“unitPrice”:150,
“sku”:“082011500006”
}
],
“context”:{
“source”:“WEB”,
“businessId”:"",
“storeId”:"",
“storeDeviceId”:""
},
“amounts”:{
“currency”:“USD”,
“subTotal”:“150”,
“discountTotal”:“0”,
“taxTotal”:“0”,
“netTotal”:“150”
},
“statuses”:{
“transactionStatusSummary”:“COMPLETED”,
“fulfillmentStatus”:“FULFILLED”,
“status”:“OPENED”
},
“transactions”:[
{
“amounts”:{
“currency”:“USD”,
“transactionAmount”:“150”,
“orderAmount”:“150”
},
“action”:“SALE”,
“status”:“AUTHORIZED”,
“TransactionReference”:{
“type”:“POYNT_ORDER”
},
“references”:[
{
“type”:“CUSTOM”
}
],
“signatureCaptured”:false,
“adjusted”:false,
“authOnly”:false,
“voided”:false,
“context”:{
“businessType”:“TEST_MERCHANT”,
“transactionInstruction”:“EXTERNALLY_PROCESSED”,
“storeDeviceId”:"",
“mcc”:"",
“mid”:"",
“tid”:"",
“source”:“WEB”,
“businessId”:"",
“storeId”:""
},
“fundingSource”:{
“debit”:"",
“card”:{
“type”:“VISA”,
“status”:“ACTIVE”,
“expirationMonth”:“12”,
“expirationYear”:“2017”,
“numberFirst6”:“424242”,
“numberLast4”:“4242”,
“numberMasked”:“4242424242424242”
},
“entryDetails”:{
“customerPresenceStatus”:“PRESENT”,
“entryMode”:“KEYED”
},
“type”:“CREDIT_DEBIT”,
“verificationData”:{
“cvData”:“012”
}
},
“processorResponse”:{
“processor”:“MONERIS”,
“acquirer”:“MONERIS”,
“approvedAmount”:“150”
}
}
]
}

Hi Suresh,

You need to do a few things:

  1. Remove transaction information from the order. You should never need to set it there.
  2. Make sure your Order context has business id, store id and storeDeviceId. If the order is externally_processed you should use your appId as the value of “storeDeviceId”

@dennis
@suresh.s
I am trying to do the same thing for payment gateway. Did you created the order with transaction details using api