/AWS1/CL_BDCMPPPAYMENTINPUT¶
Contains the payment challenge from a 402 Payment Required response. Forward the raw WWW-Authenticate: Payment header value verbatim. In response, you receive a payment credential that satisfies the challenge. Provide exactly one challenge per request.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_version TYPE /AWS1/BDCVERSION /AWS1/BDCVERSION¶
The MPP protocol version, for example "1" or "2".
it_wwwauthenticateheaders TYPE /AWS1/CL_BDCWWWAUTHNHDRLIST_W=>TT_WWWAUTHENTICATEHEADERLIST TT_WWWAUTHENTICATEHEADERLIST¶
The raw
WWW-Authenticate: Paymentheader value from the 402 response, passed verbatim. Provide exactly one entry. The service uses this value to generate the payment credential.
Optional arguments:¶
iv_buyerpaysgasfees TYPE /AWS1/BDCBOOLEAN /AWS1/BDCBOOLEAN¶
Authorizes the service to sign a payment whose blockchain network (gas) fees are charged to your wallet, on top of the payment amount.
The challenge indicates who sponsors the network fees. When the challenge does not sponsor them, the service signs the payment only if this field is
true. Otherwise it returns a validation error, so you can decide whether to pay the fees or obtain a challenge that sponsors them.Optional. When omitted or
false, you decline to pay network fees. This field has no effect on challenges that already sponsor the fees.
Queryable Attributes¶
version¶
The MPP protocol version, for example "1" or "2".
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_VERSION() |
Getter for VERSION, with configurable default |
ASK_VERSION() |
Getter for VERSION w/ exceptions if field has no value |
HAS_VERSION() |
Determine if VERSION has a value |
wwwAuthenticateHeaders¶
The raw
WWW-Authenticate: Paymentheader value from the 402 response, passed verbatim. Provide exactly one entry. The service uses this value to generate the payment credential.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_WWWAUTHENTICATEHEADERS() |
Getter for WWWAUTHENTICATEHEADERS, with configurable default |
ASK_WWWAUTHENTICATEHEADERS() |
Getter for WWWAUTHENTICATEHEADERS w/ exceptions if field has |
HAS_WWWAUTHENTICATEHEADERS() |
Determine if WWWAUTHENTICATEHEADERS has a value |
buyerPaysGasFees¶
Authorizes the service to sign a payment whose blockchain network (gas) fees are charged to your wallet, on top of the payment amount.
The challenge indicates who sponsors the network fees. When the challenge does not sponsor them, the service signs the payment only if this field is
true. Otherwise it returns a validation error, so you can decide whether to pay the fees or obtain a challenge that sponsors them.Optional. When omitted or
false, you decline to pay network fees. This field has no effect on challenges that already sponsor the fees.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_BUYERPAYSGASFEES() |
Getter for BUYERPAYSGASFEES, with configurable default |
ASK_BUYERPAYSGASFEES() |
Getter for BUYERPAYSGASFEES w/ exceptions if field has no va |
HAS_BUYERPAYSGASFEES() |
Determine if BUYERPAYSGASFEES has a value |