Mobile payments
To use Headless checkout to accept mobile payments:
- Add the handling of the
show_mobile_payment_screen
event for the mobile system payment.
Example:
Copy
- typescript
headlessCheckout.form.onNextAction((nextAction) => {
switch (nextAction.type) {
case 'show_mobile_payment_screen': {
this.showSecondStep = true;
}
}
});
- Add the
psdk-submit-button
component to add a button at the second payment step.
Example:
Copy
- html
@if (showSecondStep) {
<psdk-submit-button text="Show status"></psdk-submit-button>
}
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.