Skip to content

Commit 07796a3

Browse files
committed
express lead-in like code listing
1 parent bb9d617 commit 07796a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

microsoft-edge/progressive-web-apps-chromium/how-to/digital-goods-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ MDN:
165165

166166
After your products and details are displayed to the user, implement the purchase flow by using the Payment Request API. To purchase an item, first construct a request that contains the item details by using the `PaymentRequest` constructor, and then use the `show` method of the `PaymentRequest` object to start the payment flow.
167167

168-
When combined with the Digital Goods API, the only required input parameter for the `PaymentRequest` constructor is `methodData`. In that parameter:
169-
* Use the `supportedMethods` member to identify Microsoft Store Billing as the payment method with the string `"https://store.microsoft.com/billing"`.
170-
* In the `data` member, pass along the item ID as the `sku`.
168+
When combined with the Digital Goods API, the only required input parameter for the `PaymentRequest` constructor is `methodData`. In the constructor's parameter:
169+
* In the `supportedMethods` member, specify Microsoft Store Billing as the payment method, as the string `'https://store.microsoft.com/billing'`.
170+
* In the `data` member, pass along the `itemId` as the `sku`.
171171

172172
```javascript
173173
const details = await digitalGoodsService.getDetails(['monthly_subscription']);

0 commit comments

Comments
 (0)