#akram.alsaidi

1 messages · Page 1 of 1 (latest)

frail edgeBOT
acoustic peak
#

There isn't a way to force those with the payment elemet. If you want to make sure they always appear, the best way is usually to create your own fields for them, tell Stripe.js to not display those fields within the Payment Element, and then pass the data from your fields to the confirmPayment method when you are submitting your payment

tender birch
#

like this we can add it ?

acoustic peak
#

Yes, those are the places to add the code for the parameters that I linked to

#

Checking in to that

tender birch
#

with tips / donations what we can use ?

#

// Create the Address Element in shipping mode
var addressElement = elements.create('address', {
mode: 'shipping',
});

// Create the Address Element in billing mode
var addressElement = elements.create('address', {
mode: 'billing',
});

#

mode shipping or mode billing ?

acoustic peak
#

If you are sending the customer something physical, use "shipping". If you are just charging them for a digital good, usually "billing" mode is used

#

with tips / donations what we can use ?
If you collect the tip amount before creating your PaymentIntent, you can just use our Payment Element as normal

#

If you are looking to determine a tip amount after initially charging the user, I would recommend talking to our support team about your usecase. They may be able to help you https://support.stripe.com/?contact=true\

tender birch
#

now is good but what about email ?

acoustic peak
#

Unfortunately you can't force a field to show, that is what my original suggestion was about. You can hide the field and use your own custom field to collect the email address, that is the only way to guaruntee that there will be an email field at the moment

tender birch
#

yes but the payment it will be with out login

acoustic peak
#

Makes sense, my suggestion is still relevant though

#

If you want to guaruntee that you collect email in a field on the page, you need to provide your own field for it

#

Stripe.js does not have a way of guarunteeing that an email field will show up on our Payment Element form

tender birch
#

So we can do it by guest

#

guest user can sorted all

#

other question please

#

about google pay

#

I,ve enabled from stripe but i can not see it above form payment

hoary axle
tender birch
#

I am from UK

hoary axle
#

Gotcha. Are you using Stripe Connect?

tender birch
#

sure

#

we are can pay for stripe connected id ? by google ?

hoary axle
tender birch
#

payment intent depending on Stripe Connected

hoary axle
tender birch
#

We can do that by dashboard stripe ?

#

or by api ?

hoary axle
#

No, you'd need to use the API

tender birch
#

every time or just one time ?

hoary axle
#

Just one time

tender birch
#

ok perfect

hoary axle
#

However, you'll also need to set Stripe-Account header to connected account ID on client-side (w/ Stripe.js)

tender birch
#

I did that

hoary axle
#

Cool, so registering the domain should do the trick

tender birch
tender birch
hoary axle
#

You still need to register the domain. You'd need both.

tender birch
#

after that i can sow google pay ?

hoary axle
#

Yes, as long as the browser has the wallet configured correctly

tender birch
#

but i will regester localhost ?

#

register

hoary axle
#

Oh your site will need to be served on HTTPS for the wallets to work. You can use something like ngrok to host it temporarily

tender birch
#

mmmm so after pushed to server https ?

hoary axle
#

yes

tender birch
#

we can do subdomain or domain ?

#

because our blatform undwe dev now

hoary axle
#

You can register both

tender birch
tender birch
#

Perfect

#

Now last qustion please

#

When the customer create account the stripe directly saved the stripe connected id to our platform if the user completed and if the user not completed all form to create an account

#

and when the user close the browser and come back one more time and press on button to create an account also te same proccess able to saved in our platform

#

but saved with status Restricted

#

so there any api to if the user has connected id before but not complate to make edit and complate later ?

tender birch
#

this pyload

#

after retrieve connected id

hoary axle
#

you can also look at requirements parameter to see what's currently due

tender birch
#

and this when created

hoary axle
tender birch
tender birch
hoary axle
#

You are creating a new account again in the screenshot, for account that's in restricted state, you'd just pass the existing account ID in the accountLink -> create

tender birch
#

but my chat about after created but not completed

#

how can redirect to onboarding one more time with old connected id if not completed