Create PayPay QR Code
create_qr_codeCreate a dynamic PayPay QR code for customer payment by specifying amount and order details. Get a deeplink URL and inline PNG image to present for scanning.
Instructions
Create a dynamic PayPay QR code that a customer can scan to pay.
Returns the QR code both as a URL (deeplink + hosted image) and as an inline PNG image.
Use wait_for_payment to poll until the customer completes the payment.
顧客がスキャンして支払うためのPayPay動的QRコードを作成します。
QRコードのURL(ディープリンクとホストされた画像)とインラインPNG画像の両方を返します。
顧客が支払いを完了するまで wait_for_payment でポーリングしてください。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in JPY (integer, no decimals). 金額(円、整数)。 | |
| code_type | No | QR code type. Currently only ORDER_QR is supported. | ORDER_QR |
| order_items | No | Optional line-item breakdown shown in the PayPay app. 商品明細(任意)。 | |
| redirect_url | No | Where to send the user after they complete payment in the PayPay app. | |
| redirect_type | No | How the redirect should open: browser (WEB_LINK) or app (APP_DEEP_LINK). | |
| is_authorization | No | If true, this is a pre-auth (hold funds now, capture later). 事前承認(preauth)フラグ。 | |
| order_description | Yes | What the customer is paying for. 注文内容。 | |
| merchant_payment_id | No | Unique ID for this payment. Auto-generated (UUID) if omitted. Reusing an ID for a different order will fail. 注文ごとの一意のID。省略時は自動生成。 |