question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request - Promo Codes OrderId

See original GitHub issue

Is there any chance to add orderId to Promo Codes. I have been using the orderId to verify purchases, however since currently orderId is empty for Promo Codes, that breaks my verification process. If that’s not possible, how can I differentiate regular purchases from Promo Codes? #7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dtayloruscommented, Nov 7, 2018

Probably true. Though I really want to use promo codes to send to potential reviewers whose accounts I don’t know, so license testing is not a good option for me.

I’m attempting to use purchaseTime as a unique identifier for the receipt in this case, which I think is a reasonable workaround.

1reaction
dtayloruscommented, Nov 7, 2018

This is a bug, not a feature request. Can you change the title?

Security best practices (https://developer.android.com/google/play/billing/billing_best_practices) explicitly says to verify that the orderId is unique.

Without this check, the same receipt can be replayed to the server over and over for infinite purchases.

This bug makes promo codes unusable without opening a huge security hole.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Total Orders Compared to Orders Purchased with Promo Codes
This pattern illustrates how to create a column chart that compares the number of total orders and the number of orders that had...
Read more >
Creating a Discount with Conditions (Creating a Coupon)
Under Conditions, select the Add Coupon Condition checkbox. Choose Single Code, and enter in the actual coupon code phrase you would like to...
Read more >
Self-test using promo codes from Play Console
Create test campaigns and test promo codes in the Play Console. ... submit Play Points promotions (if the feature is enabled for your...
Read more >
What are promotional codes and how do they work?
magazine. Store owners can track their efforts by attaching a certain promo code to a specific marketing campaign or advertisement. Different codes can...
Read more >
Redeem Coupons - Salesforce
Exported coupon codes are imported into a Marketing Cloud data extension. ... include the [Order] Date, OrderId fields in the data extension.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found