#newb1-discord
1 messages Β· Page 1 of 1 (latest)
Hi, please see the message in #πrules and feel free to ask any technical question here. We have Stripe staff (engineer) around to help
Btw Stripe Support shouldn't tell you to go here IMO. If you needs help on account and already starting a Support email-thread, you should follow that email
People here with the badge "Stripe Staff" are from Stripe
i can't even figure out how to use this, simply replying to this message took five minutes of random clicking
chat sure ain't like the old days
am i talking to a human or a bot
I am human π
now there's two chat windows, looks like it's a nested thread in a separate div or something
oh hai
hello?
ah ok thanks, sorry i have no idea how to use this so forgive all the clumsiness
np
i know it says this isn't support per se, but i tried reaching out to partners in the partner gallery and got no response so don't know what to do
like two weeks ago
what "partners" and "partner gallery" are you referring to?
that's the recommendation on your site if i needed some custom work done
slash a prefab app
i mean i don't know if you'd be willing to listen to what i'm trying to do and help me with it
it's relatively simple, i'm just a newb
or n00b whatever
Hi, no worry. The link means if you need a developer works on Stripe integration for you, you can look for them in that partner page
Means you would need to hire someone.
right, except they don't respond to inquiries
If you decide to do the implementation yourself, we can try to help
at least the ones i tried
but you would need to learn all the development stuff
pretty sure i can do it, built plenty of sites, some light php and java knowledge, etc.
Okie, I would recommend to start here: https://stripe.com/docs/payments/accept-a-payment
allow me to expound, this is for a form on a wordpress site, "quform", very customizable, html inserts, api calls, etc
i have already successfully integrated a stripe payment form
but i don't need a payment
to clarify, it's a reservation form that requires a cc to make the reservation
the cc is not charged at all, it's only authed in case of a cancellation later.
but since auths fall off after 7 days, i need to create a customer object (which i've seen the doc for)
such that if client needs to log into stripe dashboard later and charge the fee the card info is there
so it appears that i need some amalgam of intent and object in this form
that's where i am not sure how to implement
what i got from stripe support was constantly referring to a recurring subscription or charge, i don't want a capture to happen in the form
and for reference, this is what opentable does using stripe
auth the card, save data as customer object, so restaurant can log into stripe account and charge if necessary beyond the 7 day auth
Hey, taking over from @glad snow β just catching up
k. hello.
just summing up while you catch up, it's relatively simple, i'm just not sure how to implement into the form. seems like same as the stripe capture integration just more calls but again, not sure
and not a code guru.
but since auths fall off after 7 days, i need to create a customer object (which i've seen the doc for)
To be clear, auth expiry will vary between card issuers and MCCs of your business (Stripe account)
auth the card, save data as customer object, so restaurant can log into stripe account and charge if necessary beyond the 7 day auth
Sounds like you want to capture payment details and set them up for future on/off-session payments?
yes, but 99% of the time there's won't be a payment.
most people show up for their reservation
Got it. What you want then is Setup Intents: https://stripe.com/docs/payments/save-and-reuse?platform=web
right intents is what i mentioned earlier
again just not entirely sure the proper way to implement in the form. to be clear, the 1% of the time a charge would ever happen, it would not be done from the form on the site.
it would be done by a user in the dashboard.
That guide will outline how you can capture payment details from a user and then optionally charge them at a later date without them being on-session
yes, but step 7...
i don't need that correct?
and the integration will function without it?
Yeah step 7 is the optional part that you'd need if you wanted to physically charge the payment method you'd saved
k one last piece, the customer data
name, email
so the restaurant manager isn't scrolling through a thousand last 4 digits of ccs searching for a match
the form fields all have ids, i would need to somehow pass the strings along with this card info
or are we talking about the stripe form having name in it as well
in other words, the form already ahs a first and last name field
so if the stripe form has it they'd be entering it twice
or is the stripe part just card number, date, ccv zip
entering name twice not a deal breaker, just redundant for end user
come to think of it that might be the way to go anyway, the reservation could be under someone else's name, so if the stripe form has name fields they'd have to put the cardholder's name
Well, you'd generally pass that information when creating the Customer with Stripe (step 2)
In that example, you'd be using the Payment Element to capture the payment details with Stripe.js. That UI doesn't contain a field for name/email, but you can pass it to the payment_method_data.billing_details hash when confirming: https://stripe.com/docs/js/payment_intents/confirm_payment
k that's where i'm getting confused, "confirm payment", it's not a payment... and what specific code do i use in the stripe code to capture and pass that data
php, that page shows "$customer = \Stripe\Customer::create();"
how in that string is the name field of the form being passed
Sorry, my bad. I shared the wrong function. You'd use confirmSetup: https://stripe.com/docs/js/setup_intents/confirm_setup
thanks
k it looks like this is where the name is being grabbed:
stripe
.confirmCardSetup('{SETUP_INTENT_CLIENT_SECRET}', {
payment_method: {
card: cardElement,
billing_details: {
name: 'Jenny Rosen',
},
},
})
.then(function(result) {
// Handle result.error or result.setupIntent
});
but where is it getting that name from
You'd pass it as a parameter:
$customer = \Stripe\Customer::create([
"name" => "John Doe"
]);
Yes, exactly. But that data is only saved for the Payment Method that's created
and passed into the stripe dashboard correct
such that it can be searched in the dashboard ui by nthe name correct?
No, you'd use a Customer object for that really
er
ok back up a sec, let me get the name capture part down
$customer = \Stripe\Customer::create([
"name" => "John Doe"
]);
the "name" part.. that's where i enter my form's name field id as a string inside the quotes, correct
Yes, so you'd pass whatever relevant parameters when creating the customer: https://stripe.com/docs/api/customers/create
Yep you can use an existing variable/form field value here which will prevent the duplication of forms
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and the "john doe" would be a variable somehow
oh oops let me read that real quick
so the post and response blocks on that page
do they both go in the form?
No, the top code block is an example API request using our PHP library of how you'd create a new Customer object. The response block is the JSON response we send following that successful request
ok so just the post
what exactly do i do with the response
or is it solely to verify the call and response via hash or something
sorry getting confused rereading
$customer = \Stripe\Customer::create([
"name" => "John Doe"
]);
what code do i use to indicate a variable for "name" where "john doe" is?
"name" => ?
for instance my form field id is 5_21. so the code would be "name" => "5_21"
or something like that?
i think if i just have that part it would work
"name" => echo something...?
sorry not a code guru
Well you may want to take action with some of the fields returned from the API call, like save the cus_xxx ID somewhere in a database
sorry not following
i'm not wanting to store any of the card's info on the website
i'm trying to figure out how to attach the name from the website form to the customer object that gets created in stripe
and is then able to be found by name in stripe dashboard
maybe i'm not explaining myself properly?
i thought we were on the right track with the customer object creation code:
$customer = \Stripe\Customer::create([
"name" => "John Doe"
]);
i just don't know exactly what to put after "name" =>
No, and you absolutely shouldn't. I meant the Customer data. If not relevant, just ignore
if the form's name field id is "5_21", how do i put that after "name" =>
You can use variables like $_POST["name"] after form submission
Otherwise you'd just use a regular PHP variable
such as?
this is the part that's been holding me up
this one simple line that i'm sure anyone else would have figured out easily
so are you saying to put:
"name" => $_POST["name"]
Are you familiar with PHP at all?
a little
I assume you have a form which has some kind of action attribute, right? For submission
yes, here you can see it: cuvee30a.com/reservations
I need to see the PHP code. Can you share it?
quform, wordpress plugin, how shalli share it? plugin editor>quform> lots of pages of php
i mean i could send you the plugin zip file if you wish
no need, we don't write your code for you, it's your job to debug this and write the code.
i'm not asking you to write it
i'm asking for the necessary variable in one line
i already tried reaching out to stripe partners in your partner gallery, they don't respond
it's probably something like $_POST["name"] like my colleague said
we can't know how your own page and plugins work, it's your <form> element and backend really.
man, we were so close, one line away.
sorry i guess
nothing to be sorry for! happy hacking!
obviously there is if you came in and shut down the convo at the cusp of a solution.
well what have you tried?
like did you try
$customer = \Stripe\Customer::create([
"name" => $_POST["5_21"]
]);
did it do anything?
at this point i can't even make sense of which of these blocks of code i even need to accomplish the goal, they're all blurring together
i'll have to try again tomorrow i guess
ok, or hire a developer to help you with this, or use a no-code option(https://stripe.com/docs/payments/no-code) so you can get up and running.
already tried, they don't respond
then try someone else!
i did, in here.
yep and we can help with specific technical questions from developers about their own code
if you're looking for a freelancer to help you with setting up your business's integration I'd suggest looking online or in your local community
the links on our site are generally for larger contractors who help large companies so unfortunately they're not likely a good fit for you, so you want to look closer to home or use no-code plugins and platforms if you don't have the resources to build something bespoke yourself.
this channel is a support forum, not a consultancy.
been trying to get support