Code: Select all
put "ABCD" into clientId
put "1234" into clientSecret
put "Authorization: Basic" && base64Encode("clientId:clientSecret") && "Content-Type: application/json"&& "Cache-Control: no-cache" into tHeader
set the httpHeaders to tHeader
post receiveMomoRequest to url "https://server/v1/merchantaccount/merchants/HMXXXXXX/receive"