#Koja-Connect

1 messages · Page 1 of 1 (latest)

grim turtle
#

When you say dealers are registered as Stripe users, do you mean Customer?

#

I believe you should use Connect. Each dealer should be a Connected Account, and buyer should be a customer.

#

However for the inter-countries part, you would need to satisfy some conditions. For example cross-border payout when you want to pay your dealers

sullen gull
#

Dealers are connected accounts

#

But when I create Session for payment

#

how should I ask for shipping info and how to add taxes

grim turtle
#

Choosing Java you will see the sample code

.setShippingAddressCollection(
SessionCreateParams.ShippingAddressCollection.builder()   
.addAllowedCountry(SessionCreateParams.ShippingAddressCollection.AllowedCountry.CA)              .addAllowedCountry(SessionCreateParams.ShippingAddressCollection.AllowedCountry.US)
.build())
#

There are Stripe Tax (automatic) or Tax Rates(manual)

sullen gull
#

There is no method

wary plover
#

@sullen gull make sure you're using the lastest version of the stripe-dotnet Nuget package

sullen gull
#

How should I set that since I'm using spring boot

#

I only have maven dependency

wary plover
#

ah sorry, this is Java

#

then yeah, make sure you are using the latest version of stripe-java.

#

like edit your pom.xml and bump the version of the stripe-java dependency.

sullen gull
#

Solved that but now I'm missing other classes

wary plover
#

what version are you using?

sullen gull
#

20.98.0\

#

is it called different?

wary plover
#

also make sure you're using the right namespace, there are two things called "Session" in our library

sullen gull
wary plover
#

like try explicitly using com.stripe.param.checkout.SessionCreateParams instead of just SessionCreateParams

#

i..e import com.stripe.param.checkout.SessionCreateParams; etc

sullen gull
#

I have imported that one

wary plover
#

mind sharing the complete code then? (in text, not just screenshots)

#

give me a sec to make it work

sullen gull
#

I have succseeded

#

Classes are not same

#

Thank you

wary plover
#

yep, that's it(I was going through the example code to change it to that to show you the full example, but yep, that is it)

#

I'll get those docs fixed

sullen gull
#

You can not pass automatic_tax when not using prices. and last part

#

im facing this issue now

wary plover
#

yes, you can't do this part :

SessionCreateParams.LineItem.builder()
                                        .setName(chargeInformations.getChargeName())
                                        .setAmount(chargeInformations.getAmount())
                                        .setCurrency("eur")
                                        .setQuantity(chargeInformations.getQuantity())
                                        .build())

i.e. creating an ad-hoc line item