Paypal sandbox

Apr 11, 2009 at 4:15 PM
So I'm trying to get paypal setup on the cart and running into issues.

Paypal cofig:
<root>
        <paymentURL>https://www.sandbox.paypal.com/xclick</paymentURL>
        <verifyURL>https://www.sandbox.paypal.com/cgi-bin/webscr</verifyURL>
        <PayPalID>SandBoxID@email.com</PayPalID>
        <CartName>MyCart</CartName>
        <ButtonImageURL>http://www.mywebsite.com/Desktopmodules/NB_Store/img/paypal60x38.gif</ButtonImageURL>
        <Currency>USD</Currency>
        <ReturnURL>http://www.mywebsite.com/Cart/tabid/272/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=RETURN</ReturnURL>
        <ReturnCancelURL>http://www.mywebsite.com/Cart/tabid/272/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
        <ReturnNotifyURL>http://www.mywebsite.com/Cart/tabid/272/stg/4/Default.aspx</ReturnNotifyURL>
        <MerchantLanguage>en</MerchantLanguage></root>

When I checkout I am sent to the paypal login screen instead of the page to just enter credit card info. Its as if the cart info is not being passed correctly to paypal.

Here is the url that is passed to paypal:
https://www.sandbox.paypal.com/xclick?business=SandBoxID@email.com&item_name=MyCart&item_number=1001&quantity=1&custom=en-US&amount=40.00&shipping=5.00&tax=0.00&currency_code=USD&bn=NB_Store&return=http%3a//www.MyWebsite.com/Cart/tabid/272/stg/5/ordID/1001/Default.aspx%3fPayPalExit%3dRETURN&cancel_return=http%3a//www.MyWebsite.com/Cart/tabid/272/stg/5/ordID/1001/Default.aspx%3fPayPalExit%3dCANCEL&notify_url=http%3a//www.MyWebsite.com/Cart/tabid/272/stg/4/Default.aspx&undefined_quantity=0&no_note=1&no_shipping=1

This is my first go at using paypal for anything but personal use so I am sure Im missing something.  Any help would be greatly appreciated!


Thanks
Coordinator
Apr 13, 2009 at 7:42 AM
Hi,
Everything look OK in your setup of NB_Store.  One thing that it could be is when you test paypal in the sandbox, you need to have a test session running on from you PC.  i.e. open paypal development center  in another browser session.

Regards,
Dave.

Apr 25, 2009 at 7:57 PM
I'm having the same problem. I was able to get one step further by changing the payment URL from 

payment URL> https://www.sandbox.paypal.com/xclick</paymentURL> 
to payment URL>https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick</paymentURL>.

The following URL was created from that.  https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick?business= .

This creates an error but if you change the second ? to an & and press enter, PayPal Sandbox is connected currectly. The remaining problem is that PayPal does not return anything to DOTNETNUKE NB_Store. The parameters from PayPal.gateway is listed below:

<root>
        <paymentURL>https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_xclick</paymentURL>
        <verifyURL>https://www.sandbox.paypal.com/cgi-bin/webscr</verifyURL>
        <PayPalID>groupf_1240444181_biz@yahoo.com</PayPalID>
        <CartName>TEST</CartName>
        <ButtonImageURL>https://carpenter.mis.utsa.edu/dnn/g8/portal root/books/paypal.gif</ButtonImageURL>
        <Currency>USD</Currency>
        <ReturnURL>https://carpenter.mis.utsa.edu/dnn/g8/CartandCheckout/Order History/tabid/416/Default.aspx?PayPalExit=RETURN</ReturnURL>
        <ReturnCancelURL>https://carpenter.mis.utsa.edu/dnn/g8/CartandCheckout/tabid/416/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>
        <ReturnNotifyURL>https://carpenter.mis.utsa.edu/dnn/g8/CartandCheckout/tabid/416/Default.aspx</ReturnNotifyURL>
        <MerchantLanguage>fr</MerchantLanguage></root>
Coordinator
Apr 25, 2009 at 11:20 PM
Jack, on first glance you're missing the "stg/4/" and "stg/5/" bits from the paths. Check the documentation wiki and examine the paths again closely.
http://nbstore.codeplex.com/Wiki/View.aspx?title=Payment%20Gateways&referringTitle=Home

Also, it may help people having trouble with the sandbox to check via the live PaPal system instead. I'm never certain whether I'm facing a cart or a sandbox issue, so I just use the live system now. You can cancel out of the payment once you've confirmed it's working on the way in, and if you're fairly confident it should be working on the way out then put a $1 payment through and see. Payments can easily be refunded in PayPal, but I'd avoid doing it too often. I just look at a few dollars of live tests as part of the cost and I don't run them until I'm confident I have the settings correct.

Rob
Apr 26, 2009 at 3:15 AM
Thanks, that worked. Any change that you will address the Sandbox issue?
It would allow us to stress test our code.

Jack

robax wrote:
>
> From: robax
>
> Jack, on first glance you're missing the "stg/4/" and "stg/5/" bits
> from the paths. Check the documentation wiki and examine the paths
> again closely.
> http://nbstore.codeplex.com/Wiki/View.aspx?title=Payment%20Gateways&referringTitle=Home
> <http://nbstore.codeplex.com/Wiki/View.aspx?title=Payment%20Gateways&referringTitle=Home>
>
> Also, it may help people having trouble with the sandbox to check via
> the live PaPal system instead. I'm never certain whether I'm facing a
> cart or a sandbox issue, so I just use the live system now. You can
> cancel out of the payment once you've confirmed it's working on the
> way in, and if you're fairly confident it should be working on the way
> out then put a $1 payment through and see. Payments can easily be
> refunded in PayPal, but I'd avoid doing it too often. I just look at a
> few dollars of live tests as part of the cost and I don't run them
> until I'm confident I have the settings correct.
>
> Rob
>
> Read the full discussion online
> <http://nbstore.codeplex.com/Thread/View.aspx?ThreadId=52986&ANCHOR#Post183656>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=%5BNBStore:52986%5D>)
>
> To start a new discussion for this project, email
> [email removed] <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe
> <http://www.codeplex.com/site/discussions/thread/unsubscribe/52986> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
Coordinator
Apr 26, 2009 at 10:45 AM
Glad it's working.
The cart hasn't got any issues with it as far as I'm aware, but list any if you find them.
The PayPal Sandbox requires that you are signed into it during testing, and because that adds room for error, I suggested running a test with the live processor.
Rob
Jun 4, 2009 at 2:18 PM

Hi,

I've setup the paypal gateway, which doesn't seem to work. It's the url that is being generated. Anyway, here is the configuration:

<root>

        <paymentURL>https://www.paypal.com/us/cgi-bin/webscr?cmd=_xclick</paymentURL>

        <verifyURL>https://www.paypal.com/us/cgi-bin/webscr</verifyURL>

        <PayPalID>selleraccount@test123.com</PayPalID>

        <CartName>TEST</CartName>

        <ButtonImageURL>https://www.paypalobjects.com/en_US/i/bnr/vertical_solution_PP.gif</ButtonImageURL>

        <Currency>CAD</Currency>

        <ReturnURL>http://localhost/Cart/tabid/74/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=RETURN</ReturnURL>

        <ReturnCancelURL>http://localhost/Cart/tabid/74/stg/5/ordID/[ORDERID]/Default.aspx?PayPalExit=CANCEL</ReturnCancelURL>

        <ReturnNotifyURL>http://localhost/Cart/tabid/74/stg/4/Default.aspx</ReturnNotifyURL>

        <MerchantLanguage>en</MerchantLanguage>

</root>

the url which is being generated appears below:

https://www.paypal.com/us/cgi-bin/webscr?cmd=_xclick?business=selleraccount%40test123.com&item_name=TEST&item_number=1047&quantity=1&custom=en-US&amount=0.01&shipping=0.00&tax=0.00&currency_code=CAD&bn=NB_Store&return=http%3a//localhost/Cart/tabid/74/stg/5/ordID/1047/Default.aspx%3fPayPalExit%3dRETURN&cancel_return=http%3a//localhost/Cart/tabid/74/stg/5/ordID/1047/Default.aspx%3fPayPalExit%3dCANCEL&notify_url=http%3a//localhost/Cart/tabid/74/stg/4/Default.aspx&undefined_quantity=0&no_note=1&no_shipping=1

the problem is clear in the url: there are two ?'s  - by changing the second ? to &, it works fine. How do I get the application to do this? 

Coordinator
Jun 4, 2009 at 2:33 PM

Hi,

The problem is with the <paymentURL>

I've just check my <paymentURL> link and it is set as:

https://www.paypal.com/xclick

Try changing it.

 

Regards,

Dave

Jun 4, 2009 at 2:56 PM

Hi Dave,

Thanks! That fixed the problem.

Sam