Set Client = New TrustedShop
' Provide your own WebAPI key. You can find your WebAPI key on your partner portal.
' Provide the e-mail address of your customer. You can retrieve the e-amil address from the webshop engine.
' Example products
Product1(0) = "Worx Akkumulátor, WA3551 Power Share™ 20V / 2Ah Akkumulátor, WA3551"
Product1(1) = "WA3551"
' Customer's cart example
Cart(0) = Worx Akkumulátor, WA3551 Power Share™ 20V / 2Ah Akkumulátor, WA3551
' Provide the name and the identifier of the purchased products.
' You can get those from the webshop engine.
' It must be called for each of the purchased products.
For Each Product In Cart
' If both product name and identifier are available, you can provide them this way:
' If neither is available, you can leave out these calls.
' This method perpares to send us the e-mail address and the name of the purchased products set above.
' It returns an HTML code snippet which must be added to the webshop's source.
' After the generated code is downloaded into the customer's browser it begins to send purchase information.
' Here you can implement error handling. The error message can be obtained in the manner shown below. This step is optional.
If Client.HasError() Then
ErrorMessage = Client.GetErrorMessage()