#newb1-SetupIntent
1 messages · Page 1 of 1 (latest)
Which Doc are you following? Charge is an old API and you shouldn't use it nowadays
This is the Doc you should follow: https://stripe.com/docs/payments/save-and-reuse?platform=web
ok thanks, i just don't know what i'm doing
and still unsure how to accomplish what i want
i had it working using charge and customer
but can't figure out setupintents
i guess i'm not understanding, in those docs there's a whole section charge
Let's follow the latest Doc I provide above 🙂
yes, except i still can't figure out how to attach the customer to it
is there any harm in using charge
it works for me
whereas i can't figure setupintents out
and can't get anyone to tell me how to make it work
We can try our best to assist you here
I strongly recommend to use PaymentIntent/SetupIntent APIs (the Doc above, it's SetupIntent) instead of Charge
Recommend to follow step by steps in that guide, and we can help you unblock
again, the steps don't tell you how to attach customer
not that i can see
and the doc above is for setupintent not payment intent
In step 2 you have "Create a Customer" and in step 4, you specify that Customer Id in the SetupIntent creation call
Yes, since you mentioned SetupIntent. Sorry for the confusion, but I said PaymentIntent to distinguish with Charge. It's PaymentIntent/SetupIntent over Charge
ok i see the create a customer, i guess that was the confusion
k so first question here would be where do i put the amounts
in charge there was an 'amount', here there isn't one
yeah i'm ready to give up
no idea how to make this work, nothing but errors
i'm literally copy pasting code from your docs and can't even get the field to show up
i'm going to have to use the charge version at least that works
unless someone can help?
Sorry, back
For SetupIntent, you don't specify an amount. SetupIntent is a flow that you collect the Payment information beforehand, then making a Payment later, which is when you actually specify an amount
are you there
is anyone there
is there a way to pay for support where it's one ongoing conversation without extended breaks
Hi @lethal stone I'll take over this thread, give me a sec to catch up
eh, probably not worth it, i'm a n00b
Hi may I know what problem do you want to solve?
well the first problem is i can't figure out how to get setupintents or payment intents to work because apparently charge isn't recommended. even though it's in your docs.
the second problem is that i can't make sense of where to put what parts of the code
i see he answered a previous question, but it just begs more questions, since i know opentable uses it to accomplish what i want to accomplish
to be clear, i am a n00b and basically just copypasta code and alter as needed to make things happen
but i can't make sense of these docs, which seem to be further broken up into two different sites with seemingly conflicting information
OK. SetupIntent and PaymentIntent are designed for different purpose
- You use SetupIntent to setup reusable payment method for future payments
- You use PaymentIntent to collect instant payments
If you are new to Stripe API, I'll suggest to go with PaymentIntent first.
well, i'll need both apparently
i have two forms, one will be for charging a price
the other is for auth only, to be charged upon no show. like opentable in our stripe dashboard.
which according to the logs uses setupintent to do so.
And we also provide Checkout Session, which support both SetupIntent and PaymentIntent, and it is even easier to get started https://stripe.com/docs/checkout/quickstart
ok but can i insert that into an existing form
the form has html and css/js customizability
and it has a call to a plugin where i can run php (wordpress site and form plugin)
If you are looking for more customization, you can use Payment elements https://stripe.com/docs/payments/elements
yes but do those allow for setupintent and paymentintent
let me be clear about what i need regarding setupintent
if you've ever used opentable, that's what i'm trying to duplicate. even if you haven't used it, you may be familiar because they use stripe to do this, and we (restaurant) can see it in our dashboard.
the basic idea is a customer and setupintent is created, because a cc is required to secure a reservation form.
that gets passed to stripe and shows in our dashboard as uncaptured payment
which we can charge later as necessary.
however, the no show pice is specific
and dynamic based on number of reservations (i can do this with * variable, so not an issue)
but if setupintent doesn't pass an amount, how is this possible?
is the card not actually being authed?
i mean yes i can just send data through with charge and capture false
but that falls off after 7 days average, so not sustainable
so setupintent is needed.
also you guys say not to use charge
oof did i lose you already
Please give me a few sec to understand the use case here.
ok thanks. like i said, you can just look at what opentable does, that's what i'm trying to do, but with our own form.
btw for payment intent use case, i could simply make a product and use other gateways for the buy if i can't get stripe code working in the existing form, so not a priority.
*product in woocommerce that is
OK. here are the high-level steps
- Use SetupIntent to collect payment method from your customer
- once the SetupIntent is succeeded, you can then create PaymentIntent with customer and the collected payment_method to charge your customer with the amount that you want to charge
ok couple things, we won't be doing anything on the site for capturing the payment, it's a rarity, and store management simply does it in the stripe dashboard
so long as the info gets passed into the dashboard that's all i need
however we still haven't addressed the other part about the amount
if no amount is being passed, i can't get my head around how this makes any sense. is opentable simply authorizing some 50 cent rando amount or something?
and then managers are manually entering the actual amount if they have to charge later?
i mean maybe that's exactly what opentable's doing, but i figured the point was, our no show fee is $25, user makes 4 reservations on opentable, so the card gets authed for $100, for example
but if no amount is being passed that can't be the case
the same 4 "200 ok" posts for every opentable reservation call in stripe dashboard logs, here's a set:
200 OK
POST
/v1/setup_intents
1:00:47 PM
200 OK
POST
/v1/payment_methods/pm_1KXrz6IahfN0gVuz0bcDBHrO/attach
1:00:45 PM
200 OK
POST
/v1/customers
1:00:45 PM
200 OK
POST
/v1/payment_methods
1:00:44 PM
clicking into any of those shows no amounts anywhere
so i guess it's true their not actually authing the cards, perhaps just regexing that they're real?
idk
Hi there, can I suggest you try out the SetupIntent API in a test integration, and come back to Discord for any technical problems that you face along the way?
Hi there, this is still Jack.
Could you please let me know the key ask here so that I can do my best to help?
...i've done that rather explicitly
of course if you want to boil it done to one key ask, that would be i've been trying to integrate it and keep getting endless errors because i can't figure out where to put what code
i have it working with customer and charge
Sure, can you give me the request ID so I can take look at the rror?
Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
yeah the code has to work for stripe to see it, i can't get past that part
literally copy pasting from your site i can't even get the element to show
do those prebuilt ui elements allow for setupintent
pretty sure i already asked this
are you still there?
Yes, I'm waiting for the request ID so that I can help you troubleshoot the error.
?
Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
there is no request id, i can't get the code to work because i don't know where each block is supposed to go apparently
already said that
is there a way we can get an answer on the prebuilt ui elements?
Or can you show me the error messages?
maybe we're not communicating. you're wanting to see error messages, i'm telling you the error messages are related to placing either bad syntax or wrong locations on my website
is that what you want to see?
there is no api call taking place, the code has to be done properly for that to happen
Are theses errors related to Stripe?
which is again why i would like an answer regarding the prebuilt ui elements supporting setupintent
well, it's stripe's code so yes.
OK, can you show me the code so I can help you troubleshoot?
it's the code in all the documents you guys keep linking me to
Can I confirm if it is this one https://stripe.com/docs/payments/save-and-reuse?platform=web?
no it's the one for setupintents and customers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
it's like two different sites of documents, which one am i supposed to be using
your link, my link, or both?
one's server side, one's client side, something like that?
OK. the docs that you shared are API references.
I'll suggest you use the development guide (https://stripe.com/docs/payments/save-and-reuse?platform=web%3F) and use the example code in the guide to get started.
ok will do, and where do i put that code in wordpress? in the form's stripe.php plugin? in the form's html block? in wordpress theme's functions.php?
what is the proper location?
this is the heart of the problem, trying to know where to integrate it
it seems multiple locations work but which is the right one
I'll recommend you to hire a developer if you are not familiar with software development.
knew that was coming.
if i could afford to, i wouldn't be here.
so you can't just tell me where to put it and i will?
can you at least answer the question about the prebuilt ui elements??
I'm unable to answer this question because I don't know your project setup.
it's a wordpress site...
but forget about that, can you please answer the question about whether prebuilt ui elements support setupintent and or paymentintent
i've asked like 6 times now
Sorry if I missed your previous questions. And yes, the prebuilt-ui (including Stripe checkout page and payment elements) supports both SetupIntent and PaymentIntent.
not talking ab out a page, talking about the elements
need to be able to conduct this call without going to or creating separate pages
can you link me to the specific element that will accomplish the setupintent/save for future use?
It's the same doc that I shared previously https://stripe.com/docs/payments/save-and-reuse?platform=web
You can select the Customer payment Flow tab to learn more about using payment elements in your integration
that is not the ui elements page that you linked before
You can select the Customer payment Flow tab.
https://stripe.com/docs/payments/elements is what you linked before
and yes i tried the code on the page you linked multiple times in multiple places
long before now
can't even get the card form to show up with it
so what is the story with the charge object, it's the only method i've gotten to work and you guys all keep saying not to use it
help, anyone
Thanks for the waiting, I was busy with another task.
The Charge API only support card payment_method, whereas PaymentIntent/SetupIntent support multiple payment methods.
It's recommended to use PaymentIntent/SetupIntent API so that your integration is more scalable and don't require major change to support more payment_methods
wait so if i only want card payments i can use charge
because i only want card payments for ym use case
Ultimately it's your decision, but I just want to share my inputs.
so yes or no, if i only want card payments for my use case i can use charge
Also Charge API doesn't support 3DS2 (https://stripe.com/en-gb-sg/guides/3d-secure-2) you will need to use the new Payments API to support it.
As I said, it's your decision.
you understand we're a tiny independent business that can't afford a super genius developer to insert lines of code into a wordpress site
i'm all i got, and can't get support from anyone
all i get is links to blocks of code with no context
and i have to figure it out on my own
i figured out charge, and it works. and if nobody will help me with setupintents then that's what i'm stuck with
Still I'd strongly recommend using the new API vs the old Charge API, and I'll do my best to help you with the integration.
i just don't understand this as a support model. this thread started five hours ago and has accomplished nothing, anyone could have simply stated, oh wordpress, yeah people do it all the time, put x here and y there then test it, boom done.
instead i have to go through it because i'm not a super expensive developer with tons of knowledge.
We can help you on the technical problems that you faced during the integration, and advise on the API or params that you should use.
i told you them and your solution was hire a developer.
fine i'll figure it out on my own as usual. just don't know why i keep wasting time trying here.
However, we're unable to help you to build the application and you'll need experts to help you with that.
it's not an app, it's a wordpress site.