#jayrodrigues_docs

1 messages ยท Page 1 of 1 (latest)

rotund yachtBOT
#

๐Ÿ‘‹ 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/1298002958663028796

๐Ÿ“ 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.

sweet furnace
civic lake
#

Hey @sweet furnace

Right now we are migrating from the card element to the payment element. So when using the payment element, we need to utilize these parameters?

 payment_method_redisplay: 'enabled',
            payment_method_save: 'enabled',
            payment_method_save_usage: 'on_session',
sweet furnace
#

Correct

civic lake
sweet furnace
#

Apologies I misunderstood your last question. Those parameters aren't present in the payment element calls. You would be specifying this when creating the customer session https://docs.stripe.com/api/customer_sessions/object#customer_session_object-components-payment_element-features-payment_method_allow_redisplay_filters

#

Which payment element flow are you using right now? Do you create the payment intent before or after the payment element and does your confirmation happen on the client or server side?

#

I can send a doc that has instructions for this that are more specific to what you are working with

civic lake
#

That's the card element we are using

#

And this is us now attempt to transition to the payment element

sweet furnace
#

Gotcha, I am clear on which element you are using, but there are different ways to use that element. In all of those ways you will create a customer session at some point but how exactly you use the customer session changes based on how you are using the payment element

#

Which payment element flow are you using right now? Do you create the payment intent before or after the payment element and does your confirmation happen on the client or server side?
These questions will help me find the right doc to send you

civic lake
#

Sorry for the delay, didn't get notified that you msged

#

Reading your message now

civic lake
civic lake
sweet furnace
rotund yachtBOT
civic lake
#

Wonderful, that helps @sweet furnace !

#

Do you think creating the payment intent after the payment element?

quick talon
#

๐Ÿ‘‹ stepping in for my teammate

civic lake
#

Hey @quick talon thanks for stepping in

quick talon
civic lake
#

Not asking if it's possible, I'm more asking what is the suggested / preferred option?

quick talon
#

It really depends on what you're trying to do. Both the deferred intent flow and creating a PI first are valid approaches

#

In case it helps, some users who prefer the deferred intent flow do so because they want to introduce some additional logic before they create the PaymentIntent. For example, they want to collect payment details before presenting the user with the final charge amount/before confirming the payment

civic lake
#

I can see how that's beneficial for a checkout experience.

#

For a use case, where the amount is predetermined, do you think the first option would be ideal?

#

And to make sure I understood corectly. With both options, I will have the ability to allow a customer to determine if they want their payment details saved in Stripe from the payment element, correct?

quick talon
civic lake
#

That's right

quick talon
#

Okay. Yes, if the amount is predetermined and you don't necessarily need details about the user's payment method before confirming the amount, then yes, creating the PI first is a fine flow

civic lake
#

In terms of implementation, which is usually "easier"

quick talon
#

Both should be about the same level of effort, to be honest

civic lake
#

Thanks for your help and support

#

How long are these threads active for?

quick talon
#

We usually close threads ~20 minutes after they become inactive.

civic lake
#

Got it

#

When we switched to payment elements, gettign this error in the console but worked fine for the card element. So when we enter a test credit card and click on submit, it just keeps showing processing...

[Stripe.js]
"You have not registered or verified the domain, so the following payment methods are not enabled in the Payment Element: 

- apple_pay

Please follow https://stripe.com/docs/payments/payment-methods/pmd-registration to register and verify the domain."

Is the fact that nothing is happening on the front-end related to that warning or could it be somethign else?

quick talon
#

It's likely something else since that warning is specifically about ApplePay, which I don't think you're using at the moment, correct?

civic lake
#

That's right

#

What else could it be because the console log isn't showing anythign else

quick talon
#

What is your code doing on button click?

civic lake
#

When clicking, it's supposed to create a payment intent and process the payment

quick talon
#

Can you provide more details? Can you share your frontend code for what happens after the button click?

quick talon
#

@civic lake Do you still need help here?

civic lake
#

Sorry @quick talon -trying to get you the informatino you requested.