#yonghuming1212

1 messages · Page 1 of 1 (latest)

daring zephyrBOT
obtuse summit
#

hi

dense fossil
#

As the error says, you shouldn't send card number directly in Stripe API

obtuse summit
#

Previously, I could have sent the card number directly

#

Are there any switches available

dense fossil
#

There is a setting in Dashboard. But I would like to make sure you know that needs PCI Compliance

obtuse summit
#

Can you tell me specifically where the instrument panel is turned on

dense fossil
#

Sorry which instrument panel?

obtuse summit
#

How to activate PCI

dense fossil
#

I would recommend writing to Support and they would be able to explain better than us

violet galeBOT
#

:question: Have a non-technical question, account issue, or need one-on-one support?
We wish we could help, but this community is focused on developers and technical discussions. Our support team will be able to assist you better than we can: https://support.stripe.com/contact

obtuse summit
#

If you want to use direct card number information through API, you must register for PCI authentication, right

dense fossil
#

Handling card number directly means you are exposed to PCI Compliance, it's not just turning on the setting on Dashboard

#

If you continue to send card details directly to our API, you’ll be required to upload your SAQ D annually to prove your business is PCI compliant. SAQ D is the most onerous of all the SAQs, with over 40 pages of requirements you must implement to remain PCI compliant

obtuse summit
#

Okay, thank you

daring zephyrBOT
obtuse summit
#

Hello, the payment demo on the JS page has been posted. Thank you

next seal
#

👋 Taking over this thread! Is there anything that I can help with?

obtuse summit
#

Provide a demo of the JS payment page, thank you

next seal
obtuse summit
#

Please provide another demo for JS payment in Java language. Thank you

next seal
obtuse summit
#

com.stripe.exception.InvalidRequestException: No valid payment method types for this Payment Intent. Please ensure that you have activated payment methods compatible with your chosen currency in your dashboard (https://dashboard.stripe.com/settings/payment_methods) or specify payment_method_types; request-id: req_NpefY3kAOI2u1a

#

Hello, could you please take a look at this issue

#

public static String aaaa() {
Stripe.apiKey = "sk_live_51NXfWCEgcaDwdQRTE6yjYSCxbPxz6m3fwJiao798G2oXV00x8Jm2tD7";
PaymentIntentCreateParams params =
PaymentIntentCreateParams.builder()
.setAmount(Long.valueOf(100))
.setCurrency("hkd")
.setAutomaticPaymentMethods(
PaymentIntentCreateParams.AutomaticPaymentMethods
.builder()
.setEnabled(true)
.build()
)
.build();

    // Create a PaymentIntent with the order amount and currency
    PaymentIntent paymentIntent = null;
    try {
        paymentIntent = PaymentIntent.create(params);
    } catch (StripeException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    CreatePaymentResponse paymentResponse = new CreatePaymentResponse(paymentIntent.getClientSecret());
    
    return new Gson().toJson(paymentResponse);
}
next seal
obtuse summit
#

Directly running this method reported an error, referring to server.java

next seal
#

Please set the payment amount to HKD4.00 and above

obtuse summit
#

thank you

#

{"clientSecret":"pi_3NcN4ZEgcaDwdQRT1u2yT12o_secret_OaydjH7q0Png2WZBN60rC6M6B"}

#

What should the front-end do after receiving the returned message?

next seal
#

You can find the example code of client JS handling in checkout.js example

obtuse summit
#

yes

#

but

#

Checkout. js will report an error in eclipse

next seal
#

What is the error?

obtuse summit
#

hello?

next seal
#

What is the error message? I can only see a few red crosses

#

Without error message, I can't tell what the problem is

obtuse summit
#

Does it not support the iframe src method

next seal
#

From the error, it looks like your server returned 400. Was that the endpoint to create the Payment Intent? If so, then the following error on link authentication element and payment element would be thrown since no client secret is set correctly at client

obtuse summit
#

Can checkout. html not be directly referenced in iframe

next seal
#

I'd recommend checking:

  1. Where was error 400 thrown?
  2. Was the client secret returned correctly to the client and set in the elements cereation
#

Can you share your development website URL, so that I can take a look?

obtuse summit
#

Can't this be done?

next seal
#

It shouldn't be iframe

#

Payment Element should be used directly in your checkout page

obtuse summit
#

Iframe not supported

#

that's right

next seal
#

Yup! You shouldn't put Payment Element in the source of iframe

obtuse summit
#

Please provide the download addresses for these two files. Thank you

next seal
obtuse summit
#

Message returned after successful payment

#

Which parameter determines successful payment

#

This code is returned after my local payment is successful. What I want to clarify is how to confirm the payment is successful, and then I can update my local database

next seal
#

You should use client_secret and fetch the Payment Intent to check the status

#

This part of the code in the doc

obtuse summit
#

thank you

next seal
#

No problem! Happy to help 😄