GithubHelp home page GithubHelp logo

Comments (3)

astupidmoose avatar astupidmoose commented on May 19, 2024

Full API Documentation here:
https://changelly.com/developers

Here is an example of my "payment button" code I just created. Scenario below is as follows:

Destination Coin = Bitcoin
Default Payment Coin = Ether
Destination Address (needs to be BTCPay generated) = 123456789
*Default payment amount = 987
Merchant_id = b95c6c2d3f28 (This is specific to each shop, and will require merchants to create an account on Changelly)

<link rel="stylesheet" href="https://changelly.com/widget.css"/> <a id="changellyButton" href="https://changelly.com/widget/v1?auth=email&from=ETH&to=BTC&merchant_id=b95c6c2d3f28&address=123456789&amount=987&ref_id=b95c6c2d3f28&color=00cf70" target="_blank"> <img src="https://changelly.com/pay_button_pay_with.png" /> </a> <div id="changellyModal"> <div class="changellyModal-content"> <span class="changellyModal-close">x</span> <iframe src="https://changelly.com/widget/v1?auth=email&from=ETH&to=BTC&merchant_id=b95c6c2d3f28&address=123456789&amount=987&ref_id=b95c6c2d3f28&color=00cf70" width="600" height="500" class="changelly" scrolling="no" style="overflow-y: hidden; border: none" > Can't load widget </iframe> </div> <script type="text/javascript"> var changellyModal = document.getElementById('changellyModal'); var changellyButton = document.getElementById('changellyButton'); var changellyCloseButton = document.getElementsByClassName('changellyModal-close')[0]; changellyCloseButton.onclick = function() { changellyModal.style.display = 'none'; }; changellyButton.onclick = function widgetClick(e) { e.preventDefault(); changellyModal.style.display = 'block'; }; </script> </div>

*Default payment amount makes no sense to me. This is NOT what is needed to pay for your invoice to be completed, but rather a default amount that you can set to be sent. It does not seem useful as a merchant and confusing to a customer.

from btcpayserver.

rockstardev avatar rockstardev commented on May 19, 2024

Yeah... that's the showstopper. Here is how the process looks in Shapeshift after dialog is open:

animation

With Changelly they go with that "default payment amount"... if you want to test how their process looked, I've actually left code for that:

https://github.com/btcpayserver/btcpayserver/blob/master/BTCPayServer/Views/Invoice/Checkout.cshtml#L291

Just un-comment those few lines and you'll see what dialog you get and how process looks.

from btcpayserver.

NicolasDorier avatar NicolasDorier commented on May 19, 2024

Received from them:

Hey Predrag,


I'm Mark, head of Changelly product. 

Thanks for your interest in our service!


You are welcome to use our API for crypto to crypto exchanges.

Kindly note that our API is created for crypto to crypto transactions only, no USD or EUR payments are available


We don't have an option to ask for the fees by Destination coin and it's amount cause we don't fix the rates.  https://changelly.com/faq#why-not-fix-rates

Would like to offer you this option later. 


Should you require any further assistance, feel free to write me.


Regards,

Mark

I think we can close this as changelly is unlikely to implement what we need for now. :/

from btcpayserver.

Related Issues (20)

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.