Call this method to retrieve resources for a given paymentMethodType.

1
async getPaymentMethodResource(paymentMethodType: string): Promise<Resource>
typescript
copy

Parameters

paymentMethodType
StringRequired
The payment method type to return a resource for

Returns

Resource
paymentMethodType
stringRequired

A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodLoad callback.

paymentMethodName
stringRequired
A user friendly English localized string identifier for the payment method
colored?
string
dark?
string
light?
string
paymentMethodType
stringRequired

A unique string identifier for the payment method. Supported payment methods for current client session are returned in onAvailablePaymentMethodLoad callback.

paymentMethodName
stringRequired
A user friendly English localized string identifier for the payment method.
nativeViewName
stringRequired
The name of the native view. Pass this to NativeResourceView when rendering.
123456789101112
<NativeResourceView    onPress={() => {        // Handle tap    }}    nativeViewName={nativeViewResource.nativeViewName}    style={{        marginHorizontal: 20,        marginVertical: 8,        justifyContent: 'center',        alignItems: 'center'    }}/>
typescript
copy