Automattic / newspack-plugin

An advanced open-source publishing and revenue-generating platform for news organizations.

Home Page:https://newspack.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to modify product name and pricing description when the Reader Revenue platform is set to Stripe

gusaus opened this issue · comments

Is your feature request related to a problem? Please describe.
When using Stripe as the Reader Revenue platform, the following products and pricing are generated for recurring subscriptions -

Products – Newspack – Stripe  Test  2023-03-20 19-20-48

Products – Newspack – Stripe  Test  2023-03-20 19-23-34

Products – Newspack – Stripe  Test  2023-03-20 19-25-11

It looks like the products and prices are generated in https://github.com/Automattic/newspack-plugin/blob/master/includes/reader-revenue/stripe/class-stripe-connection.php where "Newspack" is hard coded into the product names (Newspack Monthly Donation, Newspack Annual Donation).

The prices are created using Tiered volume pricing

// A price has to be assigned to a product.

Which results in a unit price and quantity being displayed on the receipt or invoice (for example)

Inbox (1) - gusaus@gmail com - Gmail 2023-03-20 19-41-00

Describe the solution you'd like
Ideally, the product names could be modified (somewhere in the Reader Revenue settings?) and the unit price and quantity would be hidden from the invoice and receipts generated by Stripe.