Shopify Checkout Kit
overview when your app uses shopify checkout sheet kit https //github com/shopify/checkout sheet kit ios for checkout, forter needs the checkout token to correlate fraud signals with the transaction the sdk exposes the token at two points checkoutdidemitwebpixelevent — fires when the checkout opens ( checkout started ), providing the token before payment checkoutdidcomplete — fires after successful payment, providing the token and order id integration shopifycheckoutsheetkit present(checkout checkouturl, from self, delegate self) extension checkoutviewcontroller shopifycheckoutsheetkitdelegate { func checkoutdidemitwebpixelevent(event pixelevent) { guard case standardevent(let standardevent) = event, standardevent name == "checkout started", let checkouttoken = standardevent data? checkout? token else { return } fortersdk sharedinstance() trackaction( paymentinfo, withdata \[ "checkouttoken" checkouttoken ]) } func checkoutdidcomplete(event checkoutcompletedevent) { let checkouttoken = event orderdetails cart token let orderid = event orderdetails id fortersdk sharedinstance() trackaction( paymentinfo, withdata \[ "checkouttoken" checkouttoken, "orderid" orderid ]) } }