Skip to content

Commit

Permalink
Show usage of sanitizing constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
z38 committed Mar 25, 2018
1 parent 01e4b06 commit bb7dbed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use Z38\SwissPayment\PostalAccount;
use Z38\SwissPayment\StructuredPostalAddress;
use Z38\SwissPayment\TransactionInformation\BankCreditTransfer;
use Z38\SwissPayment\TransactionInformation\IS1CreditTransfer;
use Z38\SwissPayment\UnstructuredPostalAddress;

$transaction1 = new BankCreditTransfer(
'instr-001',
Expand All @@ -43,7 +44,7 @@ $transaction2 = new IS1CreditTransfer(
'e2e-002',
new Money\CHF(30000), // CHF 300.00
'Finanzverwaltung Stadt Musterhausen',
new StructuredPostalAddress('Altstadt', '1a', '4998', 'Muserhausen'),
UnstructuredPostalAddress::sanitize('Altstadt 1a', '4998 Musterhausen'),
new PostalAccount('80-151-4')
);

Expand Down

0 comments on commit bb7dbed

Please sign in to comment.