Skip to content

Commit 15a7a42

Browse files
added email and phone in example files
1 parent cb2e91f commit 15a7a42

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/cardorder/cardorder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
$customerZipCode = "99999";
2929
$customerCity = "Stan";
3030
$customerCountry = "Sverige";
31+
$customerPhoneNumber = "+46701234567";
32+
$customerEmail = "[email protected]";
3133

3234
// The customer has bought three items, one "Billy" which cost 700,99 kr excluding vat (25%) and two hotdogs for 5 kr (incl. vat).
3335

@@ -74,6 +76,7 @@
7476
$sveaAddress = \Svea\WebPay\Helper\Helper::splitStreetAddress($customerAddress); // Svea requires an address and a house number
7577
$myCustomerInformation->setStreetAddress( $sveaAddress[0], $sveaAddress[1] );
7678
$myCustomerInformation->setZipCode( $customerZipCode )->setLocality( $customerCity );
79+
$myCustomerInformation->setPhoneNumber( $customerPhoneNumber )->setEmail( $customerEmail );
7780

7881
$myOrder->addCustomerDetails( $myCustomerInformation );
7982

0 commit comments

Comments
 (0)