How to set-up paypal sandbox in ubercart

taken from Ubercart PayPal sandbox setup

PayPal sandbox preface:

The trick with the PayPal sandbox is you have 3 accounts. The primary account is your developer account. This logs you into http://developer.paypal.com/. The other two (one Buyer one Seller) work within the sandbox system. You need to login with your developer account before you can use these other accounts. The way I set mine up was to use my email address for the developer account and just use the default address generated by PayPal for the Buyer and Seller accounts. Also, if need be you can create multiple Buyer and Seller accounts under your developer account.

Below is a complete step-by-step for setup and checkout (tested with Drupal 6.10 and Ubercart 2.0 beta3)

1. Go to http://developer.paypal.com/ and create an account. This is separate from any existing PayPal account you may have.

2. Click on "Create a preconfigured buyer or seller account."

3. Check "Buyer", leave the email address alone, change the password if you'd like (but remember to write it down), then click "Create Account".

4. Click again on "Create a preconfigured buyer or seller account." but this time create a "Seller" account.

5. On the "Test Accounts" page enable test mode for the business account by clicking "Disabled" (which changes it to "Enabled").

6. In Drupal, enable the PayPal module (under Ubercart - payments)


7. Under "Administer » Store administration » Configuration » Payment settings" expand the "PayPal Website Payments Standard settings".

8. Set "PayPal e-mail address:" to the "Log-in email" you see for the business account you created (unless you manually set this the email address will be something like "you_12313131233_biz@here.com"). You should be able to get to "Test Accounts" page with the link: https://developer.paypal.com/devscr?cmd=_sandbox-acct-session and see your Seller "Log-in email" address.

9. You can then change the rest of the settings in the Ubercart PayPal module as you'd like. I recommend changing the "Order review submit button text:" to something like "Pay with PayPal".



To complete a test checkout:

1. Make sure you are logged in to PayPal's sandbox server using your main account (go here: http://developer.paypal.com)

2. In Drupal proceed to checkout as you normally would and after you click the button that would normally say "Submit Order", you will be redirected to PayPal's sandbox server. If you are properly logged in with your developer account you will see "XXX's Test Store" at the top of the page.

3. Log in with your Buyer account information (something like "you_12313765733_per@here.com"). Careful here as this is constantly crashing FF3 on my machine.

4. Complete the transaction using your phony test account for the Buyer.

5. You will then see a page saying your transaction is complete and a button taking you back to your store. Order emails do not appear to get sent (to either the buyer or store admin) if the user does not click this button to return to the store, although the order's status is updated to "Payment receiver".


this works with me! thanks to ryangroe@ubercart

4 comments:

tim said...

Good timing with this article. It's just what i started doing today. thanks!

I noticed you don't mention anything about the API key? Isn't this needed as well?

I found that that when creating business accounts, you dont get API credentials unless you select US as the country.

Having A Bright Spark Plan To Make A Blog Is No Longer Enough | Free Advertising Blog said...

[...] How to set-up paypal sandbox in ubercart « Arnelbornales's Blog [...]

Almomop said...

Most people will benefit from a reboot daily. It really is personal choice for how often to turn it off. I would say at least once a week just to let it cool down and blow out the dust buildup if necessary.



________________
How to http://www.yourdictionary.com/community/forums/member/29695/ - wow horde guide

mcdonalds coupons said...

Thank you much for that great post.

Post a Comment