Using Paypal

Nov 22, 2009 at 4:00 AM

Hi,

Trying to setup the paypal gateway, doing some testing with the sandbox.

I've used paypal buttons in the past, and when someone buys, they get to a paypal page that gives the option to pay by credit card (w/o signing in) or pay by paypal by signing in.

Use the following:

<root>
        <paymentURL>https://www.sandbox.paypal.com/xclick</paymentURL>
        <verifyURL>https://www.sandbox.paypal.com/cgi-bin/webscr</verifyURL>
        <PayPalID>shop_1258853785_biz@goldrushtechnology.com.au</PayPalID>
        <CartName>TEST</CartName>
        <ButtonImageURL>http://www.vipre.com.au/Desktopmodules/NB_Store/img/paypal60x38.gif</ButtonImageURL>
        <Currency>AUD</Currency>
        <ReturnURL>http://www.vipre.com.au/Cart/tabid/56/stg/5/Default.aspx?PayPalExit=RETURN</ReturnURL>
        <ReturnCancelURL>http://www.vipre.com.au/Cart/tabid/56/stg/5/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
        <ReturnNotifyURL>http://www.vipre.com.au/Cart/tabid/56/stg/4/Default.aspx</ReturnNotifyURL>
        <MerchantLanguage>en</MerchantLanguage>
      </root>

It just goes to the paypal sign page, and when you sign in there is no details of the transaction, just the standard stuff you get if you sign in to paypal.

I've setup IPN, and used the nofity URL for the IPN.

What am I missing?

Coordinator
Nov 22, 2009 at 8:18 AM

Yep, you should get that page, although it varies depending (I believe) on whether PayPal recognises the email address as an account holder or not. In once sae you get the full card form and the login alongside. In the other case you just get a link to pay pay credit card and the sam login alongside.

Try it in live mode and see if it makes any difference.

Rob

Coordinator
Nov 22, 2009 at 2:25 PM

Also use the "NB_Store_Gateway_01.02.00_PayPal...." version for the provider.  It's got some fixes to make the sandbox work correctly (or better at least!!).

Dave.

Nov 24, 2009 at 8:19 PM

hmm, I am also having the problem mentioned above. I am using the most current release of both the provider and the store. If I change it to live, it does seem to take me to the correct page although using the sandbox it just takes me to the login page of paypal. I would like to be able to test with the sand box before going live, any suggestions on how to correct the problem?

Coordinator
Nov 24, 2009 at 8:52 PM

If you've checked through this document carefully and everything agrees, then I can only recommend testing it with a $1 live payment. If you can't afford the Dollar, then just refund it again immediately.

I'm afraid I can't really help with the sandbox as I stopped using it after the first time I tried. It just has too many unknowns to be relied upon as an accurate test of a live site.

Perhaps someone else here has had good results with it and can share?

Rob

Coordinator
Nov 25, 2009 at 6:56 AM

Hi mbholly,

I've had a lot of problems getting the sandbox to work OK, I think it's an issue with the paymenturl being an old format that paypal supports on live but not on sandbox (The problem seems only in Europe?..not sure if that's true, but only people in Europe seem to be saying it!).  I'm linking a website to paypal today so I'll been testing the sandbox and trying to get it to work correct, I'll post anything I find here.

Regards,

Dave.

Coordinator
Nov 25, 2009 at 8:26 AM

Hi,

I've had a look at the paypal sandbox and I think the url we use in the original setup is wrong, below I listed a new default paypal.gateway setting to solve the problem:

<root>
        <paymentURL>https://www.sandbox.paypal.com/cgi-bin/webscr</paymentURL>
        <verifyURL>https://www.sandbox.paypal.com/cgi-bin/webscr</verifyURL>
        <PayPalID>paypal@MyWebsite.com</PayPalID>
        <CartName>TEST</CartName>
        <ButtonImageURL>/Desktopmodules/NB_Store_GatewayPayPal/paypal60x38.gif</ButtonImageURL>
        <Currency>EUR</Currency>
        <ReturnURL>http://www.MyWebsite.com/Panier/tabid/56/stg/5/ordid/[ORDERID]/Default.aspx?PayPalExit=RETURN</ReturnURL>
        <ReturnCancelURL>http://www.MyWebsite.com/Panier/tabid/56/stg/5/ordid/[ORDERID]/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
        <ReturnNotifyURL>http://www.MyWebsite.com/Panier/tabid/56/stg/4/Default.aspx</ReturnNotifyURL>
        <MerchantLanguage>fr</MerchantLanguage>
        <paypalurl>
          <cmd>_xclick</cmd>
          <bn>NBStore</bn>
          <quantity>1</quantity>
          <undefined_quantity>0</undefined_quantity>
          <no_note>1</no_note>
          <no_shipping>1</no_shipping>
        </paypalurl>
</root>

 

Regards,

Dave

 

Nov 27, 2009 at 8:39 AM

G'day Dave,

I've made the changes you've suggested. Still getting the sign up page on the sandbox.

Should we use this for live also?

My paypal gateway xml is:

<root>
        <paymentURL>https://www.sandbox.paypal.com/cgi-bin/webscr</paymentURL>
        <verifyURL>https://www.sandbox.paypal.com/cgi-bin/webscr</verifyURL>
        <PayPalID>shop_1258853785_biz@goldrushtechnology.com.au</PayPalID>
        <CartName>vipre.com.au</CartName>
        <ButtonImageURL>/Desktopmodules/NB_Store/img/paypal60x38.gif</ButtonImageURL>
        <Currency>AUD</Currency>
        <ReturnURL>http://www.vipre.com.au/cart/tabid/123/stg/5/ordid/[ORDERID]/Default.aspx?PayPalExit=RETURN</ReturnURL>
        <ReturnCancelURL>http://www.vipre.com.au/cart/tabid/123/stg/5/ordid/[ORDERID]/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
        <ReturnNotifyURL>http://www.vipre.com.au/cart/tabid/123/stg/4/Default.aspx</ReturnNotifyURL>
        <MerchantLanguage>en</MerchantLanguage>
        <paypalurl>
          <cmd>_xclick</cmd>
          <bn>NBStore</bn>
          <quantity>1</quantity>
          <undefined_quantity>0</undefined_quantity>
          <no_note>1</no_note>
          <no_shipping>1</no_shipping>
        </paypalurl>
</root>

 

The url that gets passed to paypal is:

https://www.sandbox.paypal.com/cgi-bin/webscr?business=shop_1258853785_biz%40goldrushtechnology.com.au&item_name=vipre.com.au&item_number=1014&quantity=1&custom=en-AU&amount=153.90&shipping=0.00&tax=0.00&currency_code=AUD&bn=NB_Store&return=http%3a//www.vipre.com.au/cart/tabid/123/stg/5/ordid/1014/Default.aspx%3fPayPalExit%3dRETURN&cancel_return=http%3a//www.vipre.com.au/cart/tabid/123/stg/5/ordid/1014/Default.aspx%3fPayPalExit%3dCANCEL&notify_url=http%3a//www.vipre.com.au/cart/tabid/123/stg/4/Default.aspx&undefined_quantity=0&no_note=1&no_shipping=1

Thi IPN Url setup in paypal is http://www.vipre.com.au/Cart/tabid/123/stg/4/Default.aspx

 

What am I missing?

Coordinator
Nov 28, 2009 at 7:57 AM

Hi,

It looks like your not using the latest version of the paypal provider, it must be v1.2 for this to work.  Tryt downlaoding it from the paypal provder download tab of codeplex.

("cmd=_xclick", must be one of the parameters in your url, the latest version should pick up you extra paypalurl node and build it into your url)

Regards,

Dave.

Nov 28, 2009 at 11:50 PM
<!-- Body{font-family: Verdana; font-size: 0.75em;}#ThreadNotificationFooter{border-top: 1px solid #ccc; color: gray;}#ThreadNotificationPostBody{Margin-Bottom: 2em;} pre {font-size:1.25em;} -->

Dave,

When trying to install the Paypal provider for DNN 5 I get the following error:


If you have reached this page it is because the installer needs to gather some more information, before proceeding. Error reading the zip package - see below

StartJob Reading Installation Manifest file
Info Reading Package Manifest - Module - NB_Store_GatewayPayPal
Info Reading Component Manifest - Module
Info Module Manifest read successfully
Info Reading Component Manifest - Assembly
Failure File specified in the dnn could not be found in the zip file: - C:\inetpub\dnn.goldrush.local\Install\Temp\zy4dnyhe\bin\NEvoweb.DNN.Modules.NB_Store.GatewayPayPal.dll
Info Reading Component Manifest - File
Info Found valid path () for readme.txt.
Info Found valid path () for paypal60x38.gif.

Tried it on two sites on two different servers. Same result.

JJ

Nov 29, 2009 at 12:22 AM

I set it up to work with live paypal. However it comes back as Payment Not Verified.

Settings are:

<root>
    <paymentURL>https://www.paypal.com/xclick</paymentURL>
    <verifyURL>https://www.paypal.com/cgi-bin/webscr</verifyURL>
    <PayPalID>accounts@vipre.com.au</PayPalID>
    <CartName>vipre.com.au</CartName>
    <ButtonImageURL>/Desktopmodules/NB_Store/img/paypal60x38.gif</ButtonImageURL>
    <Currency>AUD</Currency>
    <ReturnURL>http://www.vipre.com.au/Cart/tabid/123/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=RETURN</ReturnURL>
    <ReturnCancelURL>http://www.vipre.com.au/Cart/tabid/123/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
    <ReturnNotifyURL>http://www.vipre.com.au/Cart/tabid/123/stg/4/Default.aspx</ReturnNotifyURL>
    <MerchantLanguage>en</MerchantLanguage>
</root>

 

The IPN Url is exactly as I've got the ReturnNotifyURL.

Will updating the paypal provider fix this? When I can get it to work!!

 

Nov 29, 2009 at 2:06 AM

Dave,

Because the install didn't work, just ftp'd the dll to the site.

Paypal worked ok, so I assume the ftp worked ok, but still get "Payment Not Verified"

JJ

 

Coordinator
Nov 29, 2009 at 7:11 PM

Hi JJ,

Your having a lot of fun with this one????

Firstly, I'll have a look at the paypal provider install tomorrow and see if I can understand why your getting the error message...strange I've not heared anyone else having any errors along these lines, but still your obviously having some issue somewhere. (make sure it's v1.2 of the provider)

Secondly, have a look at the readme.txt in the PayPal Provider install package, there is a new xml format, you could try this out.

Also you can have a look at the paypal audit log to see if your getting an IPN return from paypal, look in Portals/<your portal>/Logfiles...a reference of IPN shoud be displayed if the paypal IPN is working.

Regards,

Dave.

Nov 30, 2009 at 5:04 AM

Dave,

I went throught readme.txt. Everything is setup correctly as far as I can see.

 

I ran a transaction again today. Details from the log file are:

30/11/2009 12:58:38 AM -  - PayPal URL = https://www.paypal.com/xclick?business=accounts%40vipre.com.au&item_name=vipre.com.au&item_number=1023&custom=en-AU&amount=1.00&shipping=0.00&tax=0.00&currency_code=AUD&return=http%3a//www.vipre.com.au/Cart/tabid/123/stg/5/ordID/1023/Default.aspx%3fPayPalExit%3dRETURN&cancel_return=http%3a//www.vipre.com.au/Cart/tabid/123/stg/5/ordID/1023/Default.aspx%3fPayPalExit%3dCANCEL&notify_url=http%3a//www.vipre.com.au/Cart/tabid/123/stg/4/Default.aspx&bn=NB_Store&quantity=1&undefined_quantity=0&no_note=1&no_shipping=1

so I suspect I'm not getting the IPN return.

Getting the payment to be verified is much more urgent than fixing the install problem.

thanks

 

JJ

 

 

Coordinator
Nov 30, 2009 at 7:10 AM

HI JJ,

Which paypal provider version are you using?  I ask because the new version v1.2 has an xml format in the readme.txt of:

<root>
        <paymentURL>https://www.sandbox.paypal.com/cgi-bin/webscr</paymentURL>
        <verifyURL>https://www.sandbox.paypal.com/cgi-bin/webscr</verifyURL>
        <PayPalID>paypal@MyWebsite.com</PayPalID>
        <CartName>TEST</CartName>
        <ButtonImageURL>/Desktopmodules/NB_Store_GatewayPayPal/paypal60x38.gif</ButtonImageURL>
        <Currency>EUR</Currency>
        <ReturnURL>http://www.MyWebsite.com/Panier/tabid/56/stg/5/ordid/[ORDERID]/Default.aspx?PayPalExit=RETURN</ReturnURL>
        <ReturnCancelURL>http://www.MyWebsite.com/Panier/tabid/56/stg/5/ordid/[ORDERID]/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
        <ReturnNotifyURL>http://www.MyWebsite.com/Panier/tabid/56/stg/4/Default.aspx</ReturnNotifyURL>
        <MerchantLanguage>fr</MerchantLanguage>
        <paypalurl>
          <cmd>_xclick</cmd>
          <bn>NBStore</bn>
          <quantity>1</quantity>
          <undefined_quantity>0</undefined_quantity>
          <no_note>1</no_note>
          <no_shipping>1</no_shipping>
        </paypalurl>
</root>

 

As you can see the "paymentURL" node has a new url format...one to match the sandbox workings...I don;t think this effects the IPN, but just make sure you've got the correct version.

(Have a look at the version on the dll you've installed.)

Regards,

Dave.

Nov 30, 2009 at 7:23 AM

I've got the latest download.

The readme.txt had that version of the xml and the old version.

I changed it to and in

 

<paypalurl>
          <cmd>_xclick</cmd>
          <bn>NBStore</bn>
          <quantity>1</quantity>
          <undefined_quantity>0</undefined_quantity>
          <no_note>1</no_note>
          <no_shipping>1</no_shipping>
</paypalurl>

Still payment not verified.

Here's the complete log:

30/11/2009 12:58:38 AM -  - PayPal URL = https://www.paypal.com/xclick?business=accounts%40vipre.com.au&item_name=vipre.com.au&item_number=1023&custom=en-AU&amount=1.00&shipping=0.00&tax=0.00&currency_code=AUD&return=http%3a//www.vipre.com.au/Cart/tabid/123/stg/5/ordID/1023/Default.aspx%3fPayPalExit%3dRETURN&cancel_return=http%3a//www.vipre.com.au/Cart/tabid/123/stg/5/ordID/1023/Default.aspx%3fPayPalExit%3dCANCEL&notify_url=http%3a//www.vipre.com.au/Cart/tabid/123/stg/4/Default.aspx&bn=NB_Store&quantity=1&undefined_quantity=0&no_note=1&no_shipping=1
30/11/2009 3:17:19 AM - host - desktopmodules.nb.store.adminsettings.ascx - updateSettings - <NB_Store_SettingsInfo><PortalID>2</PortalID><SettingName>PayPal.gateway</SettingName><Lang>None</Lang><SettingValue>&lt;root&gt;
    &lt;paymentURL&gt;https://www.paypal.com/cgi-bin/webscr&lt;/paymentURL&gt;
    &lt;verifyURL&gt;https://www.paypal.com/cgi-bin/webscr&lt;/verifyURL&gt;
    &lt;PayPalID&gt;accounts@vipre.com.au&lt;/PayPalID&gt;
    &lt;CartName&gt;vipre.com.au&lt;/CartName&gt;
    &lt;ButtonImageURL&gt;/Desktopmodules/NB_Store/img/paypal60x38.gif&lt;/ButtonImageURL&gt;
    &lt;Currency&gt;AUD&lt;/Currency&gt;
    &lt;ReturnURL&gt;http://www.vipre.com.au/Cart/tabid/123/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=RETURN&lt;/ReturnURL&gt;
    &lt;ReturnCancelURL&gt;http://www.vipre.com.au/Cart/tabid/123/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=CANCEL&lt;/ReturnCancelURL&gt;
    &lt;ReturnNotifyURL&gt;http://www.vipre.com.au/Cart/tabid/123/stg/4/Default.aspx&lt;/ReturnNotifyURL&gt;
    &lt;MerchantLanguage&gt;en&lt;/MerchantLanguage&gt;
        &lt;paypalurl&gt;
          &lt;cmd&gt;_xclick&lt;/cmd&gt;
          &lt;bn&gt;NBStore&lt;/bn&gt;
          &lt;quantity&gt;1&lt;/quantity&gt;
          &lt;undefined_quantity&gt;0&lt;/undefined_quantity&gt;
          &lt;no_note&gt;1&lt;/no_note&gt;
          &lt;no_shipping&gt;1&lt;/no_shipping&gt;
        &lt;/paypalurl&gt;

&lt;/root&gt;
</SettingValue><HostOnly>true</HostOnly></NB_Store_SettingsInfo>
30/11/2009 3:18:23 AM -  - PayPal URL = https://www.paypal.com/cgi-bin/webscr?business=accounts%40vipre.com.au&item_name=vipre.com.au&item_number=1024&custom=en-AU&amount=1.00&shipping=0.00&tax=0.00&currency_code=AUD&return=http%3a//www.vipre.com.au/Cart/tabid/123/stg/5/ordID/1024/Default.aspx%3fPayPalExit%3dRETURN&cancel_return=http%3a//www.vipre.com.au/Cart/tabid/123/stg/5/ordID/1024/Default.aspx%3fPayPalExit%3dCANCEL&notify_url=http%3a//www.vipre.com.au/Cart/tabid/123/stg/4/Default.aspx&cmd=_xclick&bn=NBStore&quantity=1&undefined_quantity=0&no_note=1&no_shipping=1

 

No return from IPN.

From paypal I used the test facility to test the IPN and it said it send the IPN successfully.

I've run out of ideas, and this is preventing me getting my website live, which is costing me money!

 

 

Coordinator
Nov 30, 2009 at 8:12 AM

OK the URL sent look good now...I'm unsure what's happenig here, so I'll list  acouple of thing off the top of my head to see if it hits anything.

1 - IPN in paypal must be set tothe same as the "notify_url" and must be enabled.

2 - the return url must exist.

3 - test the notify url by simply typing it into the browser address and see if you get an IPN entry in the logfile.

4 - make sure the checkout module is on the notify_url tab.

5 - make sure the notify_url tab has public security access so paypal can get to it.

6 - make sure the notify url is visible to the internet.

...running out of ideas now....anything hit the mark??

Coordinator
Nov 30, 2009 at 8:15 AM

In fact I've just tried to have a look at your cart and it's blocked by security...this is why the IPN is not working, paypal can;t get to it.

Just release the security on that tab and it should be working OK.

Regards,

Dave.

Nov 30, 2009 at 9:11 AM

Dave,

Thanks for that.

Actually, before I got to your comments about security I thought it could be security. I'd hidden all the pages so I could develop the site behind the scenes.

I'll let you know when I'm up and running. Just need to get the product import to work and I should be close.

JJ.