#prerna_39102
1 messages · Page 1 of 1 (latest)
Can you share an example request ID?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Moving the message in the thread
The error says , the customer has not ser the payment method.
try {
String customerId = createCustomer(email, token);
Stripe.apiKey = API_SECET_KEY;
PaymentIntentCreateParams params =
PaymentIntentCreateParams.builder()
.setAmount((long)amount)
.setCurrency("usd")
.setCustomer(customerId)
.setSetupFutureUsage(PaymentIntentCreateParams.SetupFutureUsage.OFF_SESSION)
.setAutomaticPaymentMethods(
PaymentIntentCreateParams.AutomaticPaymentMethods.builder()
.setEnabled(true)
.build()
)
.build();
PaymentIntent paymentIntent = PaymentIntent.create(params);
chargeId = paymentIntent.getId();
This is the way I am creating the payment Intent
Need help.
Well I asked you to share a request ID and you're sharing your code.
I don't know how I can help without the information I requested
Will I able to get request Id in test mode?
I will check and get back
RequestId -
req_2uuMQZadwJf1Wg
Why am I not able to make succful payment
req_2uuMQZadwJf1Wg is the request id
Is there a guide you're following for this?
yes.. The Stripe documentation
What docs exactly?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Following this.
That's the API reference
We have a step by step guide here
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
I'd recommend reading through the above as it covers everything you'd need to set up payments
My programming language is Java.
I will go though it as recommended
Isn't Stripe supported in India?
I dont see the country list
It is supported in india..
Country list for what exactly?
Thelink that you provided shows customer Location
There cant find India.. May be thats a subset
yeah its only a few supported currencies listed there
we support around 135+