Questions tagged [coinpayments-api]

28 questions
0
votes
0 answers

ASP.NET MVC - Session Variables are null in Callback from server ActionResult method

I am implementing CoinPayments IPN in my application and I have trouble with passing data to the method that take their Callback. I have tried like everything I could find: TempData, SessionVariables, tried to implement it somewhere in forms and…
0
votes
0 answers

while loop in sync function in node js

In this code client.createTransaction() function returns result1.txid. From that result1.txid i want to run while loop and inside that while loop I want to client.getTx() repeatably untill i get status == 1 or -1. Here i cant able to run the while…
alt j
  • 11
  • 5
0
votes
1 answer

Polling error using Coinpayments in Node.js

Code works fine, but when executed after few seconds it starts consoling error message 'Polling error'. I tried searching the term but nothing came up, Any help is appreciated. var Coinpayments = require('coinpayments'); var options = { key:…
Krunal Limbad
  • 1,533
  • 1
  • 12
  • 23
0
votes
1 answer

coinpayments api route for createTransaction

Hello am using coinpayment api for accepting crypto coins in my site but don't know how i can add a get route which i can link to a button where a client clicks to be redirected to a page where the address and amount is shown to them. Am new to…
Fillipo Sniper
  • 419
  • 2
  • 11
  • 28
0
votes
1 answer

How to use Coinpayments API in node js

am trying to integrate coinpayments into my site am using express js to run it i have gone through the npm docs but it still seems unclear to me and i have tried running some code and still nothing shows up. Any help is highly appreciated. var…
Fillipo Sniper
  • 419
  • 2
  • 11
  • 28
0
votes
1 answer

Coinpayments IPN is not redirecting user back

The code: $CP->setFormElement('currency', 'LTCT'); $CP->setFormElement('amountf',0.0002); $CP->setFormElement('item_name', 'Test Item'); $CP->setFormElement('custom', 'customValue235'); $CP->setFormElement('ipn_url',…
0
votes
1 answer

populate array with while loop from database

i want to create a mass withdrawal with coinpayments api. and it should look like this $req = array( 'wd[wd1][amount]' => 1.00, //amount will be fetched from database 'wd[wd1][address]' => '1BitcoinAddress', //btc address from database …
justice
  • 75
  • 1
  • 2
  • 11
-1
votes
0 answers

coinpayments saying I need an API key for one particular function

I have an api router in nextjs. pages/api/checkout import { coinpayments } from "../../../initCoinpayments"; export default async function handler(req, res) { const { id } = req.query; try { const transactionInfo = await…
a7dc
  • 3,323
  • 7
  • 32
  • 50
-1
votes
1 answer

how to accept payment with bitcoin in Ionic

I am building an e-commerce website with bitcoin with ionic framework, now my problem is that I want my users to be able to pay with bitcoin, I have searched online for bitcoin payment API that support ionic or angular, but found none, I tried using…
-1
votes
1 answer

Is there anyway to reduce funds confirmation timing in coinpayments api?

I recently used CoinPayments API on my website but the expiration time of the invoice is 8hrs. Is there any possible way to reduce it to minutes?
-1
votes
2 answers

hash_hmac() expects parameter 2 to be string, array given

Im getting this error: [2019-04-04 05:00:04] local.ERROR: hash_hmac() expects parameter 2 to be string, array given {"exception":"[object] (ErrorException(code: 0): hash_hmac() expects parameter 2 to be string, array given at…
-1
votes
1 answer

how to parse some data from server response?

I'm new to nodejs. I now have a code like this. var Coinpayments = require('coinpayments'); var cpayment = new Coinpayments({ key: 'api', secret: 'api', autoIpn: true }); var address = cpayment.getCallbackAddress("BTC", function (err,…
alibag90
  • 17
  • 4
  • 8
-1
votes
1 answer

coinpayment api in mvc

I am in beginner programming. I want to get some coins on my site through https://www.coinpayments.net/ I found a class library on that site to call API for transactions And a form tag to post values Now I'm confused which one should I use?
1
2