Code Monkey home page Code Monkey logo

cryptoapi / payment-gateway Goto Github PK

View Code? Open in Web Editor NEW
508.0 508.0 321.0 6.81 MB

Bitcoin/Altcoins PHP Payment Class. It supports Bitcoin BitcoinCash DASH Dogecoin Litecoin Reddcoin Feathercoin Vertcoin Potcoin Speedcoin. Install GoUrl php script - bitcoin api payment gateway on your site!

Home Page: https://gourl.io/bitcoin-payment-gateway-api.html

License: MIT License

PHP 6.91% HTML 0.07% JavaScript 0.69% CSS 92.32%
bitcoin bitcoin-api bitcoin-payment bitcoinj bitcoinrpc bitcoins php

payment-gateway's Introduction

GoUrl.io Cryptocoin Payment Gateway API

Version 2.2.3

Accept Bitcoin, Bitcoin Cash, Bitcoin SV, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, UniversalCurrency, MonetaryUnit Payments Online on your website

Payment-Gateway

Our Payment Gateway with Instant Checkout allows you to easily organise your website -

Information

Copyright © 2014-2023 Delta Consultants

Website: https://gourl.io

API PHP Instruction: https://gourl.io/api-php.html

API Python,Java,Node.js,etc: https://gourl.io/api-php.html

Wordpress Plugin: https://gourl.io/bitcoin_wordpress_plugin.html

Demo: https://gourl.io/bitcoin-payment-gateway-api.html

Introduction

PHP Cryptocoin Payment Gateway is a simple PHP/MySQL script / Wordpress Plugin which you can easily integrate into your own website in minutes.

Start accepting payments on your website, including all major cryptocoins, and start selling online in minutes. No application process.

The big benefit of Cryptocoin Payment Box is that it fully integrated on your website, no external payment pages opens (as other payment gateways offer).

Your website will receive full user payment information immediately after cryptocoin payment is made and you can process it in automatic mode.

Payment-Box

How It Works

A. Website Owner / Seller Side

You can use the following steps to sell your products on your website for cryptocoins if you wish to and can automatically convert them to USD

  • Install GoUrl crypto Payment Box on your website and dynamically configure order id, currency, amount to pay, etc. Or use Monetiser Online if you don't have your own website.
  • You can accept payments in Bitcoins only or you can accept other coins - Bitcoin Cash, Bitcoin SV, Dogecoin, Litecoin, Dash, etc also. See Demo1 (multiple coins) or Demo2 (Bitcoin only)
  • When you setup Cryptocoin Payment Box, you can enter the original amount in USD or in cryptocoins. The USD amount will be automatically converted to cryptocoin amount using today's LIVE cryptocurrency exchange rates (updated every 30 minutes) and the cryptocoin amount will be displayed in the payment box. For example, if you entered 20 USD, it will display 0.059 BTC in the payment box.
  • You will need to create an account on Poloniex.com or on Bitstamp.net (trading platforms)
  • Setup so that all your received payments are automatically forwarded from your GoUrl.io account to your account on Poloniex / Bitstamp (enter your Poloniex/Bitstamp coin wallet address in gourl payment box settings). And use the "autosell" feature (auto trade your cryptocoins to USD) on Poloniex/Bitstamp.
  • Using that functionality you don't need to worry if cryptocurrency prices go down or up. Within 1-2 hours after a cryptocoin payment has been received by you, your payment will be automatically converted to USD on Poloniex/Bitstamp and will be kept on your Poloniex/Bitstamp USD account.
  • Later you can withdraw your USD from Poloniex/Bitstamp to your own USA/UK/France/etc bank account

B. End User / Buyer Side

  • All your users will see GoUrl Payment Box on your webpage, and some users will use their coin wallets and make payments to you
  • In around 5 seconds after cryptocoin payment is made, user will see confirmation on your website page that payment is received (i.e. very fast)
  • Your website will automatically immediately receive current user id with full payment information from our payment server
  • The user will still be on your webpage and see that successful payment result, your script can automatically process payment and give user confirmation (for example, upgrading user membership or giving download link on your products, etc). All in automatic mode - no manual actions are needed
  • For user that payment procedure on your website will be looking very similar visually and compare with normal credit cards for its speed
  • No paperwork, no chargebacks, no monthly fee, low transaction fee (from 0%). Please note that during the next 30 minutes (after transaction is verified) payment will be automatically forwarded to your wallet address

Installation - PHP Script

THAT'S IT! CRYPTOCOIN PAYMENT BOX/CAPTCHA SHOULD NOW BE WORKING ON YOUR SITE.

Read more - https://gourl.io/api-php.html

Installation - Wordpress Plugin

Go to https://gourl.io/bitcoin-wordpress-plugin.html

MySQL Table

Please also run MySQL query below which will create MySQL table where all the cryptocoin payments made to you will be stored. You can have multiple crypto boxes on site, all of them relates to your different crypto boxes and will be stored in that one table :

CREATE TABLE `crypto_payments` (
  `paymentID` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `boxID` int(11) unsigned NOT NULL DEFAULT '0',
  `boxType` enum('paymentbox','captchabox') NOT NULL,
  `orderID` varchar(50) NOT NULL DEFAULT '',
  `userID` varchar(50) NOT NULL DEFAULT '',
  `countryID` varchar(3) NOT NULL DEFAULT '',
  `coinLabel` varchar(6) NOT NULL DEFAULT '',
  `amount` double(20,8) NOT NULL DEFAULT '0.00000000',
  `amountUSD` double(20,8) NOT NULL DEFAULT '0.00000000',
  `unrecognised` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `addr` varchar(34) NOT NULL DEFAULT '',
  `txID` char(64) NOT NULL DEFAULT '',
  `txDate` datetime DEFAULT NULL,
  `txConfirmed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `txCheckDate` datetime DEFAULT NULL,
  `processed` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `processedDate` datetime DEFAULT NULL,
  `recordCreated` datetime DEFAULT NULL,
  PRIMARY KEY (`paymentID`),
  KEY `boxID` (`boxID`),
  KEY `boxType` (`boxType`),
  KEY `userID` (`userID`),
  KEY `countryID` (`countryID`),
  KEY `orderID` (`orderID`),
  KEY `amount` (`amount`),
  KEY `amountUSD` (`amountUSD`),
  KEY `coinLabel` (`coinLabel`),
  KEY `unrecognised` (`unrecognised`),
  KEY `addr` (`addr`),
  KEY `txID` (`txID`),
  KEY `txDate` (`txDate`),
  KEY `txConfirmed` (`txConfirmed`),
  KEY `txCheckDate` (`txCheckDate`),
  KEY `processed` (`processed`),
  KEY `processedDate` (`processedDate`),
  KEY `recordCreated` (`recordCreated`),
  KEY `key1` (`boxID`,`orderID`),
  KEY `key2` (`boxID`,`orderID`,`userID`),
  UNIQUE KEY `key3` (`boxID`, `orderID`, `userID`, `txID`, `amount`, `addr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

.

Payment API List :

.

PHP Examples / Live Demo :

payment-gateway's People

Contributors

cryptoapi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

payment-gateway's Issues

display_cryptobox_bootstrap AJAX - Error

Hi,

When i use any example configured with AJAX. In console log show this:

Uncaught ReferenceError: error is not defined
at Object.eval (eval at (VM23 example_basic.php:1), :1:2456)
at u (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at k (jquery.min.js:2)
at XMLHttpRequest. (jquery.min.js:2)

When i paid nothing happens...

Thanks

Issues with payment

I was to make a payment for https://gourl.io/ovovi#a to access the script
The coin was ltc and it most be 0.0683502.
The fee was deducted so it changed the amount from 0.0683502 to 0.683002
This is the transaction id
https://blockchair.com/litecoin/transaction/c4ad5ce71defc674006bafe6f5230661f840cc9496021689caf558e4468280ca

The address is LbgHZzckhHB7yj79gA5pAHGM4r3CibJ38B

This is the screenshot of the image when i sent it
https://ibb.co/ZMGfzMY

Please what should i do thanks or did the transaction go through.

Can I run on my own webserver?

Is this suite of PHP scripts intended to be run on one's own webserver, or does it rely on a third-party webserver to function?

Payment Screen Blank

I'm setting up a system to let users deposit money into their account. When I try to generate the payment screen, it is returning a blank empty box.

You can see the URL here: https://merkd.com/me.wallet.gourl.php?amount=300

And my code is below:

`<?php
global $me;

$amount = (int)$_GET['amount'];

/**
 * @category    Example1 - Pay-Per-Product (single crypto currency in payment box)
 * @package     GoUrl Cryptocurrency Payment API
 * copyright    (c) 2014-2016 Delta Consultants
 * @crypto      Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit
 * @website     https://gourl.io/bitcoin-payment-gateway-api.html#p1
 * @live_demo   https://gourl.io/lib/examples/pay-per-product.php
 */

    require_once('engine/api/bitcoin/cryptobox.class.php');

    /**** CONFIGURATION VARIABLES ****/

    $userID         = $me['id'];                // place your registered userID or md5(userID) here (user1, user7, uo43DC, etc).
                                        // you don't need to use userID for unregistered website visitors
                                        // if userID is empty, system will autogenerate userID and save in cookies
    $userFormat     = "COOKIE";         // save userID in cookies (or you can use IPADDRESS, SESSION)
    $orderID        = "invoice00033";   // invoice number - 000383
    $amountUSD      = $amount;              // invoice amount - 2.21 USD
    $period         = "NOEXPIRY";       // one time payment, not expiry
    $def_language   = "en";             // default Payment Box Language
    $public_key     = ""; // from gourl.io
    $private_key    = "";// from gourl.io
    // IMPORTANT: Please read description of options here - https://gourl.io/api-php.html#options

    /********************************/




$options = array(
    "public_key"  => $public_key,         // place your public key from gourl.io
    "private_key" => $private_key,         // place your private key from gourl.io
    "webdev_key"  => "",        // optional, gourl affiliate program key
    "orderID"     => $orderID, // few your users can have the same orderID but combination 'orderID'+'userID' should be unique
    "userID"      => $me['id'],        // optional; place your registered user id here (user1, user2, etc)
    // for example, on premium page you can use for all visitors: orderID="premium" and userID="" (empty)
    // when userID value is empty - system will autogenerate unique identifier for every user and save it in cookies
    "userFormat"  => $userFormat,   // save your user identifier userID in cookies. Available: COOKIE, SESSION, IPADDRESS, MANUAL
    "amount"      => 0,         // amount in cryptocurrency or in USD below
    "amountUSD"   => $amount,         // price is 2 USD; it will convert to cryptocoins amount, using Live Exchange Rates
    // For convert fiat currencies Euro/GBP/etc. to USD, use function convert_currency_live()
    "period"      => $period,  // payment valid period, after 1 day user need to pay again
    "iframeID"    => "",         // optional; when iframeID value is empty - system will autogenerate iframe html payment box id
    "language"    => "EN"       // text on EN - english, FR - french, please contact us and we can add your language
);

// Initialise Bitcoin Payment Class
$box = new Cryptobox ($options);

// Display payment box with custom width = 560 px and big qr code / or successful result
$payment_box = $box->display_cryptobox(true, 560, 230, "border-radius:15px;border:1px solid #eee;padding:3px 6px;margin:10px;",
    "display:inline-block;max-width:580px;padding:15px 20px;border:1px solid #eee;margin:7px;line-height:25px;");

// Log
$message = "";

// A. Process Received Payment
if ($box->is_paid())
{
    $message .= "A. User will see this message during 24 hours after payment has been made!";

    $message .= "<br>".$box1->amount_paid()." ".$box1->coin_label()."  received<br>";

    // Your code here to handle a successful cryptocoin payment/captcha verification
    // For example, give user 24 hour access to your member pages
    // ...

    // Please create/use IPN (instant payment notification) function cryptobox_new_payment() for update db records, etc
    // Function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") called every time
    // when a new payment from any user is received.
    // IPN description: https://gourl.io/api-php.html#ipn
}
else $message .= "The payment has not been made yet";


// B. Optional - One-time Process Received Payment
if ($box->is_paid() && !$box->is_processed())
{
    $message .= "B. User will see this message one time after payment has been made!";

    // Your code here - user see successful payment result
    // ...

    // Also you can use $box1->is_confirmed() - return true if payment confirmed
    // Average transaction confirmation time - 10-20min for 6 confirmations

    // Set Payment Status to Processed
    $box->set_status_processed();

    // Optional, cryptobox_reset() will delete cookies/sessions with userID and
    // new cryptobox with new payment amount will be show after page reload.
    // Cryptobox will recognize user as a new one with new generated userID
    // $box1->cryptobox_reset();


    /********************************************************************************************************/
    /**  This IPN function is used every time a new payment from any user is received successfully         **/
    /**  Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/
    /**  payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'.           **/
    /**                                                                                                    **/
    /**  Move this function to the bottom of the file cryptobox.class.php or create a separate file        **/
    /**  More info: https://gourl.io/api-php.html#ipn                                                      **/
    /********************************************************************************************************/
    function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "")
    {
        // Your php code here to handle a successful cryptocoin payment/captcha verification
        // for example, send confirmation email to user
        // update user membership, etc - https://gourl.io/api-php.html#ipn

        // .... ....

        return true;
    }

}

?>
<!DOCTYPE html><html><head>
    <meta http-equiv='cache-control' content='no-cache'>
    <script src='cryptobox.min.js' type='text/javascript'></script>
</head><body>

<?= $payment_box ?>
<?= $message ?>

</body>
</html>`

Get realtime price

how is it possible to just check real time price for any crypto coin?

Deposits and Fees don't seem to be right at all now!

Emailed support, haven't heard back! Am I the only one that seems to be seeing 10% fees on transactions now. I don't have a clue what is going on! They say 1.5% but it's like literally 10.3% now.

Some information on this would be great, we are processing a lot of transactions.

Main site not working

Post here as no one is responding to emails on the mail site.
The forgot password is not sending emails out, please advise me on how to get a new password. I need to change the webhook my payment box asap!! We have glitches with the code and need to fix it now. thanks.

Only once sell

How can I make pay per download system is like only once sell. If someone download it it should be expired and should say for the all other people "SOLD" so they can't buy it again.

Mysql Erro

Why do i always get this error?

?bitcoinMySQL Error: Table 'gourl.crypto_payments' doesn't exist; SQL: SELECT paymentID, amount, amountUSD, txConfirmed, txCheckDate, txDate, processed, boxType FROM crypto_payments WHERE boxID = 5424 && orderID = 'premium_membership' && userID = 'xzx' && txDate >= DATE_SUB('2017-06-06 10:14:57', INTERVAL 1 MONTH) ORDER BY txDate DESC LIMIT 1

Laravel

much better if this is can integrate in laravel?

Not forwarding coin

Gourl look like a scarn I. Have up to 70$ worth of btc I prove my wallet address Multiple time still not forwarding my coin support is not replying look like a scarm

Is this project still alive?

Hello, I am a gourl plugin user a long time ago, yesterday I downloaded and installed the pluging again on my website.
What I found was a little sad, 'cause I found several death coins such as PEERCOIN, UNIT, MUNI etc.

I think this is agreat job, but coin voting was ended, I think this amazing project must have more coins, I have a list if you wanna take in mind.

  • ETH
  • TRON and some of its tokens as WIN, BTT among other good projects.
  • BNB and some of its tokens as BANANA, CAKE among other good projects.
  • ADA and some of its tokens as good projects.
  • LINK [CHAINLINK]
  • TETHA
  • IOTA

What I want to be clear is this payment gateway is the best one in market, do not let it die, update the coin list, allow us to vote new coins and let´s grow to the moon!

Private Keys Issues

When using a multi-user environment, as you've outline in your examples. Where we have our members get their own public/private keys from gourl and save them in our site.

The code is calling the key from *.config.php and making an error, how is it possible to code is call out of the process and also, why are you calling the key from the config if we are putting them in the code at the time of creating the payment anyways.

This is the call ...

	if (!defined("CRYPTOBOX_PRIVATE_KEYS") || !in_array($this->private_key, explode("^", CRYPTOBOX_PRIVATE_KEYS))) die("Error. Please add your Cryptobox Private Key ".(CRYPTOBOX_WORDPRESS ? "on your plugin settings page" : "to \$cryptobox_private_keys in file cryptobox.config.php"));

Here's what I did .. but apparently we're stupid and it doesn't work all the time.

$allkeys = run_sql('select * from `coinblock_usersettings`');

$cryptobox_private_keys = array();

foreach ($allkeys as $a){ $cryptobox_private_keys[] = $a->privateKey; }

define("CRYPTOBOX_PRIVATE_KEYS", implode("^", $cryptobox_private_keys));
unset($cryptobox_private_keys); 

Error in Cryptobox.class.php

Source Downloaded.
Public and Private key Editeds.
Database configured.

PHP Parse error: syntax error, unexpected '[' in /var/www/Payment-Gateway/cryptobox.class.php on line 1087

Any idea ?

Refund Request

Hi GoUrl,

This is the second time im contacting you, im getting plenty worried.
I made a payment on minersdepo.com website, which is clearly used to scam people from their money.

I don't know what is your verification method for your partners , but this is very troubling, I need to know you are receiving these messages, and are working on my case ?

This is the data that you might need to recall the transaction with the given id.
Transaction 0484782f3ef5c91bb03b23b3434bdeebee498c1bda8685db051c1737031f4d05 | Blockchain Explorer1.pdf

https://drive.google.com/drive/folders/1yTwn8QzyPxrzfFs5r8MzIcj_lSlyb8JT?usp=sharing

Will you refund this order, or are you supporting scam websites in your service ?
Tell me what additional info you need, and what is your process for refunding payments in your service.

Expecting good news,
Kristijan.

Failing on cryptobox.callback.php part

Hello all, so I am working on setting this up and I am having issues getting the cryptobox.callback.php and cryptobox.newpayment.php to work properly as of right now I am getting a 404 error when going to the cryptobox.callback.php file.

The error is PHP message: PHP Parse error: syntax error, unexpected '{', expecting '(' in /lib/cryptobox.newpayment.php on line 86"

ive read every page i could find and im sure the issue is something to with how the newpayment file is setup. can you please post exactly how its supposed to work with functioning code?

Google Currency Live function has been a issue for the past few days

as for me I had to change the function to use the code below, hope it helps someone else

$url = "http://currencies.apps.grandtrunk.net/getlatest/".$from_Currency.'/'.$to_Currency;
try 
{
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)");
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 20);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 20);
    $rawdata = curl_exec($ch);
    curl_close($ch);
    if(is_numeric($rawdata)){
        $amount = ($rawdata * $amount);
    }else{
        $amount = 0;
    }
    return round($amount, 2);
} 
catch (Exception $e){
    $amount = 0;
    return round($amount, 2);
}

Testing api

How will I test this API? Any test-net/test coin or sandbox access?

Ipn issue

I've integrated the API with codeigniter framework
Everything is going good but the second call for callback url is not firing
I have to reload the page after the payment confirmed to get response from gourl (to check it as confirmed on db)
I use Ajax so it should fired automatically ?

More coins integration

How can i add these coins to the list of coins for payment?

bitcoin
ripple
etherum
dogecoin
tattoocoin (tse)
tattoocoin (tle)
etherum clasic
lisk
litecoin
monero

Version 1.8.1 (August 2017)

Awesome update and thanks for jumping on this so quick! What are you using for a wallet / storage ? Still trying to find something that works good.

Mike.

Hello I need help.

I have some issue with payment.. answer on my email. My nickname FMDOSE. Letter about transaction with 0.01652907 LTC

How can someone test the payment integration

I want to be able to test this integration and receive all the success message before using my own api keys for my business.

please give solution it not explained in the documentation

Invalid Private Key

I'm getting an error like this Invalid Private Key - {key} in variable $cryptobox_private_keys, file cryptobox.config.php.. I just don't know what to put on it because the private keys are already defined in the example line 87. Someone can help me please?

User Payments Issue

I am using the user/user payment system with PHP ... our users input their keys etc just like outline in your code. It all works, but we've been had issues with some users IPN webhook not pushing back. Is there a way to confirm a webhook is like with users api keys or gather data with users api keys ?

Basically, we have people that have paid but the user is not getting back to us and letting us know if payment was confirmed or not. Otherwise, if the webhook worked it would have reported.

Thanks!!

How can one confirm payment status directly on your service from a different programming language?

Hi. I'm working on a GoURL SDK for NodeJs and I've been able to successfully implement the get_json_values() (named createPayment() in the code) method that starts the payment process. Now, I'm trying to implement the check_payment_live() (named checkPaymentStatus()) to allow the user directly check the status of his/her payment on demand. But each time I make a POST request to the https://coins.gourl.io/result.php route with the required data parsed as a query string, I get the following response:

{
        "status": "error",
        "err": "Invalid data submitted",
        "box": "",
        "boxtype": "",
        "order": "",
        "user": "",
        "userformat": "",
        "period": "",
        "amount": "",
        "amountusd": "",
        "coinlabel": "",
        "coinname": "",
        "addr": "",
        "tx": "",
        "confirmed": "",
        "timestamp": "",
        "date": "",
        "datetime": ""
    }

Here is the data that gets converted to a query string and sent in the request:

{
      g: privateKeyHash,
      b: options.boxID,
      o: options.orderID,
      u: options.userID,
      l: options.language,
      e: period,
      i: options.ipAddress,
      h: hash,
    }

Below is the implementation:

static async checkPaymentStatus(options: PaymentStatusOptions): Promise<any> {
    const privateKeyHash = crypto
      .createHash('sha512')
      .update(options.privateKey!)
      .digest('hex');

    const period = formatExpiryPeriod(options.period);

    const toHash = `${options.boxID}${privateKeyHash}${options.userID}${options.orderID}${options.language}${period}${options.ipAddress}`;
    const hash = md5(toHash);

    const data = {
      g: privateKeyHash,
      b: options.boxID,
      o: options.orderID,
      u: options.userID,
      l: options.language,
      e: period,
      i: options.ipAddress,
      h: hash,
    };

    const url = `https://coins.gourl.io/result.php`;

    const res = await axios.post(url, null, {
      params: data, // converts and attaches data as a query string
      headers: {
        'User-Agent': options.userAgent,
      },
      timeout: 20000,
    });
    
    return res.data;
  }

This NodeJs implementation doesn't attempt to store/use sessions or store the data in any database. It only provides the user the JSON data returned from the GoUrl server. I don't know why I keep getting the Invalid data submitted error. The data I send in the POST request to check payment status matches the data I send when initiating the payment in the first place. Please, I need help to understand what I'm not doing right.

This is the link to the repo: https://github.com/steveify1/node-gourl/tree/ft-check-payment-status-%2326.
The link to the Cyptobox class: https://github.com/steveify1/node-gourl/blob/ft-check-payment-status-%2326/lib/Cryptobox.ts

I understand that this is the repo for the PHP implementation, but I couldn't send a DM on twitter. Thanks.

IPN Testing

Hello,

Is it possible to do a test IPN so that I can confirm if my server handles everything properly wihtout having to actually buy some crypto just to test this?

Insufficient funds using dogechain

Hi.
I have using the dogechain to send the doge to gourl payment wallet but I receivet the message "Insufficient funds", but I have more of that I need.
I need to change any configuration?
Tks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.