Commit 15e98723 by Giang Tran

setp call api

parent 1569ba22
...@@ -60,7 +60,7 @@ const Payment = (props) => { ...@@ -60,7 +60,7 @@ const Payment = (props) => {
VnpayMerchant.show({ VnpayMerchant.show({
iconBackName: 'ic_back', iconBackName: 'ic_back',
paymentUrl: paymentUrl:
'https://sandbox.vnpayment.vn/tryitnow/Home/CreateOrder', 'http://sandbox.vnpayment.vn/paymentv2/vpcpay.html?vnp_Amount=2500000&vnp_Command=pay&vnp_CreateDate=20210310143159&vnp_CurrCode=VND&vnp_IpAddr=172.69.134.207&vnp_Locale=vn&vnp_OrderInfo=Thanh+toan+goi+98003+gia+25000&vnp_OrderType=190002&vnp_ReturnUrl=http%3A%2F%2Fmy.dcvinvest.com%2Fapp-vnpay-return-url.html&vnp_TmnCode=ICTLIFE1&vnp_TxnRef=EC_98003_20210310143159&vnp_Version=2.0.0&vnp_SecureHashType=SHA256&vnp_SecureHash=f9a293f8e12eeae28172c90446f955dd9ba21ff2f9d2119574e0297542501563',
scheme: 'sampleapp', scheme: 'sampleapp',
tmn_code: 'FAHASA03', tmn_code: 'FAHASA03',
}); });
......
import {PostLogin,PostData} from '../helpers'; import {PostLogin, PostData} from '../helpers';
import url from '../url'; import url from '../url';
export const loginApi = async (body) => export const loginApi = async (body) =>
PostLogin('http://api.dcvinvest.com/api/auth/login', body) PostLogin(url.urllogin, body)
.then((res) => res) .then((res) => res)
.catch((err) => err); .catch((err) => err);
......
import {NetworkSetting} from '../config/Setting'; import {NetworkSetting} from '../config/Setting';
const root = 'http://api.dcvinvest.com/';
const root="http://api.dcvinvest.com/"
export default { export default {
urllogin:root+"api/auth/login", urllogin: root + '/api/auth/customer-login',
urllogout:root+"api/auth/logout",
urlListCustomer:root+'/api/v1/customers',
urlDetailCustomer:root+'/api/v1/customers/detail',
urlListWithdraw:root+'/api/v1/customers/get-list-request-withdraw',
urlGetListNotification:root+'api/v1/notifications',
urlListDeposit:root+'api/v1/customers/get-list-deposit',
urlDetailDeposit:root+'api/v1/customers/deposit-detail',
urlDetailWithdraw:root+'api/v1/customers/withdraw-detail',
urlReadNoti:root+'api/v1/notifications/update-read',
urlCountNoti:root+'api/v1/notifications/get-counter',
urlSummaryToDo:root+'api/v1/statistics/get-todo-summary',
}; };
...@@ -6129,7 +6129,7 @@ react-native-vector-icons@^8.0.0: ...@@ -6129,7 +6129,7 @@ react-native-vector-icons@^8.0.0:
prop-types "^15.7.2" prop-types "^15.7.2"
yargs "^16.1.1" yargs "^16.1.1"
react-native-vnpay-merchant@/Users/macbookpro/Documents/Company/ReactNative/Invest/node_modules/react-native-vnpay-merchant: "react-native-vnpay-merchant@file:node_modules/react-native-vnpay-merchant":
version "1.0.0" version "1.0.0"
react-native@0.62.2: react-native@0.62.2:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment