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
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.
we'll contact you for the further assitance.
@ninomartini , thanks for your feedback. it'll be fixed in the next release.
closing the issue, you can always reopen if you need help on the same issue.
closing the issue, you can reopen if you need help again.
for the shared entities like Vehicles; don't add IMultiTenant interface. if you are joining a MultiTenant entity with Non-MultiTenant entity you can disable MultiTenancy for that particular query.
public async Task<long> GetOnSaleVehiclesCountAsync()
{
using (_dataFilter.Disable<IMultiTenant>())
{
// some query with multitenant entities included.
}
}
https://docs.abp.io/en/abp/latest/Multi-Tenancy#data-filtering-disable-the-multi-tenancy-filter