#sourabhsharma_95426

1 messages · Page 1 of 1 (latest)

viral solarBOT
wild igloo
#

Hi there!

#

if same customer applying the coupon code its not reademble
yes that's expected since you set first_time_transaction: true

vocal stratus
#

what it means by first_time_transaction

#

also i have tried after removing first_time_transaction

vocal stratus
#

customer
string
The customer that this promotion code can be used by. If not set, the promotion code can be used by all customers.

i have set the customer_id but with same customer i can not redeem

restrictions.first_time_transaction
boolean
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices

also for this case i have never made a payment but still i can not redeem

Iam stuck here

wild igloo
#

also for this case i have never made a payment but still i can not redeem
Can you share an example of customer ID where you see this issue?

vocal stratus
#

Its not working according to document.

wild igloo
#

Can you share an example of customer ID (cus_xxx) where you see this issue?

vocal stratus
#

cus_P8zLj7WxHQhjNF

#

says This code is invalid.

wild igloo
#

so what is the issue exactly?

vocal stratus
#

there is the issue

#

are you there ?

wild igloo
vocal stratus
#

it is because that only this customer can access this promocode but it can not

wild igloo
#

give me a few minutes to look into this.

vocal stratus
#

Sure

#

Did you seen that ??

wild igloo
#

sorry Discord was busy. having a look now.

obtuse current
#

Are you sure you're applying it as the same Customer that you provided when creating the Promo Code?

#

Note, different Customer objects can still have the same email address.

viral solarBOT
vocal stratus
#

yes it is the i have checked it so many times

#

also i am trying it with creating always new customer

lusty silo
#

👋 stepping in

#

Can you share the Checkout Session ID from that screenshot where you produced the error?

#

Okay @vocal stratus I took a look at that promo code and it looks like it has restrictions: first_time_payment set which I don't believe works with a free trial since a free trial already results in a paid Invoice.

#

I'd recommend testing again without that restriction for that promo code.

vocal stratus
#

Sorry but i didnt get,
are you saying that i should try without free trial or are you saying that i should try after removing restrictions

I tried it after removing the restrictions but didnt worked still the same error.

lusty silo
#

Huh okay can you give me the Checkout Session ID where you tested after removing the restriction?

#

And the Promo Code?

lusty silo
#

Thanks let me take a look

lusty silo
#

Okay sorry for the delay @vocal stratus , so it looks like you created that Promo code specifically associated to a Customer ID (see: https://dashboard.stripe.com/test/logs/req_Q2onZKfjMFgU5F) however, your Checkout Session is not passing that same Customer ID -- it is creating a new Customer. So that is why it is invalid.