Learn about taking electronic payments in supported countries using the Square Point of Sale API.
Point of Sale API

Take E-Money Payments in Japan

Java (Android)

Important

E-money payments are supported only in Japan. If you are developing a Point of Sale API integration for other regions, the content of this topic does not apply.

The Point of Sale API supports accepting electronic money (e-money) payments in Japan using the Square Point of Sale application and Square Reader. E-money compatible payment card brands include transportation group cards (such as Suica and PASMO), iD, and QUICPay.

To accept e-money payments, sellers must complete a short application process in the . When approved, a seller using your application sees the e-money option when your application launches Square Point of Sale using the Point of Sale API.

If a seller is approved to accept e-money payments, the e-money option appears if your application supports the CARD tender type.

A graphic showing the Point of Sale application running on a device in Japan and showing a localized payment page.

Add code that creates a new charge request and uses it to initiate a transaction in the Point of Sale application. The following function uses ChargeRequest.Builder to create a charge for ¥1 JPY and restrict the tender type to CARD. It then uses that request to create a ChargeRequest and initiate the transaction with an Intent object.

Create a new charge request as shown:

Note

The AlertDialogHelper object that is used in this code block is an example of a helper class instance and is not part of the Point of Sale SDK.

Mobile web transactions are initiated by choosing a link to the Square Point of Sale application. Because the request URL includes details about the transaction, you should build the URL dynamically instead of hardcoding it. The link URL includes the transaction information as parameters and is formatted differently for Android and iOS applications.

The request URLs of the Square Point of Sale application for Android are formatted as intent requests. For example:

Android requires URLs to be wrapped with Android start and end tokens when they contain key-value pairs delimited with semicolons. The Android start and end tokens are intent:#Intent; and end.

To build your request URL:

  1. Create a JavaScript file called open_pos.js.

  2. Add code to define some useful constants, configure your mobile web application, and set the transaction total.

  3. Add code to build the request URL. For a detailed list of all possible URL parameters, see Mobile Web Technical Reference.

  4. Add the following script tag to your HTML head to load your open_pos.js file:

  5. Add a button to your mobile web application that runs open-POS.js.