mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-22 15:19:11 +00:00
api.php/route -> api.php?ROUTE=route
This commit is contained in:
parent
c8f843c38c
commit
51a9c7e961
1 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ class SimplexAPI {
|
||||||
: "${quote.youReceiveCryptoAmount}",
|
: "${quote.youReceiveCryptoAmount}",
|
||||||
};
|
};
|
||||||
// TODO add USER_ID
|
// TODO add USER_ID
|
||||||
Uri url = Uri.http('localhost', 'api.php/quote', data);
|
Uri url = Uri.http('localhost', 'api.php', data);
|
||||||
// TODO update to stackwallet.com hosted API and use HTTPS
|
// TODO update to stackwallet.com hosted API and use HTTPS
|
||||||
|
|
||||||
var res = await http.post(url, headers: headers, body: json.encode(data));
|
var res = await http.post(url, headers: headers, body: json.encode(data));
|
||||||
|
@ -193,7 +193,7 @@ class SimplexAPI {
|
||||||
};
|
};
|
||||||
// TODO add USER_ID
|
// TODO add USER_ID
|
||||||
|
|
||||||
Uri url = Uri.http('localhost', 'api.php/order', data);
|
Uri url = Uri.http('localhost', 'api.php', data);
|
||||||
// TODO update to stackwallet.com hosted API and use HTTPS
|
// TODO update to stackwallet.com hosted API and use HTTPS
|
||||||
var res = await http.post(url, headers: headers, body: json.encode(data));
|
var res = await http.post(url, headers: headers, body: json.encode(data));
|
||||||
if (res.statusCode != 200) {
|
if (res.statusCode != 200) {
|
||||||
|
@ -224,7 +224,7 @@ class SimplexAPI {
|
||||||
try {
|
try {
|
||||||
bool status = await launchUrl(
|
bool status = await launchUrl(
|
||||||
Uri.parse(
|
Uri.parse(
|
||||||
"http://localhost/api.php/redirect?PAYMENT_ID=${order.paymentId}"),
|
"http://localhost/api.php?ROUTE=redirect&PAYMENT_ID=${order.paymentId}"),
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue