#yassinehamdouni - Promo Code

1 messages ยท Page 1 of 1 (latest)

ruby basalt
#

Hi ๐Ÿ‘‹

#

What kind of Connect Accounts are these?

crimson orbit
#

Hi! Standard accounts

ruby basalt
#

Okay so my next question is, where do the Coupon or Promo codes live? On which account?

crimson orbit
#

on the connected account

#

would it be helpful if i sent the coupon and promo code IDs?

ruby basalt
#

Sure.

crimson orbit
#

coupon ID: xaMzTLj8
promo code: promo_1LMw1kPUqzYnESmYdOjPkMND

#

connected stripe account ID: acct_1LIxqQPUqzYnESmY

ruby basalt
#

Thanks, I'll look into these

crimson orbit
#

thank you!

ruby basalt
#

And do you have the request ID for the Checkout Session?

#

The API request that created it?

crimson orbit
#

"cs_live_b19a4U9UReWNIyzxBQYJLZAV73GgE3YRkYXA6BtDhLSzle4LiAmYSwZ3FC"

ruby basalt
#

Also I notice that the coupon is named "First test coupon" but that livemode is set to True. Testing in live mode is not recommended and is, in fact, a violation of the Stripe terms of service. We have a very robust and functional Test mode. Please use that for all testing.

crimson orbit
#

Ah yes, my apologies

#

I was using test mode before

ruby basalt
#

One thing that jumps out at me is that the coupon is for 100% off. But your checkout session is created with an application fee amount of $10

#

That might be causing the error we see here

crimson orbit
#

ah i see

#

we set the application fee to 10%

#

i figured by setting coupon to 100% it was "100% of the discountable amount"

#

what should i be setting instead?

ruby basalt
#

You didn't set the application fee for 10% on this request

#

When you specify application_fee_amount it is for a set amount of funds

crimson orbit
#

ah yes you're right โ€“ i calculate the amount on the backend

crimson orbit
ruby basalt
#

Yes I think our API is having trouble figuring out how it is going to get you your $10 if we aren't charging the customer anything ๐Ÿ™‚

crimson orbit
#

hahah yep that did seem to be the issue!

#

thank you!