hi everyone
i am making an api call and i need to provide some json info inside the post data
postdata = st.getvalue()
posturl = 'api.testdata.payme'
net.post(posturl,postdata)
sample post data:
{
"order" : {
"amountOfMoney" : {
"currencyCode" : "USD",
"amount" : 2345
},
"customer" : {
"merchantCustomerId" : "1234",
"billingAddress" : {
"countryCode" : "US"
}
}
},
"hostedCheckoutSpecificInput" : {
"variant" : "testVariant",
"locale" : "en_GB"
}
}
usd, 234, 1234, US should be variables.
how do i put it inside string theory?
i have tried the following way but compiler gives error of misused of {{
st.setvalue('{order": {"amountOfMoney" : {"currencyCode" : "' & LOC:CurrencyCode & '","amount" : ' & LOC:Amount......&'}}'
regards,
Jason
nt11.53
c11