Paypal Sandbox what to put in "PayPal business email"

Paypal Sandbox what to put in "PayPal business email"

by Alan Kmiecik -
Number of replies: 3

When using the sandbox, what email should be put in "PayPal business email"(in, Home - Site administration - Plugins - Enrolments - Paypal)

Do I use my business paypal test account email, my normal paypal email, or leave it blank?

Average of ratings: -
In reply to Alan Kmiecik

Re: Paypal Sandbox what to put in "PayPal business email"

by Jason C -

You will want to create a "seller" account within sandbox, and then use that email as the business email for moodle. You will want to make sure that the IPN Settings are correct inside the seller account.  (By logging in using the seller email and password at https://www.sandbox.paypal.com/home )

In reply to Jason C

Re: Paypal Sandbox what to put in "PayPal business email"

by Alan Kmiecik -

Thanks, that is what I thought (and did).  Still can't get it to ernol.  Money flows to Paypal.  If I understand the logs properly, they are not being formed (i.e. no logs show up in the enrol/paypal folder).   Ultimate goal is to use a Paypal button with the IPN URL in the button. Here is what I've done:

 

1

Setup Paypal Sandbox: 

https://developer.paypal.com/

2

Setup Business Test Account (Record user ID and password)

https://developer.paypal.com/devscr?cmd=_sandbox-acct-session

3

Setup Personal Test Account ( Record user ID and password)

https://developer.paypal.com/devscr?cmd=_sandbox-acct-session

4

Put Business email in Moodle Paypal settings

Home - Site Administration - Plugins - Enrolments - Paypal

5

Modify enrol.html  Located at: http://www.yourdomain/enrol/paypal/enrol.html

Remove: 

<?php

    $paypalurl = empty($CFG->usepaypalsandbox) ? 'https://www.paypal.com/cgi-bin/webscr' : 'https://www.sandbox.paypal.com/cgi-bin/webscr';

?>

 

Replace:

<?php

$paypalurl = 'https://www.sandbox.paypal.com/cgi-bin/webscr';

?>

 

6

Enable IPN in Paypal Business account click here

https://developer.paypal.com/devscr?cmd=_sandbox-acct-session

7

Modify ipn.php (http://tracker.moodle.org/browse/MDL-30647)

Replace with ipn-fixed.php

http://tracker.moodle.org/secure/attachment/26347/ipn-fixed.php

Setup of IPN

  1. https://developer.paypal.com/devscr?cmd=_sandbox-acct-session 
  2. Select business account and click Enter Sandbox Site
  3. Login using business sandbox account ID and Password
  4. Under My Account - Profile - Selling Preferences - Instant Payment Notification Preferences
  5. Add the IPN URL =  http://www.yourdomain/enrol/paypal/ipn.php and select enable
  • Ran into problems here because Paypal sandbox is VERY buggy and will send you off to links that don't work right.  My "Under My Account - Profile - Selling Preferences" it did not have an IPN option, as it should.  So I had to logout, close all browsers, clean all histories and start over.
 Then go to inder My Account - Profile - Selling Preferences -Language Encoding Click More Options Use dropdowns to set to UTF-8 and save
In reply to Alan Kmiecik

Re: Paypal Sandbox what to put in "PayPal business email"

by Rehan Saleem -

i am also trying to use paypal enrolment plugging, after following all these steps i am geting this eror 

PAYPAL ERROR: Ping

how can i solve this error .thanks