모바일 결제
헤드리스 체크아웃을 사용하여 모바일 결제를 수락하는 방법:
- 모바일 시스템 결제에 대한
show_mobile_payment_screen
이벤트 처리를 추가합니다.
예:
Copy
- typescript
headlessCheckout.form.onNextAction((nextAction) => {
switch (nextAction.type) {
case 'show_mobile_payment_screen': {
this.showSecondStep = true;
}
}
});
psdk-submit-button
구성 요소를 추가하여 두 번째 결제 단계에 버튼을 추가합니다.
예:
Copy
- html
@if (showSecondStep) {
<psdk-submit-button text="Show status"></psdk-submit-button>
}
이 기사가 도움이 되었나요?
의견을 보내 주셔서 감사드립니다!
메시지를 검토한 후 사용자 경험 향상에 사용하겠습니다.오자 또는 기타 텍스트 오류를 찾으셨나요? 텍스트를 선택하고 컨트롤+엔터를 누르세요.