Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
168
Issues
168
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
de39c72fdc06df3e34eea1c0c8ac8a6f670852d9...d443372999333fd0e14b29642dafee61247b55ee
Source
d443372999333fd0e14b29642dafee61247b55ee
Select Git revision
...
Target
de39c72fdc06df3e34eea1c0c8ac8a6f670852d9
Select Git revision
Compare
Commits (4)
(fix): export account not merchant
· 2ba461cf
Mark Harding
authored
2 hours ago
2ba461cf
(fix): set API key for stripe OO instances
· 959d2470
Mark Harding
authored
2 hours ago
959d2470
(fix): minor patches to stripe connect module
· 1c39ee43
Mark Harding
authored
2 hours ago
1c39ee43
(fix): pass arguments not array
· d4433729
Mark Harding
authored
2 hours ago
d4433729
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
6 deletions
+17
-6
StaticToInstance.php
Common/StaticToInstance.php
+2
-2
usd.php
Controllers/api/v2/wallet/usd.php
+1
-1
PaymentsProvider.php
Core/Payments/PaymentsProvider.php
+6
-0
Account.php
Core/Payments/Stripe/Connect/Account.php
+1
-0
Manager.php
Core/Payments/Stripe/Connect/Manager.php
+1
-1
AccountInstance.php
Core/Payments/Stripe/Instances/AccountInstance.php
+6
-2
No files found.
Common/StaticToInstance.php
View file @
d4433729
...
...
@@ -33,7 +33,7 @@ class StaticToInstance
public
function
__call
(
$method
,
$arguments
)
{
$instance
=
$this
->
class
->
newInstanceWithoutConstructor
();
return
$instance
::
$method
(
$arguments
);
return
$instance
::
$method
(
...
$arguments
);
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Controllers/api/v2/wallet/usd.php
View file @
d4433729
...
...
@@ -59,7 +59,7 @@ class usd implements Interfaces\Api
]);
}
$response
[
'
merchant'
]
=
$mercha
nt
->
export
();
$response
[
'
account'
]
=
$accou
nt
->
export
();
break
;
}
...
...
This diff is collapsed.
Click to expand it.
Core/Payments/PaymentsProvider.php
View file @
d4433729
...
...
@@ -51,5 +51,11 @@ class PaymentsProvider extends Provider
$config
=
$di
->
get
(
'Config'
);
return
new
Stripe\Stripe
(
$di
->
get
(
'Config'
));
},
[
'useFactory'
=>
true
]);
// Stripe
$this
->
di
->
bind
(
'Stripe\Connect\Manager'
,
function
(
$di
)
{
return
new
Stripe\Connect\Manager
();
},
[
'useFactory'
=>
true
]);
}
}
This diff is collapsed.
Click to expand it.
Core/Payments/Stripe/Connect/Account.php
View file @
d4433729
...
...
@@ -116,6 +116,7 @@ class Account
'destination'
,
'status'
,
'verified'
,
'bankAccount'
,
];
/**
...
...
This diff is collapsed.
Click to expand it.
Core/Payments/Stripe/Connect/Manager.php
View file @
d4433729
...
...
@@ -22,7 +22,7 @@ class Manager
public
function
__construct
(
Save
$save
=
null
,
NotificationDelegate
$notificationDelegate
=
null
,
AccountInstance
$accountInstance
AccountInstance
$accountInstance
=
null
)
{
$this
->
save
=
$save
?:
new
Save
();
...
...
This diff is collapsed.
Click to expand it.
Core/Payments/Stripe/Instances/AccountInstance.php
View file @
d4433729
...
...
@@ -2,6 +2,8 @@
namespace
Minds\Core\Payments\Stripe\Instances
;
use
Minds\Common\StaticToInstance
;
use
Minds\Core\Config\Config
;
use
Minds\Core\Di\Di
;
/**
* @method AccountInstance create()
...
...
@@ -10,9 +12,11 @@ use Minds\Common\StaticToInstance;
class
AccountInstance
extends
StaticToInstance
{
public
function
__construct
()
public
function
__construct
(
Config
$config
=
null
)
{
$config
=
$config
??
Di
::
_
()
->
get
(
'Config'
);
\Stripe\Stripe
::
setApiKey
(
$config
->
get
(
'payments'
)[
'stripe'
][
'api_key'
]);
$this
->
setClass
(
new
\Stripe\Account
);
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.