URLs
configurable by QueryParams
, another option could be by using a Javascript library.
In [decentraland-dapps](<https://github.com/decentraland/decentraland-dapps>)
> [src/modules/manaFiatGateway](<https://github.com/decentraland/decentraland-dapps/tree/master/src/modules/manaFiatGateway>)
Open the widget / Create the widget URL that should be opened
Suscribe to JS events if relevant
Fetch the integration order by its id
Map the integration order into a Decentraland purchase (Transak example, Moon Pay example):
type Purchase = {
id: string
amount: number
network: Network
gateway: NetworkGatewayType
timestamp: number
status: 'pending' | 'failed' | 'cancelled' | 'complete'
address: string
txHash: string | null
}
(Optional) Get the purchase receipt URL
TBD