From 07dc5b0444831bf0babc61694af89db65963d2d5 Mon Sep 17 00:00:00 2001 From: Jenni Nurmi Date: Mon, 13 May 2019 16:18:05 +0300 Subject: [PATCH] Add note about Stripe card not being a Final Form field --- src/forms/StripePaymentForm/StripePaymentForm.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/forms/StripePaymentForm/StripePaymentForm.js b/src/forms/StripePaymentForm/StripePaymentForm.js index da3775f5..46b9bfa4 100644 --- a/src/forms/StripePaymentForm/StripePaymentForm.js +++ b/src/forms/StripePaymentForm/StripePaymentForm.js @@ -1,3 +1,8 @@ +/** + * Note: This form is using card from Stripe Elements https://stripe.com/docs/stripe-js#elements + * Card is not a Final Form field so it's not available trough Final Form. + * It's also handled separately in handleSubmit function. + */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl, intlShape } from 'react-intl';