1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-05-11 16:51:51 +00:00

- Update HTTPS to be TLS-protected HTTP

- Add Updated Messages section to describe the status_code and status_message
- Separated Message and Communication Errors into Payment Protocol Errors and Communication Errors
- Add first draft Payment Protocol error codes
- Update InvoiceRequest Message Creation description amount example to return Payment Protocol error in the case of an issue with the amount.
This commit is contained in:
Matt David
2016-03-29 15:49:49 -07:00
parent 9d86a41747
commit 8bf7d90d20
3 changed files with 69 additions and 13 deletions

View File

@@ -33,19 +33,25 @@ message PaymentRequest {
optional bytes pki_data = 3; // depends on pki_type
required bytes serialized_payment_details = 4; // PaymentDetails
optional bytes signature = 5; // pki-dependent signature
optional uint32 status_code = 1000; // Payment Protocol status code
optional string status_message = 1001; // Human-readable Payment Protocol status message
}
message X509Certificates {
repeated bytes certificate = 1; // DER-encoded X.509 certificate chain
}
message Payment {
optional bytes merchant_data = 1; // From PaymentDetails.merchant_data
repeated bytes transactions = 2; // Signed transactions that satisfy PaymentDetails.outputs
repeated Output refund_to = 3; // Where to send refunds, if a refund is necessary
optional string memo = 4; // Human-readable message for the merchant
optional bytes merchant_data = 1; // From PaymentDetails.merchant_data
repeated bytes transactions = 2; // Signed transactions that satisfy PaymentDetails.outputs
repeated Output refund_to = 3; // Where to send refunds, if a refund is necessary
optional string memo = 4; // Human-readable message for the merchant
optional uint32 status_code = 1000; // Payment Protocol status code
optional string status_message = 1001; // Human-readable Payment Protocol status message
}
message PaymentACK {
required Payment payment = 1; // Payment message that triggered this ACK
optional string memo = 2; // Human-readable message for customer
required Payment payment = 1; // Payment message that triggered this ACK
optional string memo = 2; // Human-readable message for customer
optional uint32 status_code = 1000; // Payment Protocol status code
optional string status_message = 1001; // Human-readable Payment Protocol status message
}
// BIP-IR Extensions