wp-calypso icon indicating copy to clipboard operation
wp-calypso copied to clipboard

Add the ownership id in wpcom_purchases

Open cpapazoglou opened this issue 2 years ago • 1 comments

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

cpapazoglou avatar Sep 22 '22 08:09 cpapazoglou

POC diff D88283-code

cpapazoglou avatar Sep 22 '22 09:09 cpapazoglou