#shubham_code
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- shubham_code, 1 hour ago, 37 messages
đ 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/1253662749775495209
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Try setting a default country value on the billingDetails when creating the Element:
https://docs.stripe.com/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails-address-country
still showing india
const paymentElementOptions = {
layout: "tabs",
fields: {
billingDetails: {
country:"GB"
}
}
};
can we show only two cards by defualt visa & mastercard ?
No you can't restrict card brands
We dont restrict it change dynamically but initailly we want to show two cards visa & master card icons
how to change label CVC to Security code
You can't
how to change label CVC to Security code ?
You can't
what is response of confirm payment
async function handleSubmit() {
setLoading(true);
const { error } = await stripe.confirmPayment({
elements,
confirmParams: {
return_url: "{{ route('front.payment_confirm') }}",
},
});
if (error) {
if (error.type === "card_error" || error.type === "validation_error") {
showMessage(error.message);
} else {
showMessage("An unexpected error occurred.");
}
}
setLoading(false);
}
I want to store confirmation data in database
stripe.confirmPayment will return a Promise. Upon a successful confirmation, your user will be redirected to the return_url you provide before the Promise ever resolves.
If the confirmation fails, the Promise will resolve with an {error} object that describes the failure. When the error type is card_error or validation_error, you can display the error message in error.message directly to your user. An error type of invalid_request_error could be due to an invalid request or 3DS authentication failures.
https://docs.stripe.com/js/payment_intents/confirm_payment
"error": {
"code": "card_declined",
"decline_code": "live_mode_test_card",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"message": "Your card was declined. Your request was in live mode, but used a known test card.",
"param": "",
"request_log_url": "https://dashboard.stripe.com/logs/req_axQ8QVsDzNdPQn?t=1718969815",
"type": "card_error"
}
}
i m using test key & secret and my account is also testing mode then how ?
i used 4242 4242 4242 4242
https://dashboard.stripe.com/logs/req_axQ8QVsDzNdPQn was made with your pk_live_xxx key
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
May need disabling here too: https://dashboard.stripe.com/settings/link
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
there is no option
In morning I trun off link then its working fine but after 3-4 hours it comes again don't understand why ?
its coming on testing mode
in live mode working fine
hi! I'm taking over this thread.