React Native SDK
- Installation
- Primer
- PrimerHeadlessCheckout
- Assets manager
- Native UI manager
- Raw data manager
- Component with redirect manager
- Klarna headless manager
- ACH headless manager
- Vault manager
- Common objects
getPaymentMethodResources
Call this method to retrieve resources for all the payment methods available on the current client session.
TYPESCRIPT
Copy
Ask AI
async getPaymentMethodResources(): Promise<Resource[]>
Returns
Hide Returns
Hide Returns
Resource[]
Show Resource
Show Resource
AssetResource
Show child attributes
Show child attributes
A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodLoad
callback.
A user friendly English localized string identifier for the payment method
NativeViewResource
Show child attributes
Show child attributes
A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodLoad
callback.
A user friendly English localized string identifier for the payment method.
The name of the native view. Pass this to NativeResourceView when rendering.
TYPESCRIPT
Copy
Ask AI
<NativeResourceView
onPress={() => {
// Handle tap
}}
nativeViewName={nativeViewResource.nativeViewName}
style={{
marginHorizontal: 20,
marginVertical: 8,
justifyContent: "center",
alignItems: "center",
}}
/>
On this page
Assistant
Responses are generated using AI and may contain mistakes.