renderIn

fun renderIn(composeView: ComposeView)

Renders this PaymentElement in the given ComposeView.

Call this method after successfully creating a PaymentElement to display it in your UI. This is typically called in the onSuccess callback of create.

Example (Java):

PaymentElement.create(..., new PaymentElementCallback() {
@Override
public void onSuccess(PaymentElement element) {
element.renderIn(composeView);
}
});

Parameters

composeView

The ComposeView where the payment UI will be rendered