File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -91,21 +91,21 @@ IMPORTANT: Make sure you include `xmlns:stripe="@triniwiz/nativescript-stripe"`
91
91
JavaScript
92
92
``` js
93
93
const ccView = page .getViewById (" card" );
94
- const cc = ccView .card ;
94
+ const cc = ccView .cardParams ;
95
95
cc .name = " Osei Fortune" ;
96
96
```
97
97
98
98
TypeScript
99
99
``` ts
100
- import { CreditCardView , Card } from ' @triniwiz/nativescript-stripe' ;
101
- const ccView: CreditCardView = page .getViewById (" card" );
102
- const cc: Card = ccView .card ;
100
+ import { CreditCardView , CardParams } from ' @triniwiz/nativescript-stripe' ;
101
+ const ccView: CreditCardView = page .getViewById (" card" );
102
+ const cc: CardParams = ccView .cardParams ;
103
103
cc .name = " Osei Fortune" ;
104
104
```
105
105
### Using from code
106
106
``` ts
107
- import { Card } from ' @triniwiz/nativescript-stripe' ;
108
- const cc = new Card ( " 1111111111111111 " ,2 ,18 ," 123" );
107
+ import { CardParams } from ' @triniwiz/nativescript-stripe' ;
108
+ const cc = new CardParams ( " 4242424242424242 " ,2 ,18 ," 123" );
109
109
cc .name = " Osei Fortune" ;
110
110
```
111
111
You can’t perform that action at this time.
0 commit comments