Discussions

Ask a Question

How to know the progress of enterprise review?

The company has submitted company-related information, but there is still no feedback on the review progress, and it is impossible to know the specific reasons for the rejection.e is still no feedback on the review progress, and it is impossible to know the specific reasons for the rejection.elated information, but there is still no feedback on the review progress, and it is impossible to know the specific reasons for the rejection.
ANSWERED

Do you have an endpoint that allows to create order through api

So my question is in the title:Do you have an endpoint that allows to create order through api
ANSWERED

Custom styling

Hello! Your widget is white, our app is dark, and they do not look very well together. The only customizable option described in the docs is "themeColor" which doesn't make much difference. Is there a way to apply custom css to your widget to make it look better in the dark visual context?
ANSWERED

Custom styling

Hello! Your widget is white, our app is dark, and they do not look very well together. The only customizable option described in the docs is "themeColor" which doesn't make much difference. Is there a way to apply custom css to your widget or do something else to make it look better in the dark visual context?
ANSWERED

How can I logout using react js?

I want the user's data not to be saved when he logout of my system

Problem with webhook integration in Nodejs

I have added the below code and installed the jsonwebtoken package as well. After running the code , its throwing error "ReferenceError: Orders is not defined" . const jwt = require('jsonwebtoken'); Orders.transakWebhook = function (body, next) { let accessToken = 'eyJhbGciOiJIUzI1NiuuuunR5cCI6Ikkjdhfkadjjjjjj.eyJBUElfS0VZIjoiNzNhYTk4ZTQtYTlhMC00YzEwLTk5MWItNjZlMTAyYmI3ZmFkIiwiaWF0IjoxNjk3NzkxMjE2LCJleHAiOjE2OTgzOTYwMTZ9.LNQT-BlhdKy6LukgCCSCsD4D_tQzVuvAr7xjrDKZiok'; let decodedData = jwt.verify(body.data, accessToken); }; Orders.remoteMethod('transakWebhook', { description: 'Transak WebHook', accepts: [{arg: 'data', type: 'object', required: true, http: {source: 'body'}}], returns: {arg: 'response', type: 'object'}, http\: {path: '/webhook', verb: 'post'}, }); //output given below:- Orders.transakWebhook = function (body, next) { ^ ReferenceError: Orders is not defined at Object.<anonymous> (/home/nirajkumar/Public/PROJECTS/transak/webhook.js:3:1) at Module.\_compile (node:internal/modules/cjs/loader:1155:14) at Object.Module.\_extensions..js (node:internal/modules/cjs/loader:1209:10) at Module.load (node:internal/modules/cjs/loader:1033:32) at Function.Module.\_load (node:internal/modules/cjs/loader:868:12) at Function.executeUserEntryPoint [as runMain] \(node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47
ANSWERED

problem with my order

why can't i place my order on my account ?
ANSWERED

【Android Integration】unable to fetch the required data, please refresh the page

i have added almost total params , but still got this error in android native page here is the params list: val datas = """ { "apiKey": "0cda98cc-d4ad-4832-9deb-23df270d47e9", "environment": "STAGING", "exchangeScreenTitle": "BuyCrypto", "productsAvailed": "BUY", "defaultFiatAmount": 1100, "fiatAmount": 1550, "fiatCurrency": "USD", "defaultFiatCurrency": "USD", "countryCode": "IN", "defaultNetwork": "ethereum", "network": "ethereum", "networks": "ethereum, polygon", "defaultPaymentMethod": "credit_debit_card", "paymentMethod": "paymentMethod", "disablePaymentMethods": "gbp_bank_transfer, sepa_bank_transfer", "cryptoCurrencyCode": "ETH", "cryptoAmount": 1, "defaultCryptoAmount": 1, "walletAddress": "0xdEc4A9F3f6e41Ca....9DF7Bf308514611b", "email": "xxxx", "redirectURL": "<https://google.com">, "partnerOrderId": "5e2f559511a9de", "partnerCustomerId": "23487492" } """ ![](https://files.readme.io/9f163fa-image.png) Hoping your answer!
ANSWERED

Unable to open transak SELL widget

Hi, I am trying to open sell widget using query parameters but failing to do so. I am using staging environment here, I am using query like below to open widget. <https://global-stg.transak.com/?apiKey=6327387b-0a4a-49e4-905b-26f31d41010c&productsAvailed=SELL>
ANSWERED

Event is not getting triggered after placing an order?

I have integrated the event in Nodejs as per the documentation(channel 3) . I want to save the payload response received after placing any order successfully. But i am getting payload as empty . Looks like event is not getting triggered . after some interval i getting response as pong message with empty payload. Below i am sharing the code for reference. Please let me know if i have made any mistake while integration. require("dotenv").config(); const axios = require("axios"); const Pusher = require('pusher-js'); const jwt = require('jsonwebtoken'); const express = require("express"); const app = express(); app.use(express.json()); let pusher = new Pusher('1d9ffac87de599c61283', {cluster: 'ap2', params:{apiKey: process.env.TRANSAK_API_KEY}}); // console.log("new pusher data", pusher.timeline.events); let apiKey = process.env.TRANSAK_API_KEY; let partnerApiSecret = process.env.TRANSAK_API_SECRET; let channel = pusher.subscribe(apiKey); // console.log("channel----------------",channel.pusher); let callback = function (encryptedOrderData) { console.log(`pushed data`,encryptedOrderData); if (encryptedOrderData && typeof encryptedOrderData === 'string') { try { let decryptedOrderData = jwt.verify(encryptedOrderData, partnerApiSecret); if (decryptedOrderData && decryptedOrderData.id) { console.log({orderData: decryptedOrderData}) } } catch (e) { console.error(e) } } }; //receive updates of a specific order let user_order_id = "df93d768-2231-4261-9e31-91f0ceb80356"; channel.bind(user_order_id, (encryptedOrderData) => { console.log("processing"); return callback(encryptedOrderData) }); //receive updates of all the orders channel.bind_global((orderId, encryptedOrderData) => { console.log(`Order update ${orderId}`); return callback(encryptedOrderData) }); pusher.bind_global((orderId, encryptedOrderData) => { console.log(`Order update ${orderId}`); return callback(encryptedOrderData) });