移动支付
要使用Headless checkout接受移动支付:
- 添加面向移动系统支付的
show_mobile_payment_screen
事件处理。
示例:
Copy
- typescript
1headlessCheckout.form.onNextAction((nextAction) => {
2 switch (nextAction.type) {
3 case 'show_mobile_payment_screen': {
4 this.showSecondStep = true;
5 }
6 }
7});
- 添加
psdk-submit-button
组件以在支付步骤的第二步中添加按钮。
示例:
Copy
- html
1@if (showSecondStep) {
2 <psdk-submit-button text="Show status"></psdk-submit-button>
3}
本文对您的有帮助吗?
感谢您的反馈!
我们会查看您的留言并运用它改进用户体验。发现了错别字或其他内容错误? 请选择文本,然后按Ctrl+Enter。