Release 0.1.757-SNAPSHOT
superus8r
released this
09 Oct 07:30
·
13 commits
to main
since this release
🥳 This releases enables basic functionality of Trustcard Buyer Protection
feature.
The Example project is updated to preview Trustcard in the profile screen.
Changes:
- enabled the Trustcard
- update the example app to preview the new Trustcard in ProfileScreen
Using the Trucard is similar to using the Trustbadge with BuyerProtection context, to show the Trustcard, it is required to also pass a OrderDetails
object to the BuyerProtection
context when showing the Trustbadge.
Example of showing the Trustcard:
val orderDetails = OrderDetails(
number = "123456789",
amount = "129.00",
currency = CurrencyCode.EUR,
paymentType = "PayPal",
estimatedDeliveryDate = "2022-11-30",
buyerEmail = "[email protected]"
),
val badgeContext = TrustbadgeContext.BuyerProtection(
orderDetails = orderDetails
),
...
Trustbadge(
badgeContext = badgeContext
...
)