Payment UI and Integration
Modem Standard
1. Using Payment Sessions
Payment sessions simplify the payment process by redirecting the customer to a secure payment page hosted by Modem. You create a payment session on your backend, specifying details like the amount and currency. The customer completes the payment, and you verify the transaction via webhook or API. This method is ideal for a simple, secure checkout experience.
Steps:
- Create a payment session on your backend.
- Redirect the customer to Modem’s secure payment page.
- Confirm the payment status via webhook or API.
2. Using Direct Payment Intent
A payment intent gives you more control over the payment process. You create the payment intent on your backend, collect payment details directly from the customer, and confirm the payment. Afterward, you verify the transaction status via webhooks or API.
Steps:
- Create a payment intent on your backend.
- Collect customer payment details.
- Confirm the payment and verify the status via webhook or API.