#sourabhsharma_95426
1 messages · Page 1 of 1 (latest)
Hi there!
if same customer applying the coupon code its not reademble
yes that's expected since you setfirst_time_transaction: true
what it means by first_time_transaction
also i have tried after removing first_time_transaction
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
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?
Its not working according to document.
Can you share an example of customer ID (cus_xxx) where you see this issue?
looks like the promo code was succesfully added: https://dashboard.stripe.com/test/logs/req_HMy05aRktbWrq1
so what is the issue exactly?
so you are trying to use the promo code directly on the payment page? then why did you add the promo code to the customer here? https://dashboard.stripe.com/test/logs/req_HMy05aRktbWrq1
it is because that only this customer can access this promocode but it can not
give me a few minutes to look into this.
sorry Discord was busy. having a look now.
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.
yes it is the i have checked it so many times
also i am trying it with creating always new customer
👋 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.
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.
Huh okay can you give me the Checkout Session ID where you tested after removing the restriction?
And the Promo Code?
sure
fresh customer:: cus_P90VbL1tGtryqr
fresh code:: 7MKXJM99
checkoutId:: cs_test_b1OdQaOlURV4tTC4ZeF1IinMyH7muOdcElZ6LLa95TKmZNRsnNY9c5qXIp
you can see the error directly on page as well
Thanks let me take a look
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.