How to link a js url with nativescript app


#1

Hi Everyone… I want to add js from the following url in my nativescript angular application…

https://js.stripe.com/v3/

where i have to add this in our nativescript angular application…
in angular 5 we can add javascript urls in index.html…
how to add this javascript url in Nativescript angular application…
and i need to call all functions inside .ts file…


#2

I guess you are trying to integrate Stripe Payments,. NativeScript doesn’t run your app inside a browser, saying that you can’t use JavaScript apis created for Web. You must use the native libraries for iOS and Android. Fortunately there is a plugin that implements Stripe,

https://market.nativescript.org/plugins/nativescript-stripe


#3

Thankz for ur valuable reply…
Bt here i found function to create card token only… I need to create token for customer also… there no function to create that…
i’m using stripe v3 in Angular 5 project… here i can able to create token for both customer and card…


#4

What you mean by Custom Token? Can you paste the reference to the JS doc where it is detailed.


#5

I want to create the card token under the customer token… in that plugin there is no provision to create customer token…

https://stripe.com/docs/api/node#create_card


#6

Perhaps you can send a feature request to the plugin author.


#7

Looks like you have to request for the feature or implement on your own based on Stripe iOS / Android documentation.


#8

Hi… where i have to request regarding this…???