triniwiz / nativescript-stripe

Apache License 2.0
49 stars 34 forks source link

Doesn't work on Nativescript 7 #127

Closed NachmanRoss closed 3 years ago

NachmanRoss commented 3 years ago

The plugin doesn't work with Nativescript 7. Would you please provide an updated version?

careeat commented 3 years ago

I confirm. The plugin does not work with ns7. Is there another alternative to manage payments or are you planning to update

careeat commented 3 years ago

regards :D

triniwiz commented 3 years ago

New update but I’m slowly working my way up the queue 

Sent from Yahoo Mail for iPhone

On Friday, November 27, 2020, 3:32 PM, careeat notifications@github.com wrote:

regards :D

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

pralakk16 commented 3 years ago

Hi @triniwiz I was wondering how far you have gotten into adding support for NS7. But I have two problems: my current project is running Angular 11 with NS7. So I'm wondering if the problem is that Ivy with Angualar 11 is not working with the nativescript-stripe plugin or that Nativescript 7 is not working. Please let me know. Thanks

triniwiz commented 3 years ago

Support for v7 is available @ https://github.com/triniwiz/nativescript-plugins

NachmanRoss commented 3 years ago

I just tried out the updated plugin using native script 7.0.11 but my compiler is throwing the following error “Property ‘card’ does not exist on type CreditCardView”.

My import statement is: import { CreditCardView, Card, Stripe, Token } from "@triniwiz/nativescript-stripe";

I’m implementing my app in pure Typescript and these are the two lines from my app which works using Nativescript 6.8 using the previous version of the plugin.

Here’s my code. The error is showing up on the ccView.card statement.

const ccView: CreditCardView = page.getViewById("card") as CreditCardView; stripe.createCardToken(ccView.card, (error, token) => {

Am I doing something wrong?  Nachman Ross

On Dec 5, 2020, at 10:55 PM, Osei Fortune <notifications@github.com mailto:notifications@github.com > wrote:

Support for v7 is available @ https://github.com/triniwiz/nativescript-plugins

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

NachmanRoss commented 3 years ago

I just realized that I should change my call to stripe.createCardToken(ccView.cardParams, (error, token) => {

Thank you.

On Dec 6, 2020, at 9:39 AM, Nachman Ross <nross@benalterdevelopment.com mailto:nross@benalterdevelopment.com > wrote:

I just tried out the updated plugin using native script 7.0.11 but my compiler is throwing the following error “Property ‘card’ does not exist on type CreditCardView”.

My import statement is: import { CreditCardView, Card, Stripe, Token } from "@triniwiz/nativescript-stripe";

I’m implementing my app in pure Typescript and these are the two lines from my app which works using Nativescript 6.8 using the previous version of the plugin.

Here’s my code. The error is showing up on the ccView.card statement.

const ccView: CreditCardView = page.getViewById("card") as CreditCardView; stripe.createCardToken(ccView.card, (error, token) => {

Am I doing something wrong?  Nachman Ross

On Dec 5, 2020, at 10:55 PM, Osei Fortune <notifications@github.com mailto:notifications@github.com > wrote:

Support for v7 is available @ https://github.com/triniwiz/nativescript-plugins

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.