Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
15e98723
Commit
15e98723
authored
Mar 11, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setp call api
parent
1569ba22
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
19 deletions
+6
-19
Payment.js
src/Screens/Payment/Payment.js
+1
-1
users.js
src/apis/Functions/users.js
+2
-2
url.js
src/apis/url.js
+2
-15
yarn.lock
yarn.lock
+1
-1
No files found.
src/Screens/Payment/Payment.js
View file @
15e98723
...
@@ -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
:
'http
s://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'
,
});
});
...
...
src/apis/Functions/users.js
View file @
15e98723
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
);
...
...
src/apis/url.js
View file @
15e98723
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'
,
};
};
yarn.lock
View file @
15e98723
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment