#Atuls-Android
1 messages · Page 1 of 1 (latest)
Can you clarify what you mean? What API endpoint are you trying to call, or what guide are you following?
We need to update the card details of the customer for future use. For this we just need to accept the card details and add the payment method to that customer
??
You'd want to follow https://stripe.com/docs/payments/save-and-reuse (the Android tab)
Learn how to save card details and charge your customers later.
Let us check
hello sir,
private void startCheckout(String clientSecretKey) { PaymentMethodCreateParams.Card card = cardMultilineWidget.getPaymentMethodCard();
if (card != null) {
PaymentMethod.BillingDetails billingDetails =
new PaymentMethod.BillingDetails.Builder()
// ...
.build();
// Create SetupIntent confirm parameters with the above
PaymentMethodCreateParams paymentMethodParams = PaymentMethodCreateParams
.create(card, billingDetails);
ConfirmSetupIntentParams confirmParams = ConfirmSetupIntentParams
.create(paymentMethodParams, clientSecretKey);
stripe.confirmSetupIntent(this, confirmParams);
}
}
I am use this code not getting any response
Can you elaborate on what you mean? Is the code being called at all and you do/don't see an API request in your Dashboard logs?
code not working this link
can you help me how to create payment method id using only card details
Which part of the code specifically from that page isn't working? (https://stripe.com/docs/payments/save-and-reuse?platform=android)
The code you pasted above doesn't look like what you'd be using for that guide.
Learn how to save card details and charge your customers later.