We have implemented using react to get save card and getting payment method id successfully like this:
const paymentMethodReq = await stripe.createPaymentMethod({
type: "card",
card: elements.getElement(CardNumberElement),
billing_details: formData
})
Above code is being used in reactjs, that's working fine, but we are going through a trouble to implement same feature on android, we have not found anything for kotlin.
we will attach customer and other thing later, we only want to get the payment method id to save the card, that is exactly what we have done on reactjs but not getting how to implement in kotlin.
Can anyone help me what you are using in kotlin for the same feature?