bank prod url added

migrate_to_ns
suvaysov 2022-03-29 09:22:06 +06:00
parent ccd668a5c9
commit d39baca7c2
1 changed files with 2 additions and 2 deletions

View File

@ -73,8 +73,8 @@ class ApiService extends BaseService {
print(hash); print(hash);
Map<String, String> requestBody = <String, String>{'login': login, 'hash': hash}; Map<String, String> requestBody = <String, String>{'login': login, 'hash': hash};
//var response = await requestFormData('/halykpos/gettoken', requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false); String pointUrl = test ? '/hb/pos/gettoken' : '/halykpos/gettoken';
var response = await requestFormData('/hb/pos/gettoken', requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false); var response = await requestFormData(pointUrl, requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false);
print(response); print(response);
return HalykPosSession.fromJson(jsonDecode(response)); return HalykPosSession.fromJson(jsonDecode(response));
} }