#prerna_39102

1 messages · Page 1 of 1 (latest)

topaz capeBOT
fast pulsar
#

Moving the message in the thread

The error says , the customer has not ser the payment method.

distant swan
#

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.

fast pulsar
#

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

distant swan
#

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

distant swan
fast pulsar
#

Is there a guide you're following for this?

distant swan
#

yes.. The Stripe documentation

fast pulsar
#

What docs exactly?

distant swan
#

Following this.

fast pulsar
#

I'd recommend reading through the above as it covers everything you'd need to set up payments

distant swan
#

My programming language is Java.

#

I will go though it as recommended

#

Isn't Stripe supported in India?

#

I dont see the country list

fast pulsar
#

It is supported in india..
Country list for what exactly?

distant swan
#

Thelink that you provided shows customer Location

#

There cant find India.. May be thats a subset

fast pulsar
#

yeah its only a few supported currencies listed there
we support around 135+