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
1headlessCheckout.form.onNextAction((nextAction) => {
2 switch (nextAction.type) {
3 case 'show_mobile_payment_screen': {
4 this.showSecondStep = true;
5 }
6 }
7});
- Add the
psdk-submit-button
component to add a button at the second payment step.
Example:
Copy
- html
1@if (showSecondStep) {
2 <psdk-submit-button text="Show status"></psdk-submit-button>
3}
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.