PayPal Express Checkout Configuration

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
sohel wrote:
Hi,

I have Paypal Express on my site, but ow do I add it to the 'topcart'?

Thanks
Neil

Do you want it in flout cart? if yes

Create a partial view in Shared folder with following code and then call it


@using Nop.Core
@using Nop.Core.Domain.Orders
@using Nop.Core.Infrastructure
@using Nop.Services.Orders
@using Nop.Services.Payments
@{


    #region Button payment methods

    var currentCustomer = EngineContext.Current.Resolve<IWorkContext>().CurrentCustomer;
    var _storeContext = EngineContext.Current.Resolve<IStoreContext>();
    var _paymentService = EngineContext.Current.Resolve<IPaymentService>();
    var cart = currentCustomer.ShoppingCartItems
                .Where(sci => sci.ShoppingCartType == ShoppingCartType.ShoppingCart)
                .LimitPerStore(_storeContext.CurrentStore.Id)
                .ToList(); ;
    var paymentMethods = _paymentService
        .LoadActivePaymentMethods(currentCustomer.Id, _storeContext.CurrentStore.Id)
        .Where(pm => pm.PaymentMethodType == PaymentMethodType.Button)
        .Where(pm => !pm.HidePaymentMethod(cart))
        .ToList();
    foreach (var pm in paymentMethods)
    {
        if (cart.IsRecurring() && pm.RecurringPaymentType == RecurringPaymentType.NotSupported)
        {
            continue;
            
        }

            string actionName;
            string controllerName;
            RouteValueDictionary routeValues;
            pm.GetPaymentInfoRoute(out actionName, out controllerName, out routeValues);

       @Html.Action(actionName, controllerName, routeValues)
        
      
    }

    #endregion
}


let's say file name _PaypalExpressCheckoutButton.cshtml in path: ~\Views\Shared\_PaypalExpressCheckoutButton.cshtml  

Call it like bellow  from the file ~\Views\ShoppingCart\FlyoutShoppingCart.cshtml


  @Html.Partial("_PaypalExpressCheckoutButton")


Note: It will load all Button type payment mentods




Sir is this plugin support PayPal Account Optional feature ?
6 years ago
How can I have the PayPal express payment button simply be a payment choice beside others (Pay with Check, Purchase Order, etc.) in the checkout process?

-- AND / OR --

How can I change the wording NEAR the PayPal button & "Checkout" button that will allow for us to explain which button to use?



>> Situation: When a customer chooses "CHECKOUT" button, they are not presented with a future option to checkout with PayPal (which is what we use for both PayPal & Credit/Debit transactions) ... I'm searching for a good solution ;-)
6 years ago
stevewin8 wrote:
How can I have the PayPal express payment button simply be a payment choice beside others (Pay with Check, Purchase Order, etc.) in the checkout process?

-- AND / OR --

How can I change the wording NEAR the PayPal button & "Checkout" button that will allow for us to explain which button to use?



>> Situation: When a customer chooses "CHECKOUT" button, they are not presented with a future option to checkout with PayPal (which is what we use for both PayPal & Credit/Debit transactions) ... I'm searching for a good solution ;-)


Hello Steve,

We can do this by plugin in 4-5 hours if you want otherwise through custom code it would be a matter of less than or equal to an hour maximum.

Do you want us to help you professionally? We would love to be your nopCommerce solution partner and see business opportunities together.

Thank you,
Atul
6 years ago
@stevewin8

Have you tried using the PayPal Standard plugin? (It appears as a payment method in checkout)
6 years ago
New York wrote:
Have you tried using the PayPal Standard plugin? (It appears as a payment method in checkout)


I have not. We use PayPal Express, but have (on other ecommerce software we use on our existing sites) always had the choice for that payment method (alongside checks, etc.) show up as one of the choices in the payment section of checking out... not as an "island" presented alone with no context to explain any other choices.

Thanks for your helpfulness!
Steve
6 years ago
Atul,

Thanks for the quote & the offer. I'm still in the process of working through what is & what isn't available for us to use 'out-of-the-box' on our stores. We would probably be interested in using mostly plug-ins ... but, we are not ready for custom plugins yet.

Thanks, again
Steve
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.