- Add checkout request/response bridge and workspace re-hydration in store UI - Implement server-side checkout stores for charging bank/cash and granting locker/VA items - Normalize catalog/cart payload categories and fix locker VA sync event naming
11 lines
361 B
Plaintext
11 lines
361 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if (isNil QGVAR(StoreClass)) then { call FUNC(initStoreClass); };
|
|
if (isNil QGVAR(StoreUIBridge)) then { call FUNC(initStoreUIBridge); };
|
|
|
|
[QGVAR(responseCheckout), {
|
|
params [["_payload", createHashMap, [createHashMap]]];
|
|
|
|
GVAR(StoreUIBridge) call ["handleCheckoutResponse", [_payload]];
|
|
}] call CFUNC(addEventHandler);
|