GithubHelp home page GithubHelp logo

bitpay-checkout-magento's Introduction

Quick Setup

Build Status

This version requires the following

  • A BitPay merchant account (Test or Production)
  • An API Token (Test or Production
    • When setting up your token, uncheck the Require Authentication button
  • Magento 1.9.x

Installation

  1. Upload all files to your Magento installation root
  2. In your System->Configuration->Web, add the following scripts
<script src = "https://bitpay.com/bitpay.min.js"></script>
<script src = "/js/bitpay/showmodal.js"></script>

You can now activate the BitPay Checkout in the System->Configuration->Payment Methods

  • Title - This will be the title that appears on the checkout page

  • Merchant Tokens

    • A development or production token will need to be set
  • BitPay Server Endpoint

    • Choose Test or Production, depending on your current setup. Your matching API Token must be set.
  • Checkout Flow

    • Redirect - This will send the user to the BitPay invoice screen, and they will be redirected after the transaction to the Order Completed page
    • Modal - This will open a popup modal on your site, and will display the order details once the transaction is completed.
  • Auto Capture Email - If enabled, the plugin will attempt to auto-fill the buyer's email address when paying the invoice

  • Payment from Specific Countries - You MUST select the countries to enable BitPay to appear in the checkout

This plugin also includes an IPN (Instant Payment Notification) endpoint that will update your Magento 1 order status.

An order note will automatically be added with a link to the BitPay invoice to monitor the status

  • Initially your order will be in a Pending status when it is intially created
  • After the invoice is paid by the user, it will change to a Processing status
  • When BitPay finalizes the transaction, it will change to a Complete status, and your order will be safe to ship, allow access to downloadable products, etc.
  • If you decide to refund a payment via your BitPay dashboard, the Magento 1 order status will change to Closed once the refund is executed.

bitpay-checkout-magento's People

Contributors

thejoshualewis avatar

Stargazers

Reed HHW avatar Gábor Mihálcz avatar Felipe Monteiro avatar

Watchers

Robert Brodie avatar James Cloos avatar Justin Langston avatar  avatar

bitpay-checkout-magento's Issues

JavaScript Setting Opacity on /checkout/onepage/success/

There is a JS file that is setting the container with the main class to 0.3 opacity:

if(window.location.pathname == '/checkout/onepage/success/' && getCookie('flow') !== -1){
    $j(".main").css('opacity','0.3')
    showModal(getCookie('env'))
}

This is firing for all payment methods.

Also, Bitpay isn't creating any transaction in the Order View

An error:- when open admin<system<configuration<payment method

Warning: include(/homepages/7/d715943769/htdocs/includes/src/BitpayCheckout_BPCheckout_Helper_Data.php): failed to open stream: No such file or directory in /homepages/7/d715943769/htdocs/includes/src/Varien_Autoload.php on line 94

#0 /homepages/7/d715943769/htdocs/includes/src/Varien_Autoload.php(94): mageCoreErrorHandler(2, 'include(/homepa...', '/homepages/7/d7...', 94, Array)
#1 /homepages/7/d715943769/htdocs/includes/src/Varien_Autoload.php(94): include()
#2 [internal function]: Varien_Autoload->autoload('BitpayCheckout_...')
#3 /homepages/7/d715943769/htdocs/app/Mage.php(547): spl_autoload_call('BitpayCheckout_...')
#4 /homepages/7/d715943769/htdocs/includes/src/Mage_Adminhtml_Block_System_Config_Form.php(194): Mage::helper('bpcheckout')
#5 /homepages/7/d715943769/htdocs/includes/src/Mage_Adminhtml_Block_System_Config_Form.php(164): Mage_Adminhtml_Block_System_Config_Form->_initGroup(Object(Varien_Data_Form), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#6 /homepages/7/d715943769/htdocs/includes/src/Mage_Adminhtml_Block_System_Config_Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#7 /homepages/7/d715943769/htdocs/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(107): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#8 /homepages/7/d715943769/htdocs/includes/src/__default.php(14339): Mage_Adminhtml_System_ConfigController->editAction()
#9 /homepages/7/d715943769/htdocs/includes/src/__default.php(18831): Mage_Core_Controller_Varien_Action->dispatch('edit')
#10 /homepages/7/d715943769/htdocs/includes/src/__default.php(18361): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#11 /homepages/7/d715943769/htdocs/includes/src/__default.php(21317): Mage_Core_Controller_Varien_Front->dispatch()
#12 /homepages/7/d715943769/htdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#13 /homepages/7/d715943769/htdocs/index.php(85): Mage::run('', 'store')
#14 {main}

v3.1.2?

  1. It looks like the version on Magento Marketplace is v3.1.2, but the master branch here is only at 3.1.1? Any plans to commit those changes here?

  2. I assume that the javascript includes that are added to all pages can instead be added to just the checkout pages?

Magento Error is shown

HI, when I test the plugin on test environment and Magento shows me the error page ... when trying to make purchase (url: https://www.dev-hempatia.si/bitpaypaymentredirect/index/redirect/)

a:5:{i:0;s:225:"SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'transaction_id' cannot be null, query was: INSERT INTO bitpay_transactions (order_id,transaction_id,transaction_status) VALUES (:orderId,:invoiceId,:invoiceStatus)";i:1;s:1637:"#0

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.