Skip to content

Commit 38e9809

Browse files
committed
chore(docs): use cardParas
1 parent e8c75a6 commit 38e9809

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/src/api-reference/stripe.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,21 @@ IMPORTANT: Make sure you include `xmlns:stripe="@triniwiz/nativescript-stripe"`
9191
JavaScript
9292
```js
9393
const ccView = page.getViewById("card");
94-
const cc = ccView.card;
94+
const cc = ccView.cardParams;
9595
cc.name = "Osei Fortune";
9696
```
9797

9898
TypeScript
9999
```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;
103103
cc.name = "Osei Fortune";
104104
```
105105
### Using from code
106106
```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");
109109
cc.name = "Osei Fortune";
110110
```
111111

0 commit comments

Comments
 (0)