#newb1-discord

1 messages Β· Page 1 of 1 (latest)

glad snow
#

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

tidal isle
#

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

glad snow
#

I am human πŸ˜„

tidal isle
#

now there's two chat windows, looks like it's a nested thread in a separate div or something

#

oh hai

#

hello?

glad snow
#

hello

#

welcome to Stripe Discord server πŸ˜„

tidal isle
#

ah ok thanks, sorry i have no idea how to use this so forgive all the clumsiness

glad snow
#

np

tidal isle
#

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

glad snow
#

what "partners" and "partner gallery" are you referring to?

tidal isle
#

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

glad snow
#

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.

tidal isle
#

right, except they don't respond to inquiries

glad snow
#

If you decide to do the implementation yourself, we can try to help

tidal isle
#

at least the ones i tried

glad snow
#

but you would need to learn all the development stuff

tidal isle
#

pretty sure i can do it, built plenty of sites, some light php and java knowledge, etc.

glad snow
tidal isle
#

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

harsh cipher
#

Hey, taking over from @glad snow – just catching up

tidal isle
#

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.

harsh cipher
#

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?

tidal isle
#

yes, but 99% of the time there's won't be a payment.

#

most people show up for their reservation

harsh cipher
tidal isle
#

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.

harsh cipher
#

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

tidal isle
#

yes, but step 7...

#

i don't need that correct?

#

and the integration will function without it?

harsh cipher
#

Yeah step 7 is the optional part that you'd need if you wanted to physically charge the payment method you'd saved

tidal isle
#

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

harsh cipher
#

Well, you'd generally pass that information when creating the Customer with Stripe (step 2)

tidal isle
#

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

tidal isle
#

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

harsh cipher
harsh cipher
tidal isle
#

and passed into the stripe dashboard correct

#

such that it can be searched in the dashboard ui by nthe name correct?

harsh cipher
#

No, you'd use a Customer object for that really

tidal isle
#

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

harsh cipher
tidal isle
#

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?

harsh cipher
#

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

tidal isle
#

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

harsh cipher
#

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

tidal isle
#

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

harsh cipher
tidal isle
#

if the form's name field id is "5_21", how do i put that after "name" =>

harsh cipher
#

You can use variables like $_POST["name"] after form submission

#

Otherwise you'd just use a regular PHP variable

tidal isle
#

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

harsh cipher
#

Are you familiar with PHP at all?

tidal isle
#

a little

harsh cipher
#

I assume you have a form which has some kind of action attribute, right? For submission

tidal isle
harsh cipher
#

I need to see the PHP code. Can you share it?

tidal isle
#

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

left lintel
#

no need, we don't write your code for you, it's your job to debug this and write the code.

tidal isle
#

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

left lintel
#

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.

tidal isle
#

man, we were so close, one line away.

left lintel
#

well you can try things

#

like $_POST["5_21"] if that's what you think would work

tidal isle
#

sorry i guess

left lintel
#

nothing to be sorry for! happy hacking!

tidal isle
#

obviously there is if you came in and shut down the convo at the cusp of a solution.

left lintel
#

well what have you tried?

#

like did you try

$customer = \Stripe\Customer::create([
  "name" => $_POST["5_21"]
]);

did it do anything?

tidal isle
#

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

left lintel
tidal isle
#

already tried, they don't respond

left lintel
#

then try someone else!

tidal isle
#

i did, in here.

left lintel
#

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.

tidal isle
#

been trying to get support