Ends in:
1 DAY
4 HRS
4 MIN
11 SEC
Ends in:
1 D
4 H
4 M
11 S
Open Closed

Multiple questions - but mostly due to poor documentation for PRO only features #487


User avatar
1
Phiph created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: 32.1
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi there,

I'm trying to set up the 2PaymentGate way, but I'm struggling to follow your documentation. How do I issse a payment to 2Checkout from an order line?

I'm also struggling to configure file management, where exactly do I put my options in a teired application?

I'd love to see a new community post about these topics soon. As single seat license holder I do not have access to your source code, thus clear and detailed documentation is really helpful!

Thanks, P


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    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);
    
  • User Avatar
    0
    MILLENNIUM created

    I got this error after submitting the payment request:

    No webpage was found for the web address: https://localhost:44342/Payment/GatewaySelection?paymentRequestId=a9b3d199-9646-9251-64f3-39fbebed14a0

    I followed the steps : ABP Framework version: v4.3.0-rc.1 UI type: Angular ( but trying with MVC for now) DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no Steps to reproduce the issue: 1- I installed payment commercial module, 2- add migration and then migrated db 3- setup appsettings for payment providers 4- added an action as sample suggested: https://docs.abp.io/en/commercial/latest/modules/payment 5- I run system and tried the action but I got that error!

Made with ❤️ on ABP v9.1.0-preview. Updated on November 29, 2024, 05:50