bank: the order page offers a payto link and quotes one reference
The bank-transfer block on the order page now gives two ways to pay. First a payto link (RFC 8905) that hands the IBAN, the amount, the account-holder name and the order code to a payment app in one go, then "Or do a manual transfer" with the same details as before. The manual details list the order code as the Description and nothing else. The page used to print the structured RF reference as well, with a paragraph on which code goes in which field, and that read as two codes for one payment. Matching never needed the RF form: the matcher finds the CC- code anywhere in the remittance text, the RF form included. OrderCryptoPay::structuredReference, which only fed that row, is gone; CreditorReferenceFromToken stays, with its unit test. The link is built in the view from the very values the manual details print, so the two cannot disagree. Url() now lets payto: through, like ethereum:, and the name is percent-encoded because Url() strips spaces. ShouldSettleBankTransfers asserts the whole link, including that its message is the reference the matcher looks for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
33ce8f45d8
commit
dead3ed0cc
7 changed files with 84 additions and 38 deletions
|
|
@ -380,11 +380,6 @@ export struct OrderCryptoPay {
|
|||
// bank holds. Printing a friendly trading name here would scare buyers off
|
||||
// at the last step, so this carries the bank's own spelling.
|
||||
std::string beneficiary;
|
||||
// The structured ISO 11649 form of the reference. Quoted alongside the
|
||||
// short one because the payer's bank validates its check digits and
|
||||
// rejects a mistyped one before the money leaves — which is what makes
|
||||
// unattended matching on our side safe.
|
||||
std::string structuredReference;
|
||||
// Shown only when configured, and labelled as the field a payer sending
|
||||
// from OUTSIDE SEPA needs. An IBAN alone has been sufficient within SEPA
|
||||
// since 2016, so putting a BIC in front of a Dutch buyer is one more box
|
||||
|
|
|
|||
Loading…
Reference in a new issue