Coder Social home page Coder Social logo

mage2pro / stripe Goto Github PK

View Code? Open in Web Editor NEW
60.0 6.0 7.0 532 KB

Stripe integration with Magento 2

Home Page: https://upwork.com/fl/mage2pro

PHP 64.78% JavaScript 29.71% HTML 4.26% Less 1.25%
stripe magento2 magento2-extension magento2-module mage2pro mage2pro-module mage2pro-payment mage2pro-module-reusable mage2pro-module-ready magento2-payment-gateway

stripe's Introduction

The module integrates Magento 2 with the Stripe payment service. The module is free and open source.

Screenshots

See also a showcase of the real clients usage.

1. Frontend. A simple payment form without saved bank cards

2. Frontend. Using a saved bank card

3. Frontend. Using a new bank card

4. Frontend. A multishipping checkout.

5. Backend. A payment's imformation

6. Backend. Choosing the payments currency

7. Backend. The extension's settings

8. Backend. A transaction's details

Demo videos

  1. Capture and Refund
  2. Preauthorization and Capture
  3. Preauthorization and Voiding
  4. Review and Accept / Deny
  5. Capture from a Stripe account
  6. Refund from a Stripe account
  7. Save and reuse bank cards
  8. Multishipping checkout

Who is using it?

stripe.mage2.pro/customers
See also a showcase of the real clients usage.

How to install

Hire me in Upwork, and I will:

  • install and configure the module properly on your website
  • answer your questions
  • solve compatiblity problems with third-party checkout, shipping, marketing modules
  • implement new features you need

Self-installation

bin/magento maintenance:enable
rm -f composer.lock
composer clear-cache
composer require mage2pro/stripe:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales>
bin/magento maintenance:disable

How to update

bin/magento maintenance:enable
composer remove mage2pro/stripe
rm -f composer.lock
composer clear-cache
composer require mage2pro/stripe:*
bin/magento setup:upgrade
bin/magento cache:enable
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy -f en_US <additional locales>
bin/magento maintenance:disable

stripe's People

Contributors

dmitrii-fediuk 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

stripe's Issues

A charge for the test card with required 3D Secure verification (4000000000003063) fails: «Your card was declined»

My Stripe account: [email protected]
I use it in the test mode.
I use the official test bank card with required 3D Secure verification: 4000000000003063

1. The problem payment: ch_1BNNbYFzKb8aMux1r8am3qhm.

01

2. The problem POST /v1/charges API request : req_uOlp1BAbu4LOPM

2.1. Request POST body

{
  "customer": "cus_BktO7aVsP2aC5m",
  "description": "Alligator Briefcase (2), New Very Prive 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 1234567890",
  "capture": "true",
  "statement_descriptor": "PREVED, MEDVED!",
  "amount": "12700",
  "currency": "USD",
  "source": "src_1BNNaQFzKb8aMux1a5L3DynD",
  "metadata": {
    "Customer Name": "Dmitry Fedyuk",
    "Order ID": "ORD-2017/11-01225",
    "Order Items": "Alligator Briefcase (2), New Very Prive",
    "Store Domain": "mage2.pro",
    "Store Name": "Mage2.PRO",
    "Store URL": "https://mage2.pro/sandbox/"
  },
  "shipping": {
    "address": {
      "city": "Sydney",
      "country": "AU",
      "line1": "72 Liverpool St",
      "line2": "",
      "postal_code": "2000"
    },
    "carrier": "Flat Rate",
    "name": "Dmitry Fedyuk",
    "phone": "+61 2 8268 8888"
  }
}

2.1. Response POST body

{
  "error": {
    "message": "Your card was declined.",
    "type": "card_error",
    "code": "card_declined",
    "decline_code": "generic_decline",
    "charge": "ch_1BNNbYFzKb8aMux1r8am3qhm"
  }
}

3. The used source: src_1BNNaQFzKb8aMux1a5L3DynD

3.1. As it is shown in my Stripe dashboard

02

3.2. The POST /v1/sources API request used to create the source: req_vm8i83J8J5voZR

3.2.1. Request POST body

{
  "type": "card",
  "owner": {
    "address": {
      "city": "Sydney",
      "country": "AU",
      "line1": "72 Liverpool St",
      "postal_code": "2000"
    },
    "email": "[email protected]",
    "name": "DMITRY FEDYUK",
    "phone": "+61282688888"
  },
  "usage": "reusable",
  "card": {
    "number": "************3063",
    "cvc": "***",
    "exp_month": "07",
    "exp_year": "21"
  },
  "payment_user_agent": "stripe.js/e8028cf; stripe-js-v3/e8028cf",
  "referrer": "https://mage2.pro/sandbox/checkout/",
  "key": "pk_test_xf2fh0Hu3LqXlqqUg2DEWhEz",
  "pasted_fields": "number"
}

3.2.2. Response body

{
  "id": "src_1BNNaQFzKb8aMux1a5L3DynD",
  "object": "source",
  "amount": null,
  "client_secret": "src_client_secret_BktNAJs55Ik0PLD3pjFcuC3V",
  "created": 1510501290,
  "currency": null,
  "flow": "none",
  "livemode": false,
  "metadata": {
  },
  "owner": {
    "address": {
      "city": "Sydney",
      "country": "AU",
      "line1": "72 Liverpool St",
      "line2": null,
      "postal_code": "2000",
      "state": null
    },
    "email": "[email protected]",
    "name": "DMITRY FEDYUK",
    "phone": "+61282688888",
    "verified_address": null,
    "verified_email": null,
    "verified_name": null,
    "verified_phone": null
  },
  "statement_descriptor": null,
  "status": "chargeable",
  "type": "card",
  "usage": "reusable",
  "card": {
    "exp_month": 7,
    "exp_year": 2021,
    "address_line1_check": "unchecked",
    "address_zip_check": "unchecked",
    "brand": "Visa",
    "country": "US",
    "cvc_check": "unchecked",
    "funding": "credit",
    "last4": "3063",
    "three_d_secure": "required",
    "tokenization_method": null,
    "dynamic_last4": null
  }
} 

The 3D Secure verification is not applied for a bank card with an optional 3D Secure support ("three_d_secure": "optional") even been enabled in the Magento 2 backend for all customers when `redirect/status` is `not_required`

01

1. An initial reusable source for a card with an optional 3D Secure support ("three_d_secure": "optional")

{
  "object": {
    "id": "src_1BNt5mFzKb8aMux1TxtRtHEN",
    "object": "source",
    "amount": null,
    "client_secret": "src_client_secret_BlPv7LrthYboKKDEc4dx1Trp",
    "created": 1510622398,
    "currency": null,
    "flow": "none",
    "livemode": false,
    "metadata": {
    },
    "owner": {
      "address": {
        "city": "Sydney",
        "country": "AU",
        "line1": "72 Liverpool St",
        "line2": null,
        "postal_code": "2000",
        "state": null
      },
      "email": "[email protected]",
      "name": "DMITRY FEDYUK",
      "phone": "+61282688888",
      "verified_address": null,
      "verified_email": null,
      "verified_name": null,
      "verified_phone": null
    },
    "statement_descriptor": null,
    "status": "chargeable",
    "type": "card",
    "usage": "reusable",
    "card": {
      "exp_month": 7,
      "exp_year": 2021,
      "address_line1_check": "unchecked",
      "address_zip_check": "unchecked",
      "brand": "Visa",
      "country": "US",
      "cvc_check": "unchecked",
      "fingerprint": "slrGvOFRzFPq9wGq",
      "funding": "credit",
      "last4": "4242",
      "three_d_secure": "optional",
      "tokenization_method": null,
      "dynamic_last4": null
    }
  },
  "previous_attributes": null
}

2. The derived single-use 3D Secure source

{
  "object": {
    "id": "src_1BNt5rFzKb8aMux1wrGBra5u",
    "object": "source",
    "amount": 12700,
    "client_secret": "src_client_secret_BlPvYxsByORoyQ43jLY8LCdI",
    "created": 1510622403,
    "currency": "usd",
    "flow": "redirect",
    "livemode": false,
    "metadata": {
    },
    "owner": {
      "address": {
        "city": "Sydney",
        "country": "AU",
        "line1": "72 Liverpool St",
        "line2": null,
        "postal_code": "2000",
        "state": null
      },
      "email": "[email protected]",
      "name": "DMITRY FEDYUK",
      "phone": "+61282688888",
      "verified_address": null,
      "verified_email": null,
      "verified_name": null,
      "verified_phone": null
    },
    "redirect": {
      "failure_reason": null,
      "return_url": "https://mage2.pro/sandbox/dfe-stripe/customerReturn",
      "status": "not_required",
      "url": "https://hooks.stripe.com/redirect/authenticate/src_1BNt5rFzKb8aMux1wrGBra5u?client_secret=src_client_secret_BlPvYxsByORoyQ43jLY8LCdI"
    },
    "statement_descriptor": null,
    "status": "chargeable",
    "type": "three_d_secure",
    "usage": "single_use",
    "three_d_secure": {
      "card": "src_1BNt5mFzKb8aMux1TxtRtHEN",
      "customer": null,
      "authenticated": false
    }
  },
  "previous_attributes": null
}

«element.prop is not a function»

Hi after an update to 2.1.6 the checkout page is going in loop i means it keep loading and nothing is happening, upon checking in inspect elements its showing files from the stripe extension are not loading and getting 404 error Can you please fix this issue for me asap. please let me know if you require login details,

Thanks

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.