0 purchases
sovendus voucher network and checkout benefits
Add a inline WebView on your success page #
Download and install the component with the following command:
flutter pub add sovendus_voucher_network_and_checkout_benefits
copied to clipboard
Use the component on the order success page, where you want to display the Sovendus banner.
Make sure to replace the arguments with the actual data from the purchase.
Replace YOUR_TRAFFIC_SOURCE_NUMBER and TRAFFIC_MEDIUM_NUMBER with the one we provided you.
Note that the height of the widget is determined by its content
You can use the component like this:
Click here for detailed information on the parameters and which ones are required.
import 'package:sovendus_voucher_network_and_checkout_benefits/sovendus_voucher_network_and_checkout_benefits.dart';
SovendusBanner(
trafficSourceNumber: YOUR_TRAFFIC_SOURCE_NUMBER,
trafficMediumNumber: TRAFFIC_MEDIUM_NUMBER,
orderUnixTime: 1699904232,
sessionId: "kljadkaskdlaksdjaskd",
orderId: "Order-123",
netOrderValue: 120.5,
currencyCode: "EUR",
usedCouponCode: "CouponCodeFromThePurchase",
customerData: SovendusCustomerData(
salutation: "Mr.",
firstName: "John",
lastName: "Smith",
email: "[email protected]",
phone: "+4915546456456",
yearOfBirth: 1990,
dateOfBirth: "01.12.2020",
street: "Teststreet",
streetNumber: "12/1",
zipcode: "76135",
city: "Karlsruhe",
country: "DE",
),
// Until the banner is loaded we're showing a loading indicator,
// optionally you can pass a custom loading spinner with the type Widget
customProgressIndicator: RefreshProgressIndicator(),
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.