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
79357a53
Commit
79357a53
authored
36 minutes ago
by
Mark Harding
Browse files
Options
Download
(fix): email and url still not being provided
parent
50321c92
fix/stripe-requirements
1 merge request
!420
Additional stripe steps and ability to add phone number
Pipeline
#102362845
failed with stages
in 44 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
Core/Payments/Stripe/Connect/Account.php
View file @
79357a53
...
...
@@ -24,6 +24,10 @@ use Minds\Traits\MagicAttributes;
* @method Account getSSN(): string
* @method Account getPersonalIdNumber(): string
* @method Account getUser(): User
* @method string getEmail()
* @method Account setEmail(string $email)
* @method string getUrl()
* @method Account setUrl(string $url)
*/
class
Account
{
...
...
@@ -47,6 +51,9 @@ class Account
/** @var string $email */
private
$email
;
/** @var string $url */
private
$url
;
/** @var string $dob */
private
$dob
;
...
...
This diff is collapsed.
Core/Payments/Stripe/Connect/Manager.php
View file @
79357a53
...
...
@@ -81,6 +81,14 @@ class Manager
$data
[
'individual'
][
'gender'
]
=
$account
->
getGender
();
}
if
(
$account
->
getEmail
())
{
$data
[
'individual'
][
'email'
]
=
$account
->
getEmail
();
}
if
(
$account
->
getUrl
())
{
$data
[
'business_profile'
][
'url'
]
=
$account
->
getUrl
();
}
if
(
$account
->
getPhoneNumber
())
{
$data
[
'individual'
][
'phone'
]
=
"+"
.
$account
->
getPhoneNumber
();
}
...
...
This diff is collapsed.
Spec/Core/Payments/Stripe/Connect/ManagerSpec.php
View file @
79357a53
...
...
@@ -64,6 +64,10 @@ class ManagerSpec extends ObjectBehavior
->
willReturn
(
null
);
$account
->
getPersonalIdNumber
()
->
willReturn
(
null
);
$account
->
getEmail
()
->
willReturn
(
'test@minds.com'
);
$account
->
getUrl
()
->
willReturn
(
'https://minds.com/test'
);
$this
->
accountInstance
->
create
(
Argument
::
any
())
->
shouldBeCalled
()
...
...
This diff is collapsed.
Please
register
or
sign in
to comment