configure_widget
Set payment widget styles such as theme, color, and layout separately for PC or mobile, then apply them to sandbox or live environments.
Instructions
결제 위젯의 스타일(테마, 컬러, 레이아웃)을 설정합니다. PC/모바일 별도 스타일 지정 가능. sandbox/live 환경을 선택하여 적용할 수 있습니다. ⚠️ 프로젝트 선택 필요 (로그인 필요)
[스타일 구조] { pc: {...}, mobile: {...}, global: {...} } [지원 스타일 키]
mainTheme: 상단 테마바 (background-color, height)
titleStyle: 헤더 타이틀 (font-size, font-weight)
containerStyle: 메인 컨테이너 (padding-*, background-color)
splitLineStyle: 구분선 (display, border-color, border-width)
buttonStyle: 결제수단 버튼 (border-radius, gap, height, normal/active 상태)
termsAllButtonStyle: 약관동의 버튼 (type, text, normal/active 상태)
termsTextStyle: 약관 텍스트 (normal/active 상태)
cardStyle: 카드결제 섹션 (layout, interest, logo)
promotionStyle: 프로모션 (layout, openType, moreStyle, style)
brandpayStyle: 브랜드페이 (cardSection, term, termText, basic)
[위젯 타입별 차이]
일반결제(type=0): viewType=1top-3rows, buttonStyle.height=60
기본결제(type=1): viewType=4rows/3rows, buttonStyle.height=96, displayTitle=true, displayText=true(PC)
변경하려는 속성만 전달하면 나머지는 기본값 유지 (deep merge). 기본 스타일은 get_widget_default_styles로 확인하세요.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"widget_key": "<widget_key>",
"styles": "<styles>"
},
"name": "configure_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| styles | Yes | 스타일 설정 객체. { pc: {...}, mobile: {...}, global: {...} } 구조. 예: { "pc": { "buttonStyle": { "active": { "background-color": "#ff6600" } } } }. 부분 업데이트 가능 - 변경할 속성만 전달하면 나머지는 기본값 유지. | |
| sandbox | No | 샌드박스(개발) 환경에 적용할지 여부. true=샌드박스, false=라이브(운영) | |
| widget_key | Yes | 위젯 키 (list_widgets로 확인) |