GithubHelp home page GithubHelp logo

stripe-archive / payment-form-modal Goto Github PK

View Code? Open in Web Editor NEW
106.0 9.0 49.0 29.05 MB

How to implement Stripe Elements within a modal dialog.

Home Page: https://stripe.com/docs

License: MIT License

HTML 4.25% CSS 14.75% JavaScript 57.23% Java 6.53% PHP 7.21% Python 5.27% Ruby 4.66% Shell 0.09%
stripe-elements stripe

payment-form-modal's Introduction

This project is deprecated and is no longer being actively maintained.

Stripe Elements modal demo

This sample shows how to implement Stripe Elements within a modal dialog using the following APIs.

Demo

See a hosted version of the sample in test mode or fork on codesandbox.io

The hosted demo is running in test mode -- use 4242424242424242 as a test card number with any CVC + future expiration date.

Use the 4000000000003220 test card number to trigger a 3D Secure challenge flow.

Read more about test cards on Stripe at https://stripe.com/docs/testing.

Payment success

Elements modal

Payment declined

Elements modal payment declined

Get support

If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.

If you have questions, comments, or need help with code, we're here to help:

Sign up to stay updated with developer news.

Author

@ctrudeau-stripe

payment-form-modal's People

Contributors

adreyfus-stripe avatar auchenberg-stripe avatar ch-stripe avatar cjavilla-stripe avatar ctrudeau-stripe avatar dependabot[bot] avatar mfix-stripe avatar qaisjp-stripe avatar suz-stripe avatar thorsten-stripe avatar trag-stripe avatar vcheung-stripe 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  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  avatar  avatar  avatar

payment-form-modal's Issues

iOS 14 update breaks the card input element on Safari

Bug report

Describe the bug

Card element does not display properly on iOS 14 safari

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to https://9qmxf.sse.codesandbox.io/
  2. Click on 'Buy now'
  3. Card input element not working correctly

Expected behavior

The card input element should appear and work correctly.

Screenshots

image

System information

  • OS: iOS 14
  • Browser: Safari
  • Device: iPhone XR

Close button hidden behind address bar on mobile

Bug report

Describe the bug

The close button is hidden behind the address bar on mobile browsers (tested on safari and chrome on iOS)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to 'https://9qmxf.sse.codesandbox.io/'
  2. See issue

Expected behavior

Close button should be visible

Screenshots

image

System information

  • OS: iOS
  • Browser: chrome & safari

Additional context

If you replace height:100%; with height: 100vh; in the ElementsModal--modal class I think that fixes it, not sure if it causes other issues though.

Show modal dialog with React/Vue Component Rendering

The examples here opens a modal that exists forever in the DOM.

Can you show an example where the dialog gets removed from the DOM using React/Vue ?

From my experience, iframe needs to reload when that happens, causing flash of no input whenever a dialog is opened, because the iframe will need to load the page containing the input field again.

The link to the Node readme.md link is 404

Bug report

Describe the bug

On https://github.com/stripe-samples/payment-form-modal/tree/master/cards-only/server choosing the Node link is a 404. The readme does not exist on the server.

To Reproduce

Navigate to https://github.com/stripe-samples/payment-form-modal/tree/master/cards-only/server and select the node branch from the readme here
image
and view the 404 error .

Expected behavior

Click on the node link and see the node readme.md

Screenshots

If applicable, add screenshots to help explain your problem.

System information

Chrome

Additional context

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.