jwplayer / ott-web-app

Reference implementation for JWP-powered apps
Apache License 2.0
70 stars 52 forks source link

feat(payment): generate billing receipt #401

Closed kiremitrov123 closed 9 months ago

kiremitrov123 commented 9 months ago

Description

  1. Replaced Existing Method:

    • Replaced the existing method getPurchaseHistory with getPaymentHistory.
  2. Reasons for Replacement:

    • The newly added method getPaymentHistory utilizes the new v2 endpoint, offering improved optimization.
    • getPaymentHistory now includes trx_token in the response, a crucial addition for generating billing receipts, as it serves as the unique identifier per transaction.
  3. New Method Added:

    • Introduced a new method, getBillingReceipt, specifically designed for generating PDFs with billing information.

Jira card: Enhance transaction information in WebApp ( V2 endpoint for listing the transactions and download receipts )

This PR solves # .

Steps completed:

According to our definition of done, I have completed the following steps:

github-actions[bot] commented 9 months ago

Visit the preview URL for this PR (updated for commit 744ca51):

https://ottwebapp--pr401-feat-billing-receipt-dbd8mx93.web.app

(expires Sun, 17 Dec 2023 08:29:21 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c198f8a3a199ba8747819f7f1e45cf602b777529