#shubham_code

1 messages ¡ Page 1 of 1 (latest)

boreal scarabBOT
lethal emberBOT
#

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.

boreal scarabBOT
#

👋 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.

random goblet
boreal scarabBOT
keen crater
#

still showing india
const paymentElementOptions = {
layout: "tabs",
fields: {
billingDetails: {
country:"GB"
}
}
};

languid pilot
#
defaultValues: {
  billingDetails: {
    address: {
       country: "GB"
    }
  }
}
boreal scarabBOT
keen crater
#

can we show only two cards by defualt visa & mastercard ?

languid pilot
#

No you can't restrict card brands

keen crater
#

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

languid pilot
#

You can't

keen crater
#

how to change label CVC to Security code ?

languid pilot
#

You can't

keen crater
#

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

languid pilot
#

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

keen crater
#

"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 ?

Learn more about error codes and how to resolve them.

#

i used 4242 4242 4242 4242

languid pilot
keen crater
#

this link is off still showing on my checkout page

#

we do not want this

#

there ?

languid pilot
keen crater
#

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

astral niche
#

hi! I'm taking over this thread.