Merchant API Key
Create a Merchant API Key in Developers > Merchant API Keys in SixPay Merchant Console. Grant it thecheckout_session:create scope for server-side session creation.
Store the mapi_... secret in server configuration. Do not send it to a browser or use it to create another API key.
Create a session
merchantOrderId, items, and every item’s lineItemId, quantity, and decimal-string unitAmount. Optional skuId, spuId, and categoryIds allow trusted promotion-rule matching.
metadata.title, metadata.description, and HTTPS metadata.imageUrl are the only product presentation fields exposed to the browser. Do not put private fulfillment data in session metadata.