Skip to content

Commit

Permalink
chore(docs): use cardParas
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Dec 7, 2020
1 parent e8c75a6 commit 38e9809
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/src/api-reference/stripe.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ IMPORTANT: Make sure you include `xmlns:stripe="@triniwiz/nativescript-stripe"`
JavaScript
```js
const ccView = page.getViewById("card");
const cc = ccView.card;
const cc = ccView.cardParams;
cc.name = "Osei Fortune";
```

TypeScript
```ts
import { CreditCardView, Card } from '@triniwiz/nativescript-stripe';
const ccView:CreditCardView = page.getViewById("card");
const cc:Card = ccView.card;
import { CreditCardView, CardParams } from '@triniwiz/nativescript-stripe';
const ccView: CreditCardView = page.getViewById("card");
const cc: CardParams = ccView.cardParams;
cc.name = "Osei Fortune";
```
### Using from code
```ts
import { Card } from '@triniwiz/nativescript-stripe';
const cc = new Card("1111111111111111",2,18,"123");
import { CardParams } from '@triniwiz/nativescript-stripe';
const cc = new CardParams("4242424242424242",2,18,"123");
cc.name = "Osei Fortune";
```

Expand Down

0 comments on commit 38e9809

Please sign in to comment.