Giter Site home page Giter Site logo

firebearstudio / shapeshift-magento2 Goto Github PK

View Code? Open in Web Editor NEW
24.0 8.0 10.0 99 KB

Accept cryptocurrency payments without fee on Magento 2 by ShapeShift exchange API

Home Page: https://firebearstudio.com/blog/firebear-shapeshift-magento-2-extension.html

License: GNU General Public License v3.0

PHP 84.23% JavaScript 9.35% HTML 6.42%
magento2 magento2-extension magento2-module magento2-payment-gateway magento2-project shapeshift cryptocurrency bitcoin ethereum ecommerce

shapeshift-magento2's People

Contributors

artemfb avatar artsiom-dziadziulia avatar biotech avatar magelogger 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shapeshift-magento2's Issues

Order confirmation message

When the ShapeShift extension is installed and disabled, the order confirmation page shows the message:
"Your order was placed with ShapeShift.io payment. " despite the use of another payment mechanism. I did not test the result when the extension is enabled and another payment mechanism is used.

Terms & Conditions checkbox doesn't show up

If terms and conditions are enabled and active there should be a checkbox to accept them on the checkout page. If I add a 'purchase order' payment option, the checkbox shows up as expected. It doesn't show up for the shapeshift payment method even when this is the only enabled payment method.

image
image

It should look like this:
image

I'm experiencing this issue with the default theme and Magento v2.2.3

If you want to reproduce this, add something under stores > terms & conditions and then for the settings in stores > sales > checkout enable onepage checkout and terms & conditions.

cannot complete order

After clicking 'place order' I am not redirected to Shape Shift to make the payment. Instead, it gives a spinning progress indicator for a few seconds, then a blank error:
image

The log doesn't show anything to tell me what's wrong either:

[2018-05-06 02:46:01] main.INFO: API START [] []
[2018-05-06 02:46:02] main.INFO: SELECT CURRENCY NAME: Litecoin [] []
[2018-05-06 02:46:03] main.INFO: DEPOSIT ADDRESS: LfEM5mhtRYVsemV16G3xaM55hH5WZg2uUW [] []
[2018-05-06 02:46:03] main.INFO: RETURN ADDRESS:  [] []
[2018-05-06 02:46:03] main.INFO: AMOUNT: 0.0557289345 [] []
[2018-05-06 02:46:03] main.INFO: API XCHECK DEFAULT [] []
[2018-05-06 02:46:03] main.INFO: API XCHECK AMOUNT [] []
[2018-05-06 02:46:03] main.INFO: sendFixedAmount() 1 [] []
[2018-05-06 02:46:03] main.INFO: sendFixedAmount() 2 [] []
[2018-05-06 02:46:03] main.INFO: sendFixedAmount() 3 [] []
[2018-05-06 02:46:21] main.INFO: sendFixedAmount() DATA:  {"success":{"orderId":"7d4ac5ce-e595-4080-ba83-8d262cce6c46","pair":"eth_ltc","withdrawal":"LfEM5mhtRYVsemV16G3xaM55hH5WZg2uUW","withdrawalAmount":"0.0557289345","deposit":"0x8ea24bd7de96e74cba59ab7b4d52432f3a893463","depositAmount":"0.0123313","expiration":1525575381542,"quotedRate":"4.58012726","maxLimit":6.01255456,"returnAddress":"","apiPubKey":"2106861f10516dabde38412e6568a11890605ccea018377daf8fa4378eeed12f33a7b73bda9ed23250fbbedf939e5101be80218746ac97edca6ab96516d92f73","minerFee":"0.00075"}} []

Order goes through fine if I choose a different payment method.
Magento v2.2.3

Shape Shift Minimum and Maximum

A few suggestions for the Shape Shift extension:

-- Add a min and max field to the configuration with the Shape Shift limits as the default and also the smallest and largest values that can be entered. Then, a checkbox to prevent the checkout option from being shown when the checkout total is outside the limits to prevent customer frustration in completing all the fields only to get the error from Shape Shift.

-- Add a description of what Shape Shift is on the payment type selection page, so people checking out will know it's for Crypto currency payment

-- Allow vendors to determine what payment options customers can use to make payments. Some vendors may not want to support all types of currency, despite receiving all payments with the selected type. Similar to selecting what countries they want to support.

-- The "return address" might need "(your receive address for any needed refunds)" or something similar added to the description so people don't put private keys in there.

Thanks for developing this extension.

Could checkout when ETH is set as currency

Steps to reproduce:

  • Go to configuration (Stores=>Configuration=>Payment methods=>Shape Shift Payment)
  • Set following values
    ** Enable => Yes
    ** What currency do you want to receive? => ETH
    ** Deposit Address => your address
    ** Allow currency => select all
  • Go to frontend and try to checkout using Shape Shift

Actual result:
Call to http://host/shapeshift/api/index fails with 503
Debug message: "CoinMarketCap API error: id not found"

Expected result:
User friendly error message should be displayed on checkout page in case of error.

Notes:
Issue comes from different currency name used for\from api requests:
Call to https://shapeshift.io/getcoins gives ETH = ether. While https://api.coinmarketcap.com/v1/ticker/{currency_id} expect it to be "ethereum"
So wrong enpoint is used
https://api.coinmarketcap.com/v1/ticker/ether/
intead of
https://api.coinmarketcap.com/v1/ticker/ethereum

No client-side validation that a currency is selected

On the checkout page, if I select the Shapeshift payment method but do not select a valid entry from "What currency do you want to pay?" select field, I do not get a message about being required to select a currency, but a message "There was an error creating your order, please try again in a few minutes. (0x03331202) Request: https://shapeshift.io/sendamount" instead.

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.