Closed create-signal closed 2 years ago
Hi @kieran-mgc Seems i have same issue.
Hi @kieran-mgc and @dskibin,
You're both right, we are working on it, hope to have a fix soon.
Sorry about the inconvenience
Kind regards,
R
@richnologies thank you!
Hello @richnologies Sorry for bothering you. But do you have some estimates where fix will be applied?
Hi @dskibin, sorry.
I just release a new version, 13.2.1
that I think fixes this issue. The component will check now if you're subscribe to the paymentMethod or the source output and only subscribe you to the correspondant inner event.
Please, let me know if this fixes your issue. If you're using an older version, I will be publishing new versions for Angular 9-12 in the next few hours
Sorry, of course @kieran-mgc, let me know please if it works for you too
Thanks for patience. Busy week :(
Hi Ricardo. We are using Angular 9. Thank you very much!
On Tue, 17 May 2022 at 18:57, Ricardo Sánchez @.***> wrote:
Hi @dskibin https://github.com/dskibin, sorry.
I just release a new version, 13.2.0 that I think fixes this issue. The component will check now if you're subscribe to the paymentMethod or the source output and only subscribe you to the correspondant inner event.
Please, let me know if this fixes your issue. If you're using an older version, I will be publishing new versions for Angular 9-12 in the next few hours
— Reply to this email directly, view it on GitHub https://github.com/richnologies/ngx-stripe/issues/169#issuecomment-1129211589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPZLPEIKPVHMHOMRTIJP7DVKPTZJANCNFSM5VNXOPUA . You are receiving this because you were mentioned.Message ID: @.***>
Done, here is the list of new versions:
npm i ngx-stripe@v12-lts
npm i ngx-stripe@v11-lts
npm i ngx-stripe@v10-lts
npm i ngx-stripe@v9-lts
Thank you for your help and library in general!
On Tue, 17 May 2022 at 20:59, Ricardo Sánchez @.***> wrote:
Done, here is the list of new versions:
- v13.2.1
- v12.8.2 npm i @.***
- v11.2.0 npm i @.***
- v10.3.0 npm i @.***
- v9.4.0 npm i @.***
— Reply to this email directly, view it on GitHub https://github.com/richnologies/ngx-stripe/issues/169#issuecomment-1129311963, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPZLPE7AEFD2LE3D73IXFLVKQCD3ANCNFSM5VNXOPUA . You are receiving this because you were mentioned.Message ID: @.***>
Hey @dskibin @kieran-mgc,
Did the fix work for you?
Hi @richnologies, sorry for late response. Yes, the fix worked! Thank you!
Sorry for the late reply, I haven't had a chance to test this just yet but the commit looks sound. Thanks for working on this issue and for the great library.
The Payment Request Button Component is registering event listeners on all of 'token', 'source' and 'paymentmethod'. Because of this, stripe seems to try and create both a source and a payment method. This seems to have two different outcomes:
Additionally stripe throws a warning while creating the payment request element - "Do not register event listeners for both
source
orpaymentmethod
. Only one of them will succeed."You can see in this gist (https://gist.github.com/maxchehab/03200297a88480c35b3d3967dd9543dd) at line 4665 how Stripe uses the presence of an event listener on "sources" to determine whether to create a source from the payment request