Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
284
Merge Requests
38
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
71aeb10b
Commit
71aeb10b
authored
16 minutes ago
by
Mark Harding
Browse files
Options
Download
(fix): account info not being sent on create
parent
465c2658
fix/stripe-requirements
1 merge request
!420
Additional stripe steps and ability to add phone number
Pipeline
#102375434
passed with stages
in 6 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Controllers/api/v2/wallet/usd/account.php
View file @
71aeb10b
...
...
@@ -105,9 +105,11 @@ class account implements Interfaces\Api
$vars
=
Core\Router
::
getPutVars
();
$user
=
Core\Session
::
getLoggedInUser
();
$account
=
(
new
Payments\Stripe\Connect\Account
())
->
setUserGuid
(
Core\Session
::
getLoggedInUser
()
->
guid
)
->
setUser
(
Core\Session
::
getLoggedInUser
()
)
->
setUserGuid
(
$user
->
guid
)
->
setUser
(
$user
)
->
setDestination
(
'bank'
)
->
setCountry
(
$vars
[
'country'
])
->
setSSN
(
$vars
[
'ssn'
]
?
str_pad
((
string
)
$vars
[
'ssn'
],
4
,
'0'
,
STR_PAD_LEFT
)
:
''
)
...
...
@@ -121,7 +123,9 @@ class account implements Interfaces\Api
->
setState
(
$vars
[
'state'
])
->
setPostCode
(
$vars
[
'postCode'
])
->
setPhoneNumber
(
$vars
[
'phoneNumber'
])
->
setIp
(
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
]);
->
setIp
(
$_SERVER
[
'HTTP_X_FORWARDED_FOR'
])
->
setEmail
(
$user
->
getEmail
())
->
setUrl
(
$user
->
getURL
());
try
{
$stripeConnectManager
=
Core\Di\Di
::
_
()
->
get
(
'Stripe\Connect\Manager'
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment