Challenge.credentialHeader
Resolve the Payment Credential field
Returns the HTTP field where a client sends the Credential for a Challenge.
Usage
import { } from 'mppx'
const = .({
: 'Payment-Authorization',
: 'abc123',
: 'charge',
: 'tempo',
: 'mpp.dev',
: { : '1', : '0x...', : '0x...' },
})
const = .()
'Payment-Authorization'Return type
type ReturnType = stringReturns challenge.header when present, or Authorization when the Challenge uses the protocol default.
Parameters
challenge
- Type:
Challenge
Challenge whose Payment Credential field you want to resolve.