#meisei81

1 messages · Page 1 of 1 (latest)

burnt fableBOT
timid hemlock
timid mirage
#

yesterday I tried to create payment method in java and got an error message "Sending credit card numbers directly to the Stripe API is generally unsafe"

timid hemlock
#

Yes, his/her suggestion is correct as per error message

timid mirage
#

but I failed when I do as the steps in that page I

timid hemlock
#

What is the issue you're facing?

timid mirage
#

I copied the js and html codes in one single html file, and open it in the browser, but there's only a submit button.

#

I clicked it and no response.

timid hemlock
#

Did you create a Setup Intent and return its client secret to the frontend to render the Payment Element? More specifically, Step 4 to 6?

#

If the Payment Element is render correctly, you should see something like this

timid mirage
#

I had imported the stripe jar v22.0.0 into my project but got this error

#

so I remove the red codes

#

But I can do this in curl way, so I got the client secret from the curl

timid hemlock
#

I'd recommend upgrading to the latest stripe-java v22.31.0 or at least v22.14.0

timid mirage
#

Well it says that use v22.0.0 in step one

timid hemlock
#

I see! It's likely an error in the doc. Can you try updating to latest v22.31.0 and check if it works?

timid mirage
#

I have updated to v22.31.0 and it worked!

timid hemlock
#

Yay! That's great to hear

timid mirage
#

How could we update the customer's payment method?

#

Will this be the only way to update the customer's card number in the future?

timid hemlock
#

When Setup Intent is used, the new payment method will be saved onto the Customer object

#

You can update this new payment method to corresponding integration

#

Will this be the only way to update the customer's card number in the future?
Yes

timid mirage
#

okay. got it

#

About the appearance parameter, could we not use this parameter?

timid hemlock
#

You can remove the appearance parameter if you don't intend to use

timid mirage
#

ok

timid mirage
#

Hi, after upgrade to v22.31.0, I found that some api errors.

#

It seems that the parameters "name amount currency" are no more need when creating a line item?

burnt fableBOT