mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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}",
|
||||
};
|
||||
// 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
|
||||
|
||||
var res = await http.post(url, headers: headers, body: json.encode(data));
|
||||
|
@ -193,7 +193,7 @@ class SimplexAPI {
|
|||
};
|
||||
// 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
|
||||
var res = await http.post(url, headers: headers, body: json.encode(data));
|
||||
if (res.statusCode != 200) {
|
||||
|
@ -224,7 +224,7 @@ class SimplexAPI {
|
|||
try {
|
||||
bool status = await launchUrl(
|
||||
Uri.parse(
|
||||
"http://localhost/api.php/redirect?PAYMENT_ID=${order.paymentId}"),
|
||||
"http://localhost/api.php?ROUTE=redirect&PAYMENT_ID=${order.paymentId}"),
|
||||
mode: LaunchMode.externalApplication,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue