Comments (3)
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.
Yeah... that's the showstopper. Here is how the process looks in Shapeshift after dialog is open:
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:
Just un-comment those few lines and you'll see what dialog you get and how process looks.
from btcpayserver.
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)
- [Feature]: As admin allow stores of other users to be deleted HOT 1
- [Bug]: Apply and close button error on editing product
- [Bug]: email not obfuscated when adding "contact us" information HOT 4
- New item view for keypad (possible improvements) HOT 1
- [Bug]: after updating to version v1.13.0+5b31d4de2 (Altcoins) some stores are inaccessible
- [Bug]: Receipt Data does not show on printed paper version from POS. HOT 3
- lightning-rpc not start HOT 1
- Adding Tether as BTCPay Server Foundation supporter HOT 2
- [Bug]: Greenfield API: Create store on-chain wallet transaction failing with RPC_TRANSACTION_ERROR bad-txns-inputs-missingorspent HOT 1
- Problem with resetting Bolt Cards HOT 1
- No UTXO left to bump fee HOT 1
- [Bug]: Error LNURL payment link on creating invoices over API HOT 2
- BTCPay Server 2.0: Megathread HOT 8
- [Bug]: Npgsql.PostgresException (0x80004005): 42P07: relation "__EFMigrationsHistory" already exists HOT 5
- Removal of some DB column that aren't needed
- [Bug]: UX: Possible double sent on pull-payments/payouts HOT 2
- [Bug]: Error when calling api "Create store on-chain wallet transaction." HOT 3
- [Bug]: On CSV export we do have 12h format but no indication of am/pm
- [Bug]: 404 when visiting POS or crowdfund over Tor HOT 4
- [Bug]: Broken dashboard after update to v1.13.0 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from btcpayserver.