Sandbox Testing for Developers
==============================
Set up the store
* Configure for Base Location United Kingdom and Currency Pounds Sterling
Set up a sandboxed business (seller) account
* Go to https://developer.paypal.com/
* Log In (you'll need to use a real PayPal account to set up developer accounts)
* You might get dumped into your PayPal account after logging in. If so, go to https://developer.paypal.com/ again
* Navigate to https://developer.paypal.com/developer/accounts/
* Click Create Account
* In Country, select UK
* In Account Type, select Business
* In email address, give a real email address, e.g. testselleruk@domain.com
* Give a password
* Set the balance to 1500
* Click Create
* You should be returned to the Sandbox Test Accounts page
* Click on the arrow next to the account you just created and then Profile
* Click on Enable Pro and then Enable (Pro is required for Hosted to work)
* Go to the API Credentials tab
* Copy the email and API credentials into wp-admin/admin.php?page=wc-settings&tab=checkout§ion=wc_gateway_paypal_pro_hosted
* Make sure Enable PayPal sandbox is checked
* Click Save changes
Set up a sandboxed personal (buyer) account
* Navigate to https://developer.paypal.com/developer/accounts/
* Click Create Account
* In Country, select UK
* In Account Type, select Personal
* In email address, give a real email address, e.g. testbuyeruk@domain.com
* Give a password
* Give a last name, but leave the first name blank
* Set the balance to 1500
* Click Create
Make a purchase using a Sandbox PayPal Account
* Open an incognito window
* Add an item to your cart
* Proceed to checkout
* Enter the sandboxed personal (buyer) account email in the checkout form
* Enter an initial for the First Name, e.g. J
* Enter a last name, e.g. Doe
* Enter a UK address, e.g. +44 20 7224 3688
221B Baker St
Marylebone, London NW1 6XE
* Complete the rest of the checkout form as well
* Select on the PayPal Pro Hosted payment option
* Click on Proceed to Payment
* You'll be redirected to PayPal. Login with the sandbox credentials there and complete the payment.
* You'll be returned to the site.
Make a purchase using a test Credit Card in the Sandbox
* Open an incognito window
* Add an item to your cart
* Proceed to checkout
* Don't use a sandbox email buyer address but use something else
* Enter an initial for the First Name, e.g. J
* Enter a last name, e.g. Doe
* Enter a UK address, e.g. +44 20 7224 3688
221B Baker St
Marylebone, London NW1 6XE
* Complete the rest of the checkout form as well
* Select on the PayPal Pro Hosted payment option
* Click on Proceed to Payment
* Use Visa/Delta/Electron with test card number 4917300800000000 exp 12/17 cvv 123
* The payment will be processed in the same iFrame and then you'll be sent to the Order Received page.