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

Marketplace: Product Licensing - Create and sync vendor webhook url and API Secret Key with WPCOM

Open gavande1 opened this issue 2 years ago • 4 comments

Summary

We are planning to reuse existing infra on WCCOM for onboarding vendors and gathering their information. WCCOM also allows 3PD to get their API/Secret keys from dashboard to call relevant api. This API/Secret key are also used for authentication. We need to implement mechanism of syncing API/Secret keys and basic info about vendor to WPCOM on WCCOM side.

Related to pdh6GB-1dL-p2#comment-1951

gavande1 avatar Jul 07 '22 11:07 gavande1

Backlog grooming: we've discussed to only estimate the investigation part of this ticket

gcsecsey avatar Jul 07 '22 13:07 gcsecsey

  • [x] new WP page (if a relevant doesn’t exist)
  • [x] API key generation from interface
  • [x] webhook url field
  • [x] saving to user meta (vendor meta)
  • [x] creating a WPCOM route that WC.com can call to sync vendor info
  • [x] calling WPCOM to save this fields
  • [x] storing them in WPCOM

cpapazoglou avatar Jul 20 '22 10:07 cpapazoglou

Updated the points for resolving this.

cpapazoglou avatar Jul 20 '22 10:07 cpapazoglou

webhook url field saving to user meta (vendor meta)

@cpapazoglou Created an issue for these, feel free to change it: 13954-gh-Automattic/woocommerce.com

allilevine avatar Jul 28 '22 18:07 allilevine

@JulianBustamante is there any update here? Can you share a diff?

cpapazoglou avatar Aug 18 '22 07:08 cpapazoglou

I am not 100% sure but it seems D86085-code to close

gavande1 avatar Aug 18 '22 07:08 gavande1

Yeah just found it too D86085-code - creating a WPCOM route that WC.com can call to sync vendor info

cpapazoglou avatar Aug 18 '22 07:08 cpapazoglou

Also 14172-gh-Automattic/woocommerce.com

obenland avatar Aug 18 '22 18:08 obenland

Deployed r251070-wpcom

JulianBustamante avatar Aug 22 '22 22:08 JulianBustamante

With the merge of 14172-gh-Automattic/woocommerce.com this should be complete. @JulianBustamante could you confirm?

obenland avatar Aug 26 '22 16:08 obenland

@obenland Sure! Let me check how can I confirm this on prod.

JulianBustamante avatar Aug 26 '22 18:08 JulianBustamante

@obenland I tested it on production updating woocommerce-bookings and it worked as expected. 🎉

JulianBustamante avatar Aug 29 '22 15:08 JulianBustamante

Amazing. Thanks!

obenland avatar Aug 29 '22 15:08 obenland