#kenil-d-hyperlink-infosystem_afterpay
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1252574772412284948
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
I encountered an error while trying to add a payment method to save a card. Why am I getting this error in test mode?
Because you are sending raw card details via the API
๐ What you can share safely
This is a public server. Anyone can see the messages posted here, so you need to be careful when sharing certain information.
๐ Not safe to share
Do not share anything sensitive or privileged on Discord, including the following:
- ๐ Secret API keys (most Stripe secret API keys start with
sk_,rk_, orek_) - ๐ Secrets (examples include Stripe's client secrets, which contain
_secret_, and Stripe's webhook signing secrets, which start withwhsec_) - ๐ Passwords, keys, or other login/authentication details
- ๐ Information about non-public features or functionality
If you don't want something public, don't share it here.
โ Safe to share
Stripe object IDs are safe to share in public, and are often required to help us investigate and debug issues. Some examples of IDs you can share safely are:
- โ
Customer IDs (
cus_) - โ
Checkout Session IDs (
cs_) - โ
Subscription IDs (
sub_) - โ
Invoice IDs (
in_) - โ
Setup Intent IDs (
seti_) - โ
Payment Intent IDs (
pi_) - โ
Charge IDs (
ch_andpy_) - โ
Request IDs (
req_)
This list isn't comprehensive; there are too many Stripe object IDs and prefixes to list that are safe to share publicly.
If in doubt, ask someone on this server with the Stripe Staff role if a particular piece of information is safe to share before you share it.
You should follow this guide instead:>
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=elements
please send me refrence code url or code.
You shouldn't be sending raw card
You need to follow the guide I shared with you above
please share me any refrence for save card on server side with help of api or npm?
No you can't save card details on your server. You need to be PCI compliant
okay please know me how to save card into stripe with help of npm or api.
You can follow this guide:
https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=stripe-hosted
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
I created a payment intent with Afterpay as the payment method, but the Afterpay option is not appearing on the client side.
kenil-d-hyperlink-infosystem_afterpay
what's the PaymentIntent ID?
pi_3PRbJ4LLpJGCnaR90RUokXzi
do you have a return_url in your payment element?
const paymentIntent = await stripe.paymentIntents.create({
amount: (body.amount * 100), // Amount in cents
currency: 'aud',
customer: stripe_customer_id,
metadata: body.metadata,
automatic_payment_methods: {
enabled: true,
}
});
i am enable automatic_payment_methods is true but don't show in client side only show card payment
do you have an accessible url where I could test this out in test mode?