Pagamentos por dispositivos móveis
Para usar a Headless checkout para aceitar pagamentos móveis:
- Adicione a manipulação do evento
show_mobile_payment_screen
para o pagamento do sistema móvel.
Exemplo:
Copy
- typescript
headlessCheckout.form.onNextAction((nextAction) => {
switch (nextAction.type) {
case 'show_mobile_payment_screen': {
this.showSecondStep = true;
}
}
});
- Adicione o componente
psdk-submit-button
para adicionar um botão na segunda etapa de pagamento.
Exemplo:
Copy
- html
@if (showSecondStep) {
<psdk-submit-button text="Show status"></psdk-submit-button>
}
Este artigo foi útil?
Obrigado pelo seu feedback!
Avaliaremos sua mensagem e a usaremos para melhorar sua experiência.Encontrou um erro de texto ou digitação? Selecione o texto e pressione Ctrl+Enter.