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
getPaymentMethodResource
Call this method to retrieve resources for a given paymentMethodType
.
TYPESCRIPT
Copy
Ask AI
async getPaymentMethodResource(paymentMethodType: string): Promise<Resource>
Parameters
Hide Parameters
Hide Parameters
The payment method type to return a resource for
Returns
Hide Returns
Hide Returns
Promise
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.