#MarkoBoras

1 messages · Page 1 of 1 (latest)

swift starBOT
covert acorn
#

hi! I suppose that's an option yes.

#

it functions pretty much the way you describe

ionic tusk
#

does user needs to enter card number in that case

#

if it is free

covert acorn
#

they'd still need to enter card details yes

#

actually sorry, I am totally wrong

#

let's start over. What are you trying to do and why? what integration/code do you currently use with Stripe?

ionic tusk
#

😦

#

I am implementing stripe for some conference

#

some tickets needs to be given for free

covert acorn
#

I see. And what integration/code do you currently use with Stripe?

ionic tusk
#

Stripe checkout in React project

#

I handle all logic on checkout.session.completed

covert acorn
#

so as mentioned the issue is it's not possible to have a coupon/promotion code that would make a CheckoutSession 100% off

#

Checkout does not currently support discounting a purchase below the minimum charge amount for one-time payments.

ionic tusk
#

ok

#

I'll implement some side logic to avoid checkout for this case

#

i have another question

covert acorn
#

so unfortunately the best option is probably to handle this a different way, like a direct/special page on your site that does not use Checkout at all, and just calls the backend code to generate the ticket or whatever directly

#

yeah as you say.

ionic tusk
#

I am also using promotion codes and currently I have 20+ of them. I am retrieving them in my backend with
const promotionCodeList = await stripe.promotionCodes.list({
active: true,
});

It only retrieves 10 of them

#

is there some property to fetch all of them instantly

covert acorn
ionic tusk
#

so I need to create helper array and use auto paginate to set all items in that arrray if I want all of them?

covert acorn
#

yes you could push each result to a temporary array, or just process each one one-at-a-time, whatever works

ionic tusk
#

it works man