mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
added new base uri
This commit is contained in:
parent
ff448b218c
commit
0cfe656ecd
@ -7,6 +7,7 @@ public class StripePaymentServiceProvider:IPaymentService
|
|||||||
{
|
{
|
||||||
private readonly IConfiguration _configuration;
|
private readonly IConfiguration _configuration;
|
||||||
private readonly string _apiKey;
|
private readonly string _apiKey;
|
||||||
|
private readonly string _baseUiUrl;
|
||||||
|
|
||||||
|
|
||||||
public StripePaymentServiceProvider(IConfiguration configuration)
|
public StripePaymentServiceProvider(IConfiguration configuration)
|
||||||
@ -14,6 +15,7 @@ public class StripePaymentServiceProvider:IPaymentService
|
|||||||
_configuration = configuration;
|
_configuration = configuration;
|
||||||
_apiKey = _configuration.GetValue<string>("Stripe:ApiKey");
|
_apiKey = _configuration.GetValue<string>("Stripe:ApiKey");
|
||||||
StripeConfiguration.ApiKey = _apiKey;
|
StripeConfiguration.ApiKey = _apiKey;
|
||||||
|
_baseUiUrl = _configuration.GetValue<string>("UI:BaseUrl");
|
||||||
}
|
}
|
||||||
|
|
||||||
public string CreateCustomer()
|
public string CreateCustomer()
|
||||||
@ -70,8 +72,8 @@ public class StripePaymentServiceProvider:IPaymentService
|
|||||||
var options = new AccountLinkCreateOptions
|
var options = new AccountLinkCreateOptions
|
||||||
{
|
{
|
||||||
Account = accountId,
|
Account = accountId,
|
||||||
RefreshUrl = "https://example.com/reauth",
|
RefreshUrl = $"{_baseUiUrl}/artistDashboard",
|
||||||
ReturnUrl = "https://example.com/return",
|
ReturnUrl = $"{_baseUiUrl}/artistDashboard",
|
||||||
Type = "account_onboarding",
|
Type = "account_onboarding",
|
||||||
};
|
};
|
||||||
var service = new AccountLinkService();
|
var service = new AccountLinkService();
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
"UI": {
|
||||||
|
"BaseUrl": "http://localhost:3000"
|
||||||
|
},
|
||||||
"Database": {
|
"Database": {
|
||||||
"Database": "comissionsapp",
|
"Database": "comissionsapp",
|
||||||
"Host": "localhost",
|
"Host": "localhost",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user