#yonghuming1212
1 messages · Page 1 of 1 (latest)
hi
As the error says, you shouldn't send card number directly in Stripe API
Do you have a request id? req_xxx. Find it from https://dashboard.stripe.com/test/logs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Previously, I could have sent the card number directly
Are there any switches available
There is a setting in Dashboard. But I would like to make sure you know that needs PCI Compliance
Can you tell me specifically where the instrument panel is turned on
Sorry which instrument panel?
Re: PCI Compliance, please make sure to have a look at https://stripe.com/docs/security/guide
How to activate PCI
I would recommend writing to Support and they would be able to explain better than us
: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
If you want to use direct card number information through API, you must register for PCI authentication, right
Yes, it is on https://dashboard.stripe.com/settings/integration, but I want to make sure you know what that means
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
Okay, thank you
Hello, the payment demo on the JS page has been posted. Thank you
👋 Taking over this thread! Is there anything that I can help with?
Provide a demo of the JS payment page, thank you
Here is the example of using Payment Element: https://stripe.dev/elements-examples/
You may refer to this guide to start Payment Element integration: https://stripe.com/docs/payments/quickstart?platform=web
Please provide another demo for JS payment in Java language. Thank you
You can select the language in https://stripe.com/docs/payments/quickstart?platform=web
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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);
}
The minimum amount of HKD is $4.00: https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts
No payment method is available if the the amount is below minimum
Directly running this method reported an error, referring to server.java
Please set the payment amount to HKD4.00 and above
thank you
{"clientSecret":"pi_3NcN4ZEgcaDwdQRT1u2yT12o_secret_OaydjH7q0Png2WZBN60rC6M6B"}
What should the front-end do after receiving the returned message?
Have you followed this guide? https://stripe.com/docs/payments/quickstart?platform=web
After the Payment Intent is created, the client secret should be returned to client to render Payment Element
You can find the example code of client JS handling in checkout.js example
What is the error?
hello?
What is the error message? I can only see a few red crosses
Without error message, I can't tell what the problem is
Does it not support the iframe src method
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
Can checkout. html not be directly referenced in iframe
I'd recommend checking:
- Where was error 400 thrown?
- 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?
It shouldn't be iframe
Payment Element should be used directly in your checkout page
I'd recommend downloading the example code here as the reference: https://stripe.com/docs/payments/quickstart?platform=web
Yup! You shouldn't put Payment Element in the source of iframe
Please provide the download addresses for these two files. Thank you
This channel is for technical integration questions. For PCI compliance related query, please reach out to Support https://support.stripe.com/contact
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
You should use client_secret and fetch the Payment Intent to check the status
This part of the code in the doc
thank you
No problem! Happy to help 😄