I guess you don't need to put GetUnitCategoryLookupAsync
into AppOrganizationUnitController
. You can create a new controller. Can you try it.
hi
In the current version, there's automatic way of making a combobox for navigation property. But it's in our roadmap.
AppOrganizationUnitController has not been registered
this exception is weird! because AppOrganizationUnitController
is derived from OrganizationUnitController
which is derived from AbpController
. so it must be already registered to the DI system.
public class OrganizationUnitController : AbpController, IOrganizationUnitAppService, IApplicationService, IRemoteService
did you create the controller in *.HttpApi
How do I issse a payment to 2Checkout from an order line?
This is a sample appsettings.json (web) configuration for the payment module:
"Payment": {
"TwoCheckout": {
"Signature": "SECRET_KEY",
"CheckoutUrl": "https://secure.2checkout.com/order/checkout.php",
"LanguageCode": "en",
"CurrencyCode": "USD",
"TestOrder": "1",
"ExtraInfos": [
"2Checkout may add VAT/TAX to the price."
]
}
}
in your purchase page you can place an order like this:
public class IndexModel : PageModel
{
Inject
private readonly IPaymentRequestAppService _paymentRequestAppService;
public virtual async Task<IActionResult> OnPost()
{
var paymentRequestDto = new PaymentRequestCreateDto
{
ExtraProperties = new Dictionary<string, object>
{
{
"two-checkout",
new TwoCheckoutPaymentRequestExtraParameterConfiguration
{
Currency = "USD",
AdditionalCallbackParameters = "s=1"
}
},
{
"stripe",
new StripePaymentRequestExtraParameterConfiguration
{
Currency = "EUR",
Locale = "it",
PaymentMethodTypes = new List<string>()
{
"alipay",
"sofort"
},
AdditionalCallbackParameters = "s=1"
}
},
{
PayPalConsts.GatewayName,
new PayPalPaymentRequestExtraParameterConfiguration
{
CurrencyCode = "EUR",
Locale = "en",
AdditionalCallbackParameters = "s=1"
}
}
}
};
}
paymentRequestDto.Products.Add(new PaymentRequestProductCreateDto
{
Code = "002",
Count = 1,
Name = "Premium Edition",
UnitPrice = 300,
TotalPrice = 300,
ExtraProperties = new Dictionary<string, IPaymentRequestProductExtraParameterConfiguration>
{
{
"two-checkout",
new TwoCheckoutPaymentRequestProductExtraParameterConfiguration
{
ProductCode = "1111111"
}
}
}
});
//...
var paymentRequest = await _paymentRequestAppService.CreateAsync(paymentRequestDto);
return LocalRedirectPreserveMethod("/Payment/GatewaySelection?paymentRequestId=" + paymentRequest.Id);
hi,
See this doc that explains how to switch btw database providers https://docs.abp.io/en/abp/latest/Entity-Framework-Core-Other-DBMS
There's a parameter in ABP CLI --template-source
. This parameter allows you to generate a project from your own template.
What you need to to do is, download a new app-pro template with the name MyCompanyName.MyProjectName
Make your customizations on it.
Then zip it.
Put it in a folder like c:\MyAbpTemplates
Create a new project according to your requirements based on your own template.
abp new Acme.BookStore -t app-pro -u mvc --mobile none --database-provider ef --template-source c:\MyAbpTemplates
Update the ABP CLI:
dotnet tool update -g Volo.Abp.Cli
Update the ABP Suite:
abp suite update
It's now preview version. The production will be released on 2020-10-28
hi cropper issue is a known issue. see the blog post https://blog.abp.io/abp/ABP-Framework-ABP-Commercial-v3.3-RC-Have-Been-Released basically
When you create a new project, profile management doesn't work, you get an exception because it can't find the /libs/cropperjs/css/cropper.min.css file. To fix the issue;
Add "@volo/account": "^3.3.0-rc.1" to the package.json in the .Host project. Run yarn (or npm install), then gulp on a command line terminal in the root folder of the .Host project.
we created an internal issue for this and will be fixed in v4.0.
PS: v3.3 Preview released now. then v4.0 will be released
Stream support for the application service methods has been completed. You can test the preview version of 3.3.0
https://github.com/abpframework/abp/blob/dev/docs/en/Blog-Posts/2020-10-15%20v3_3_Preview/POST.md#stream-support-for-the-application-service-methods
The production version will be released 2 weeks later.
ABP has integrated Google reCaptcha. I want to enable reCaptcha. How to enable it?
we'll contact you for the further assitance.