Google Developers Academy

Set up as a merchant

Learning objectives
  • Testing in the sandbox
  • Buyer and merchant accounts
  • Merchant Center
Related

In this lesson you will learn how to:

  • Use the sandbox environment to test your payments integration
  • Setup Google Wallet merchant and buyer accounts
  • Use the Merchant Center to manage your orders

Using the sandbox environment

The sandbox is an environment designed to help you test your implementation by placing an order without incurring charges. The sandbox offers the same functionality as the production system with the following exceptions:

  • The sandbox does not actually execute debits and credits.
  • The sandbox requires you to use test credit card numbers.

Once you have thoroughly tested you web app's payment flow in the sandbox environment you can deploy to the production environment with only a few configuration changes.

Signing up as a merchant

In order to sell digital goods you will need to create a merchant account. It is recommended to start by creating sandbox accounts and test all aspects of your payments integration before deploying to a production environment. For the purposes of this course you will need to use a sandbox account. Please follow these instructions and create a merchant account for sandbox (defer creating the production account until your app is tested and ready for deployment).

Once you have created the merchant sandbox account, you can access your Seller Identifier and Seller Secret to create and order for digital items. For this tutorial, retrieve your Seller Identifier and Seller Secret values from the merchant's sandbox settings page (please note the screenshot below with the air-brushed Seller Secret):

Then update the sellerinfo.py file in the downloaded sample app:

SELLER_ID = "INSERT YOUR SELLER ID HERE"
SELLER_SECRET = "INSERT YOUR SELLER SECRET HERE"

Creating buyer accounts

Customers will buy digital goods from a web app using their Google Wallet account. When testing your app in the sandbox environment you must use a sandbox buyer Wallet account with the test credit card numbers below:

Card type Card number CVC Expiration date
American Express 3782 8224 6310 005 any four digits any future date
Discover 6011 1111 1111 1117 any three digits any future date
MasterCard 5555 5555 5555 4444 any three digits any future date
Visa 4111 1111 1111 1111 any three digits any future date

Using the Merchant Center

The Google Payments Merchant Center is a very useful online interface that allows you to manage orders placed through In-App Payments.

Through the Merchant Center you can:

  • Cancel orders
  • Refund orders
  • Review your payout information
  • Generate and download reports

You can access the Merchant Center at the following URLs:

Next Steps

After you have completed the sandbox merchant and buyer account creation steps and familiarized yourself with the Merchant Center, you're ready to move on and Create an order.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.