Automattic / Automattic/jetpack

Recurring Payments: get rid of the CPT caching

Open
#15,706 0 comments 0 reactions 0 assignees View on GitHub
[Block] Payment Button Earn Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

Recurring payments stores product data as both CPT and an entry in the WPCOM billing engine
These requires syncing and sometimes cause issues.
Additionally, it requires fair bit of complexity to get to the proper product, etc.

For example, the ID presented on the site is the ID of the CPT from where an id in the billing system is pulled and displayed in the checkout window.

We should:
a) Introduce direct usage of the billing system ids
b) transition everything to these ids, including existing buttons on existing sites
c) phase out the legacy CPT system, only using the billing tables ids

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by tracing recurring payments from the CPT product ID to the WPCOM billing engine ID and checkout display; map how existing buttons store and resolve these identifiers. Done means recurring payments use billing-system IDs directly, existing buttons are transitioned, and the legacy CPT path is phased out.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
payments
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.