Tracking Purchase for mCommerce

EMMA allows you to track every purchase that you make in your mCommerce.

Start Order

eMMa.startOrder(orderId, customerID, price, currency)

Starts an order for adding products. You can pass the following parameters:

orderId

: String with your order id.

customerID

: String with your Customer ID.If not passed, EMMA will use the logged one (if exists).

price

: Float with your total price.

currency

: String with valid Currency Code (EUR,USD,..) If the currency code is not valid EUR currency will be taken.

You can use abbreviated methods if you don’t need all parameters.

Add Products to the order

eMMa.addProduct(productId, name, qty, price)

Adds products to your current started order. Always startOrder should be called before. You can pass the following parameters: You can pass the following parameters:

productId

: String with your product id.

name

: String with your product name.

qty

: Float with your product qty.

price

: Float with product price.

Track Order

eMMa.trackOrder()

Track the current order. It should be called after startOrder and after being all cart products added.

The sequence of tracking order in EMMA is always startOrder>addProduct(*distinct products)>trackOrder.

Have more questions? Submit a request

0 Comments

Article is closed for comments.