wp-calypso
wp-calypso copied to clipboard
Add the ownership id in wpcom_purchases
While ownership_id
exists in our API https://developer.wordpress.com/wordpress-com-marketplace/vendor-apis/ it doesn't exist in the object that get_option( 'wpcom_active_subscriptions', array() )['my-plugin-slug']
returns
stdClass Object
(
[product_slug] => my-plugin-slug
[product_id] => 915
[subscribed_date] => 2022-05-02T09:10:52+00:00
[expiry_date] => 2022-04-02T00:00:00+00:00
)
Let's add the ownership_id
here
fbhepr%2Skers%2Sjcpbz%2Sjc%2Qpbagrag%2Syvo%2Sngbzvp%2Sjbn.cuc%3Se%3Q5pon2728%231754-og
Related discussion pedbri-d-p2#comment-15
POC diff D88283-code