#baris9271

1 messages ยท Page 1 of 1 (latest)

grim groveBOT
lilac shuttle
#

Which integration type are you using? Checkout Session or Payment Intent with Payment Element?

steep oasis
#

I use payment intent

#

the thing is when user sees 100 usd for example, I wanna have a dropdown button which user can change the currency, than after they change it for example to TRY, they will see 2700 TRY

#

before the payment

lilac shuttle
#

Stripe doesn't offer an endpoint for currency conversion. You may look for other third party service provider to help with currency conversion and set the converted amount in the Payment Intent creation request.

steep oasis
#

Thanks! And one more question. We give %100 off coupons to some users, is there any way that the user can take it without entering a valid credit card?

#

Since they got %100 of coupon, most of them does not want to enter a card. Is there an easy way for that?

lilac shuttle
#

Stripe doesn't support coupon on Payment Intent API. Which integration do you apply coupon on?

steep oasis
#

I use the one that coupon appliable not sure which one than ๐Ÿ˜ฆ

#

stripe.Subscription.create

#

is the method

lilac shuttle
#

I see! This is Subscription API

steep oasis
#

yes

lilac shuttle
#

Can you share an example Subscription ID (sub_xxx) that you created?

steep oasis
#

sub_1NIWEFJ13oII81FIKXI0xwyl

#

demo acc

lilac shuttle
#

Since Subscription API is used, it's up to your control when the card should be entered if the first invoice is $0

#

Only when the time is closer to the next invoice, your system should make sure the payment method is collected

steep oasis
#

i mean to use it when a user first comes

#

for example you are a new user and u got %100 of coupon

#

u dont enter the credit card details, u use coupon only.

#

is it possible for stripe?

#

I dont think it is though

lilac shuttle
#

Your system will then collect the payment method and set to this subscription when closer to the next billing cycle

#

If the coupon is 100% off forever, you don't have to collect payment method

steep oasis
#

I wanna create stripe subscription without customer id

#

%100 off subs

#

since new users wont enter credit card, they will only enter promo code

lilac shuttle
#

I wanna create stripe subscription without customer id
With Subscription API, it's not possible to create a Subscription without customer field. It's a required field

steep oasis
#

so they cant create a customer id

#

okay thanks!

#

so is it good solution for me to use a new created card just for this purpose

#

that has 1 dollars limit

#

when user does not provide card, I will use that customer id for them,

#

that I have created

#

how does that solution sound for u

lilac shuttle
#

Can you share what you're trying to address? Can you provide an example scenario?

steep oasis
#

So you wanna start a new subscription, you entered our coupon and saw that u gotta pay 0. There is a billing form on the left of coupon applying form. Normally, u need to provide card information but, our customers wants to be able to create stripe payment without entering this credit card info. Since they got %100 off

#

So to provide that, I either need to code everything accordingly that does not need stripe subscription, or I can just provide a customer id created for that purpose, so I dont have to change too much code

#

the code is designed to be dependent of stripe subscription

lilac shuttle
#

When you apply coupon with 100% off, subscription can be created without entering the card information

steep oasis
#

hmm how can i do that

#

on python django

#

subscription = stripe.Subscription.create(
customer=customer.id,
items=[
{
"price": price_id,
"quantity": quantity,
},
],
coupon=promo_code,
expand=["latest_invoice.payment_intent"],
)

#

this is my current subscription creation method

lilac shuttle
steep oasis
lilac shuttle
#

DId you log in to the correct account acct_1Jh5ZqJ13oII81FI?

steep oasis
#

do i have to use test mode to see that?

#

so I can create stripe customer without card info, is that right

lilac shuttle
#

Yup! You can create a customer without card info

#

do i have to use test mode to see that?
You have to access above dashboard page from acct_1Jh5ZqJ13oII81FI

steep oasis
#

hmm okay if that is possible

#

that might solve our problems

#

thank you for help!

#

Is there a way to give you 5 stars rating

lilac shuttle
#

No problem! Happy to help ๐Ÿ˜„

steep oasis
#

Thanks bro! Have a good day

lilac shuttle
#

Sharing the feedback here is great for us ๐Ÿ™‚

steep oasis
#

have a good day!