#jinx_code

1 messages ¡ Page 1 of 1 (latest)

compact belfryBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1288262314696380417

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

sterile edge
#

Hi there

sage shard
#

I'm creating the payment method on the client side with:

const { error: submitError } = await elements.submit();
if (submitError) {
console.log("submitError", submitError);
setErrorMessage("error");
return;
}

  const { error: paymentMethodError, paymentMethod } =
    await stripe.createPaymentMethod({
      elements,
      params: {
        billing_details: {
          name: editTransaction.patient.name,
        },
      },
    });
#

Hey

sterile edge
#

By default, the PaymentElement will dynamically update to collect only the necessary address fields for a given payment method type. If you opt to hid any billing details, you have to pass a value when calling submit()

#

Taking a step back though, the PaymentElement is intended to be used for card not present transactions where the customer is the one typing in their card details themselves. It's not intended to be used on a point of sale system

sage shard
#

Gotcha so I should use CardElement probably?

sterile edge
#

Not exactly. The CardElement is also intended for card not present transactions

sage shard
#

What should i use then? My own inputs that are sent to stripe immediately?

sterile edge
#

If the customers are purchasing something in person, I recommend using Stripe Terminal with a provider attending a kiosk with a card reader. Alternatively, there could be some way where you text a customer a link or direct them to a page where they can complete payment in person but on their own mobile devices.

If the customers are purchasing something over the phone, I recommend working with our support team on "MOTO payments": https://stripe.com/resources/more/moto-payments-101