PayPal Express Checkout Configuration

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 years ago
I've installed the PPX plugin, but I cannot figure out how to configure it.  The configuration page request an API Signature, Username, and Password.....

I created an app on the developer paypal com site.  it has assigned the app a "Credential Pair" consisting of Client ID and Secret.  There is no "API Signature".

What am I missing?  How do I configure the PPX Plugin?

Thank you in advance for your advice and assistance.

JohnJ
8 years ago
cnsJohn wrote:
I've installed the PPX plugin, but I cannot figure out how to configure it.  The configuration page request an API Signature, Username, and Password.....

I created an app on the developer paypal com site.  it has assigned the app a "Credential Pair" consisting of Client ID and Secret.  There is no "API Signature".

What am I missing?  How do I configure the PPX Plugin?

Thank you in advance for your advice and assistance.

JohnJ


If u checked business account in NOP ur payment will not work if u dont have PayPal PRO.
Uncheck business account in PayPal Express plugin and add only email.

7 years ago
Hi,

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

Thanks
Neil
7 years ago
neilzb 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
7 years ago
hi, thats brilliant, thank you! I really do appreciate your help.

can you tell me how to add it to the productAddedToCartWindow?
7 years ago
neilzb wrote:
hi, thats brilliant, thank you! I really do appreciate your help.

can you tell me how to add it to the productAddedToCartWindow?


You can use the following code directly



<a class="button-paypal payPalExpressCheckoutButton" id="payPalExpressCheckoutButton" href="/Plugins/PaymentPayPalExpressCheckout/SubmitButton" >payPalExpressCheckoutButton</a>




7 years ago
Hi,
sorry to ask a silly question, but where should I put that code?
7 years ago
neilzb wrote:
Hi,
sorry to ask a silly question, but where should I put that code?


Do you know how productAddedToCartWindow  open?
7 years ago
i may have sorted it? Thank you so much for your help!
7 years ago
hi Guys,
I downloaded and configured this plugin fine and it works perfectly with the logged in users. But when a user is not logged in and they try to go to payment by clicking this express checkout button, it shows a nopcommerce error screen.

"We're sorry, an internal error occurred.

Our supporting staff has been notified of this error and will address the issue shortly.

We apologize for the inconvenience.

Please try clicking your browsers 'back' button or try reloading the home page.  

If you continue to receive this message, please try again in a little while.

Thank you for your patience.
"

Can we asked the user to login instead, or is there a way that this could work with Guest Checkouts?

thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.