In this third part of a five-part series on building the checkout and order processing components of an ecommerce website with Ruby-on-Rails, we'll focus on integrating PayPal into the application's capabilities. This article is excerpted from chapter nine of the book Practical Rails Projects, written by Eldon Alameda (Apress; ISBN: 1590597818).
Online Order Processing: Using PayPal - Creating a Dummy Bank Account and Credit Card (Page 2 of 4 )
The Sandbox is a safe testing environment and replica of the production PayPal environment. We’ll use it to create a business account and a dummy credit card for our tests.
From the PayPal Developer Center homepage, click the Sandbox link to open the PayPal Sandbox page. Click the Create Account link and select Business Account. To create the business account, follow the suggested steps. Remember to write down the credit card information, because you’ll need it later.
Once you have created the test account, you should see it listed on the Sandbox page, as shown in Figure 9-6.
Figure 9-6.The PayPal Sandbox page displaying the test account
Continue by clicking the Launch Sandbox button beneath the Test Accounts listing. This opens the Sandbox login page. Log in, and you should see the business account, as shown in Figure 9-7.
Figure 9-7.The business account displayed in the PayPal Sandbox
Here, you can see that the status of the account is verified. In the example in Figure 9-7, we have already made some test transactions, which is why the account balance is $30,536,45.