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',
: '0x20c0000000000000000000006a37DA5C996874BE', // OUSD on Tempo
: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
},
})
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.