PayPal Hosted Payment gateway plugin for nopCommerce 3.0

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
XtremeCommerce wrote:
Hi Aladino

Did you receive the plugin OK and is it working all right?


Hi Ron,

I'm able to install and configure the plugin on 3.2 and when i try to checkout with this payment method it redirects to a PayPal error page "https://securepayments.paypal.com/acquiringweb".

Of all the configuration settings for api signature, etc, I'm sure about all items except for the "Business ID" field. I tried my Merchant ID here and still get the bad redirect. I'm also not 100% sure I compiled the code correctly because I'm a noob. Any suggestions?
10 years ago
Hi Matt

This plugin was originally created by "//thought" at the beginning of this Topic, one of my clients wanted an updated version to use for his site, and because it was not compiled I was able update the plugin references, and that was the extent of my contribution for this plugin, so other than that I can't really be of more assistance, I would suggest you contact "//thought" and see if they can shed some light on it.

This is there codeplex site here.

I will also have a word with my client to see if it works on his end, and then I'll point you in his direction, as he has been using this for some time.
10 years ago
XtremeCommerce wrote:
Hi Matt

This plugin was originally created by "//thought" at the beginning of this Topic, one of my clients wanted an updated version to use for his site, and because it was not compiled I was able update the plugin references, and that was the extent of my contribution for this plugin, so other than that I can't really be of more assistance, I would suggest you contact "//thought" and see if they can shed some light on it.

This is there codeplex site here.

I will also have a word with my client to see if it works on his end, and then I'll point you in his direction, as he has been using this for some time.


Ok, much appreciated! I think I had another dizzy moment and I thought you were part of the //thought group, so my apologies for coming back to you on this so much.  I'll definitely contact them and see what ideas/suggestions they have for me.

Thanks again!
9 years ago
Hi Guys

If anyone is interested I have updated our PayPal Hosted Plugin to 3.30, 3.40 and 3.50, and will be available on the site, from the 5th of January.
9 years ago
I am interested. Where can I download it?
8 years ago
If you download the codeplex source and update it to work with the latest version by updating the references it will work successfully.

Remember to update references in controller from

Nop.Plugin.Payments.PayPalHosted.Views.PaymentPayPalHosted.Configure

to

~/Plugins/Payments.PayPalHosted/Views/PaymentPayPalHosted/Configure.cshtml


The only gotcha I found was the Business Id: it asks for on the configuration page is actually either your paypal Merchant account ID (found at the bottom of your paypal profile page) or your registered email address (the one people would use to send payments.) either will work.

Regards,
Renners.
8 years ago
I've created a fork from the original code to create an iframe hosted version of the original, it is, in my opinion, better as the customer does not leave your site. http://paypalhostednopcommerce.codeplex.com/SourceControl/network/forks/renners/ifamehosted/latest

This version functions correctly for checkout however the payment page is devoid of any theme as the view page (Redirect.cshtml) does not seem to want to play with the NOPCommerce files.

For the redirect Page I would like something like, however this does not work, any offers as to why would be greatly received:

@model CheckoutPaymentInfoModel
@using System;
@using Nop.Web;
@using Nop.Web.Models.Checkout;
@{
    Layout = "~/Views/Shared/_ColumnsOne.cshtml";

    //title
    Html.AddTitleParts(T("PageTitle.Checkout").Text);
    Html.AddScriptParts(ResourceLocation.Head, "~/Plugins/Payments.PayPalIfHosted/Scripts/jquery-1.11.3.min.js", true);

}
@using Nop.Web.Framework;
    <div id="progressIndicator" style="background-image:url('/plugins/Payments.PayPalIfHosted/Views/PaymentPayPalIfHosted/images/paypal-whiteout.png');background-repeat: no-repeat;width:570px;height:470px;border:solid 2px black;z-index:99999;display:block;">
        <div style="text-align: center; padding: 12px; font-weight: bold;">
            Please wait whilst we create a secure

            gateway to the Payment System...<br />
            <img src='~/plugins/Payments.PayPalIfHosted/Views/PaymentPayPalIfHosted/images/ajaxshippingload.gif' />
        </div>
    </div>
    <iframe id="hss_iframeid" name="hss_iframe" scrolling="no" frameborder="0" onload="closeProgressIndicator()" title="Pay via Secure Server" width="100%" height="450px"></iframe>
    <div style="display: none">
    @Html.Raw(Session["paypal-Ifhosted-form-code"].ToString())
    </div>

    <script>
        document.forms[0].target = 'hss_iframe';
        document.forms[0].submit();
    </script>


I built this against version 3.6 although some references have also been updated so may not be a straight rebuild to get it to work hence I've not included any binaries (first plugin I've done so still finding my way.)

When I get the payment page working against the currently installed theme I'll endeavour to add it as an add-on.

Regards,
Renners.
8 years ago
Renners,

Are you still working on this plugin?  I'm trying to get it to run on my development site, but have not yet been able to get it to function.  

If you have worked out any of the bugs, I'd love to take a look at the plugin.

JohnJ
8 years ago
Hi JohnJ,

We are using the plugin successfully on our sites so it does work, the version currently on the fork is the latest, I just checked the dates of the files.

It could well be the update to the latest versions I made to some of the packages that are causing it not to work but as I said previously this was my first attempt at a plugin using NopC.

What's your specific issue I may be able to help?

Regards,
Renners.
8 years ago
Thank you for the reply.  I haven't looked deeply into the cause of the issue, but here are a few things that happen during the process:

1. cart is emptied
2. ghosted out iFrame form is displayed for just a moment
3. "Plugins/PaymentPayPalIfHosted/Redirect" displays "Error Processing Payment      This transaction can't be processed. Please pay with another card."

I know PayPal returns some strange, seemingly non-related, error messages, so this error may be as simple as a credential mis-match, of some missing variable.

Any insight you have to the issue would be greatly appreciated.

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