Documentation Index
Fetch the complete documentation index at: https://primer.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
PrimerWebRedirectScope manages payment methods that redirect the user to an external web page to complete payment (e.g., Twint).
Declaration
Properties
| Property | Type | Description |
|---|---|---|
paymentMethodType | String | Payment method type identifier (e.g., "TWINT") |
state | AsyncStream<PrimerWebRedirectState> | Stream of web redirect state changes |
Customization
| Property | Type | Description |
|---|---|---|
screen | WebRedirectScreenComponent? | Full screen replacement. Signature: (any PrimerWebRedirectScope) -> any View |
payButton | WebRedirectButtonComponent? | Custom pay button. Signature: (any PrimerWebRedirectScope) -> any View |
submitButtonText | String? | Submit button label |
This scope inherits
start(), submit(), cancel(), onBack(), presentationContext, and dismissalMechanism from PrimerPaymentMethodScope.PrimerWebRedirectState
Flow
| Property | Type | Description |
|---|---|---|
status | Status | Current payment status |
paymentMethod | CheckoutPaymentMethod? | Payment method details |
surchargeAmount | String? | Formatted surcharge amount |
Payment methods
| Payment Method | Type String |
|---|---|
| Twint | "TWINT" |
Web redirect APMs share the same scope type. Use the
paymentMethodType property to identify which payment method is active.See also
Scopes overview
All available scopes