Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Add support for handleCardAction #399

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bombek92
Copy link

@bombek92 bombek92 commented Aug 5, 2019

Summary & motivation

Added support for https://stripe.com/docs/stripe-js/reference#stripe-handle-card-action

API review

Added new method, not breaking existing code.

Copy this template or link to an API review issue.

Testing & documentation

How did you test this change? Simple unit tests calling this method.

have you updated the documentation? YES

@tremby
Copy link

tremby commented Aug 21, 2019

Is there any workaround to use this feature before this patch is merged?

@bombek92
Copy link
Author

bombek92 commented Aug 22, 2019

Is there any workaround to use this feature before this patch is merged?

  private handleCardAction = async (clientSecret: string, paymentIntentId: string) => {
    const result = await (this.props.stripe as any).handleCardAction(clientSecret);
    (...)
  }

@tamas-norbert-miklos
Copy link

Approximately when can we expect this feature to be available? The SCA rule will come into effect in Europe on September 14. So, like in 2 weeks we won't be able to use Stripe on our project for payments...

@poteirard
Copy link

poteirard commented Aug 29, 2019

I'm happy to be the one giving the good news to you. The new regulation has been postponed 18 months source (edit: as @bombek92 pointed this is for UK only)

@bombek92
Copy link
Author

I'm happy to be the one giving the good news to you. The new regulation has been postponed 18 months source

FYI This is UK only.

@tamas-norbert-miklos
Copy link

I'm happy to be the one giving the good news to you. The new regulation has been postponed 18 months source

FYI This is UK only.

Our projects it's for Italy. So i guess the original deadline still applies.

@giupea
Copy link

giupea commented Sep 6, 2019

I'm happy to be the one giving the good news to you. The new regulation has been postponed 18 months source

FYI This is UK only.

Our projects it's for Italy. So i guess the original deadline still applies.

Deadline in Italy seems to have been postponed (no new date set): https://www.bancaditalia.it/media/comunicati/documenti/2019-02/CS_01082019_a_f.pdf (italian)

@yamsellem
Copy link

@bombek92 it seems that the travis build is failing. May you please take a look why? With a proper build, this feature will get better change to be merged quickly (I hope it'll, it should help a lot). Thanks.

@yamsellem
Copy link

@bombek92 meanwhile your code is merged, I don't understand your answer on a temporary workaround. Where are you suggesting to add the code you suggest to @tremby?

Because react-stripe-elements is a typescript package, it does not seems possible to use your fork as a npm dependency (adding "react-stripe-elements": "bombek92/react-stripe-elements" to a package.json dependencies does not work).

Thanks again.

@bombek92
Copy link
Author

bombek92 commented Sep 6, 2019

@bombek92 meanwhile your code is merged, I don't understand your answer on a temporary workaround. Where are you suggesting to add the code you suggest to @tremby?

Because react-stripe-elements is a typescript package, it does not seems possible to use your fork as a npm dependency (adding "react-stripe-elements": "bombek92/react-stripe-elements" to a package.json dependencies does not work).

Thanks again.

just use:
const result = await (this.props.stripe as any).handleCardAction(clientSecret);

@bombek92
Copy link
Author

bombek92 commented Sep 6, 2019

@bombek92 it seems that the travis build is failing. May you please take a look why? With a proper build, this feature will get better change to be merged quickly (I hope it'll, it should help a lot). Thanks.

That's why this is draft pr, but I'll try to fix it this weekend.

@yamsellem
Copy link

yamsellem commented Sep 6, 2019

@bombek92 Thanks for your quick answers.

In my client side code, I use react, but in a javascript file (no typescript) and with promise (no await), is your workaround still possible with this, and what would be the code?

Thanks again.

@yamsellem
Copy link

@bombek92 have you found some time to take a look? You would be a life saver if you do. Thanks (14 of September makes me worry to death).

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Maciej Dąbek seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants