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

Marketplace: Endpoint for creating a billing_intent

Open cpapazoglou opened this issue 2 years ago • 2 comments

A billing intent is the intention of a customer to go through with a transaction. The billing intent is created by a 3pd vendor after a customer selects their plan in the 3pd interfaces. Vendor should have a way to create [POST] this billing intent through an API.

  • [ ] the endpoint accepts uuid (combination of user and site id), store_product_slug, price in usd, billing_interval ( monthly / annually ), return_url
  • [ ] the endpoint returns a WP.com checkout url https://wordpress.com/checkout/[DOMAIN] or an error

A basic data structure for billing intents has been created in https://github.com/Automattic/wp-calypso/issues/67260

cpapazoglou avatar Sep 08 '22 10:09 cpapazoglou

WIP Diff created: D87610-code

gavande1 avatar Sep 13 '22 07:09 gavande1

Diff separated for easy review- D88280-code

gavande1 avatar Sep 22 '22 05:09 gavande1

Deployed part 2 in r253253-wpcom

gavande1 avatar Sep 27 '22 07:09 gavande1

Diff created for tests: D88989-code

gavande1 avatar Oct 03 '22 15:10 gavande1

Since we are not doing anything catastrophic in production, I guess we can merge this and iterate.

cpapazoglou avatar Oct 06 '22 09:10 cpapazoglou

Deployed r253805-wpcom

gavande1 avatar Oct 06 '22 11:10 gavande1

Test deployed r254043-wpcom

gavande1 avatar Oct 10 '22 12:10 gavande1