Hello,
You will send data to ecommerce server and you need to say return link (Should be unigui server)
OnHttpCommand you will get result and rest of it regular json parse.
https://stackoverflow.com/questions/14864170/how-to-parse-a-json-array-in-rad-studio
Can you test this
with WebForm, JSInterface do
begin
JSCallGlobal('Ext.util.CSS.createStyleSheet',['#'+WebForm.JSName+'_id .x-css-shadow { box-shadow: none !important;}']);
end;
Let's say you have TUniForm1 and Main.
Add this to TUniForm1
initialization
RegisterClass(TUniForm1);
Then you can create a form with this code
procedure TMainForm.UniButton1Click(Sender: TObject);
var
FrC : TUniFormClass;
Fr : TUniForm;
FClassName : string;
begin
FClassName := 'TUniForm1';
FrC := TUniFormClass(FindClass(FClassName));
Fr:=FrC.Create(UniApplication);
Fr.ShowModal;
end;
To set item in local storage
JSCallGlobal('localStorage.setItem', ["lastname", "Smith"]);
Then you can use it in client side
var lastname = localStorage.getItem("lastname");
to remove item
JSCallGlobal('localStorage.removeItem', ["lastname"]);