Is there any? I can't figure out how to use this module. I'm not familiar with paypal in the first place, and the documentation they have is crap.

It would be nice to have a simple tutorial or two that says

1) do this
2) do that
3) Finally do this.

I've been playing around with the different settings on this module, and I finally got something I can click on that takes me to the paypal site. But when I get to the paypal site it says 'please log in', but that doesn't seem right to me.

Can anyone help me with some kind of guide. Has anyone else managed to get this module working?

Comments

sachand’s picture

Hi, Hakulicious,

Hope info belove will help you. :

Before installation get registered with paypal. get a suitable account (business /premier) .
Then create test accounts of type bussines on sandbox.paypal.com. create two dummy accounts of type customer and bussiness. set Paypal IPN settings by setting your paypal account (business /premier) and paypal host url (use live accounts in production and while development us you sandbox accounts and sandbox host). Create Subscriptions. and try it first under sandbox. When user clicks on paypal button then paypal will show your business account name with product details with login box for user (customer).You can refer sandbox user guide from paypal.they also provide sample scripts. To get more help get registed with paypal's developer network. best of luck.

jaypan’s picture

Thanks for your response, much appreciated. I will play with it now and see if I can get it working.

If anyone else has other advice or suggestions, I'm happy to hear that as well.

jaypan’s picture

That worked. Thank you for your help!

gkapoor’s picture

I followed the exact instructions: created business account; enabled IPN (IPN URL: www.example.com/lm_paypal/ipn); set LM Business e-mail & paypal host url (www.paypal.com); created subscription but on subscribing it gives me following error on https://www.paypal.com/cgi-bin/webscr

"Some required information is missing or incomplete. Please correct your entries and try again."

Not sure what information is missing?

Thanks,
=gk

jasonannable’s picture

I have the exact same problem. Having troubles finding a solution. Please post back if you've found anything.

jasonannable’s picture

Thought I'd just post back and say that I resolved it. It was because I was using the developer sign-in email instead of the test-seller-account's email. So embarrassing to have wasted so much time debugging each of the button variables. Btw, I figured it out by reducing the problem down so that only the required params were being sent:

cmd = _xclick-subscriptions
business = xx@xx.xx
a3 = 100
p3 = 1
t3 = Y
no_note = 1

When I still go the error I thought, "you've got to be kidding me?? really?? what the heck!"

amirtaiar’s picture

I have tried really hard to follow your instructions but couldn't done good.
My english is not that good by the way.

I have registrated on paypal.com eith a buisness acount.
I have created a sandbox users - what do you mean by dummy? "an vitual user"?
I think the problem begin adding a subscribe - there a lot of fitures over there and I didnt understand nothing.
I have also didnt understand what I need to do ufter all this.
Will be happy for assistance

chia’s picture

First, a dummy means a virtual account through which you can test the working of the code and manipulate it to suite your requirement. You have to create a subscription and when you will click on subscribe to that subscriptions. And carry out the transaction in the paypal. The paypal will send an IPN which will have the information of your transaction and paypal sends IPN on every action to that subscriptions. If you cancel that subscription the paypal will send IPN carrying the details about the cancellation . If you are wondering what IPN is then read this following link :- https://www.paypal.com/ipn

This is the way the module work.

Jasonleon

sachand’s picture

Hi amirtaiar,
I think you got what dummy account is from jasonleon's comment. You have to login by your sandbox account and then create two accounts 1 business and other customer account. when you make purchase ,you have to login by the customer account . when your purchase will finish there is flow of money from customer account to business account.For better understanding please read https://cms.paypal.com/cms_content/en_US/files/developer/PP_Sandbox_User...

lyricnz’s picture

I just spent a couple of hours documenting (mostly in screenshots) how to :

a) create paypal sandbox accounts correctly

b) setup LM Paypal for donations (as an example)

c) test this setup, and debug a simple problem

However, drupal.org books are somewhat broken now, so I can't upload attachments to books. In the meantime, here's the screenshots, without editing. I could have contrived the test to be a bit more seamless, but perhaps I'll do that later.

http://paypaldemo.taniwhasolutions.com/screenshots/

jaypan’s picture

Nice! Thanks, that's a great little resource.

amirtaiar’s picture

Hey thanks a lot
it seems grate. somehow I cant get inside the help donatin page so I cant view the php code. I have tried to write it down an it seems to be some mistake. can you please past it here?

lyricnz’s picture

Once you have LM Paypal Donations module enabled, you should be able to open /admin/help/lm_paypal_donations to see the help, which includes the same PHP code.

That page is linked from the LM Paypal Donations setting page.

amirtaiar’s picture

as I said,
I cant enter this help page so if you can please add this php code as attached here it will be grate.

lyricnz’s picture

Status: Active » Fixed

The bigger question is - why can't you access this page? If that doesn't work, the code is pretty unlikely to work too.

if (function_exists('lm_paypal_donate')) {
  // 10 = amount, 'USD' is the currency followed by a description
  print 'We would really like a $10 donation ' .
    lm_paypal_donate(10, 'USD', 'donation to example.com') .'<br>';
  // The amount is a one element array so an text input with the one value as
  //  default
  print 'Write your own amount to give, we suggest $5' .
    lm_paypal_donate(array(5), 'USD', 'donation to example.com') . '<br>';
  // The amount is a multi element array so a select will be used. Note if one
  //   of the elements is itself an array that will be the default selection
  // The final two parameters are an alternative button (here we use the default)
  //   and a replacement label before the amount
  print 'We would really like a $10, or more, donation ' .
    lm_paypal_donate(array(5,array(10),15), 'USD', 'donation to example.com', '', 'Donation') .'<br>';
}
amirtaiar’s picture

Yap! its not working for me.
I can see the full block but one I am clicking om i am entering the sign in sandbox page witch is not good.
any idea what might be the problem?

amirtaiar’s picture

any suggestion?

lyricnz’s picture

No idea. Feel free to send me an admin user/pass and your site url, so I can experiment more directly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.