Skip to content
LogoLogo

Receipt.fromResponse

Extract a Receipt from a Response

Extracts the Receipt from a Response's Payment-Receipt header.

Usage

import {  } from 'mppx'
 
const  = await ('/resource', {
  : { : 'Payment ...' },
})
 
if (.) {
  const  = .()
}

Return type

type ReturnType = Receipt

The deserialized Receipt object.

Parameters

response

  • Type: Response

The HTTP response.