# d払い (Docomo)

> Accept one-time d払い (Docomo) purchases through the Direct API or Checkout with customer details supplied in advance, and confirm the result on your server.

## Basic information

Customers complete the requested identity verification in the hosted d払い payment flow and confirm payment.

- Integration paths: [Direct API](/payments/online-payments/api), [Checkout](/payments/online-payments/checkout)
- Transaction type: One-time payment
- `lpmsInfo.lpmsType`: `NTT_Docomo`

| Customer country/region | Order currency |
| --- | --- |
| 🇯🇵 JP | JPY |

The customer country/region is the `billingInformation.country` value in the payment request.

This guide applies to Japanese merchant entities that have completed onboarding and enabled this method, when you supply the customer’s billing name, Katakana name, email, actual country, and phone number before starting the payment, as described in [Before you begin](#before-you-begin). Before using another market or order currency, confirm the enabled scope for your merchant account and application with Onerway, then check the current order with [List available payment methods](/payments/api-reference/endpoints/list-available-payment-methods).

<note>

Before you apply to enable d払い (Docomo), contact Onerway to confirm that it can be enabled for your merchant account and application.

</note>

## Before you begin

Complete [Setup](/payments/get-started/setup) and confirm that d払い (Docomo) is enabled. Also confirm transaction limits, the applicable payment validity period, settlement arrangements, and the test procedure. For amount formatting, see [Currency and amount validation](/payments/get-started/currency-and-amount).

Confirm merchant-entity eligibility and enablement with Onerway before offering d払い (Docomo). Collect the customer details for this flow and supply them in `billingInformation`, using the actual billing country. Follow the API conditions for shipping information. Configure your notification and return URLs, and store the mapping between your order and the Onerway identifiers.

Supply the collected `firstName`, `lastName`, `jpFirstName`, `jpLastName`, `email`, `country`, `phoneCountryCode`, and `phone` in `billingInformation`. Use Katakana for the Japanese name fields. Both billing and shipping objects must meet the API field conditions. Supply the phone number in advance for this flow: `phoneCountryCode` contains digits without `+`, and `phone` contains the local number without its country code. This flow does not rely on the payment page collecting missing details.

## Start the payment

### Direct API

1. Check [List available payment methods](/payments/api-reference/endpoints/list-available-payment-methods) for the current order. After the customer selects this method, call [Create direct transaction](/payments/api-reference/endpoints/direct-create-transaction) from your server with `productType=LPMS`, `subProductType=DIRECT`, `txnType=SALE`, and `paymentMode=WEB`. Set `lpmsType=NTT_Docomo` in [`lpmsInfo`](/payments/api-reference/endpoints/direct-create-transaction#request-lpmsInfo), encoded as a JSON string.
2. Supply the customer details prepared above in `billingInformation`, and follow the API requirements for `shippingInformation`. Encode both as JSON strings. Include products, notification and return URLs, and merchant-collected end-user IP, browser, and device information in [`txnOrderMsg`](/payments/api-reference/endpoints/direct-create-transaction#request-txnOrderMsg). Keep product and order currencies consistent, with product amounts, discounts, and shipping fees adding up to `orderAmount`.<br />Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. Replace the method with `NTT_Docomo`, use JPY for this flow, and supply the actual order, customer name, email, phone, and address details. The example amount does not establish a transaction limit.
3. Store the returned `paymentId` and `transactionId`. When `status=R` and `actionType=RedirectURL`, redirect the customer’s browser to `redirectUrl`. The response example “Redirect local payment response (illustrative)” shows this shape. For other actions or states, follow [Local payment integration](/payments/online-payments/payment-methods/local-payment-methods#handle-the-customer-action). Do not repeatedly create the same order while waiting.
4. The customer follows `redirectUrl` to the provider’s payment page or app and continues as instructed. When the customer returns to your site, display the result retrieved from your server. See [Request signing](/payments/get-started/request-signing) for authentication.

### Checkout

When locking Checkout to this method, first call [List available payment methods](/payments/api-reference/endpoints/list-available-payment-methods) for the current order and confirm that the method is returned. When Checkout displays all available methods, Onerway performs this filtering.

1. On your server, call [Create checkout payment](/payments/api-reference/endpoints/create-checkout-payment) with `productType=ALL`, `subProductType=DIRECT`, and `txnType=SALE`. To show only d払い (Docomo), set [`lpmsInfo.lpmsType`](/payments/api-reference/endpoints/create-checkout-payment#request-lpmsInfo) to `NTT_Docomo`, sending `lpmsInfo` as a JSON string. If you omit `lpmsInfo`, the customer chooses from the methods available for the order.
2. Supply the required billing, shipping, product, return URL, and notification URL fields. Encode [`billingInformation`](/payments/api-reference/endpoints/create-checkout-payment#request-billingInformation) and `shippingInformation` as JSON strings. Keep product and order currencies consistent, and ensure that product amounts, discount entries, and shipping fees add up to `orderAmount`.<br />Select the request example “Unified Checkout with all available payment methods”. Replace the order and customer details, use JPY for this flow, include the billing details listed above, and add this method’s `lpmsInfo` if you want to select only d払い (Docomo). Remove the example’s `cardInfo` object for this flow. The example shows the shared Checkout request structure.
3. Select the response example “Unified Checkout session created”. Store the returned `paymentId` and `transactionId` against your order, then redirect the customer’s browser to `redirectUrl`. The initial `status=U` means that payment has not been completed.
4. Checkout handles the payment page and subsequent customer interaction. When the customer reaches `returnUrl`, display the result retrieved from your server. For signing, redirects, and return handling, see [Checkout integration](/payments/online-payments/checkout).

## Customer actions and final result

Customers follow the hosted d払い payment flow, complete the requested identity verification, review the current purchase, and confirm payment. Follow the options presented on the page; authentication steps can vary. Your application does not collect d account credentials, PINs, or verification codes.

Customers may leave before completing payment. Completing authentication or returning to your site does not confirm payment. Keep the order awaiting confirmation until your server retrieves the Onerway result. Any later settlement of the customer’s carrier bill is separate from your handling of the Onerway payment result.

Process the order using a signature-verified [payment result webhook](/payments/api-reference/webhooks/payment-result). If no notification has arrived or you need to check the result, call [Query payments](/payments/api-reference/endpoints/query-payments) with the stored `paymentId`. Fulfill the order only after your server confirms a successful payment. For verification, acknowledgement, idempotency, and query fallback, see [Webhooks](/payments/get-started/webhooks).

## Refunds and disputes

Confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow [Refunds](/payments/online-payments/scenarios/refunds).

## Testing and go-live

Confirm the test environment and available d払い (Docomo) test procedure with Onerway, then follow [Sandbox testing](/payments/get-started/testing):

1. Test each path you use with JPY and the customer details prepared above. For the Direct API, confirm that the returned redirect opens the provider’s payment page or app. For Checkout, confirm that the first `redirectUrl` opens Checkout and that d払い (Docomo) is available before proceeding to the provider’s page.
2. Check the purchase details and the authentication and confirmation steps provided by the d払い (Docomo) flow. Complete the agreed payment test, then confirm the result on your server. Completing verification or reaching a return page alone does not pass the successful-payment check.
3. Test a customer leaving before authorization, unsuccessful verification or purchase, and a return to your site before a final result. Verify query fallback when no notification has arrived and idempotent handling of duplicate notifications.
4. For go-live acceptance, retain the notification and acknowledgement for the same order. Query the payment status and check that it matches the notification. Check production enablement, notification and return URLs, limits, and validity periods. Test refunds separately if they are enabled.
