Class X402::SettlementResult ¶
Inherits: Struct
Returned by Gateway#settle! on successful settlement.
- @attr
receipt_headers[Hash] HTTP headers to include in the 200 response - @attr
txid[String, nil] transaction identifier - @attr
network[String, nil] CAIP-2 network identifier (e.g. "bsv:mainnet")
Attributes¶
network [RW] ¶
CAIP-2 network identifier (e.g. "bsv:mainnet") - @return [String, nil] the current value of network
receipt_headers [RW] ¶
HTTP headers to include in the 200 response - @return [Hash] the current value of receipt_headers
txid [RW] ¶
transaction identifier - @return [String, nil] the current value of txid
Public Instance Methods¶
initialize(receipt_headers: = {}, txid: = nil, network: = nil) ¶
- @return [SettlementResult] a new instance of SettlementResult