Skip to content

Commit

Permalink
Merge pull request #84 from Nosto/readme-updates
Browse files Browse the repository at this point in the history
Update README to reflect type changes
  • Loading branch information
timowestnosto authored Jun 25, 2024
2 parents e2657b2 + 2da436a commit d557ff5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,21 +251,16 @@ You can personalise your order-confirmation/thank-you page by using the `NostoOr

By default, your account, when created, has one other-page placement named `thankyou-nosto-1`. You may omit this and use any identifier you need. The identifier used here is simply provided to illustrate the example.

The `order` prop requires a value that adheres to the type `Purchase`.

```jsx
import {
Buyer,
Item,
NostoOrder,
NostoPlacement,
Purchase,
} from "@nosto/nosto-react";

<div className="thankyou-page">
... ... ...
<NostoPlacement id="thankyou-nosto-1" />
<NostoOrder order={{ purchase: toOrder(order) }} />
<NostoOrder order={ order } />
</div>;
```

Expand Down

0 comments on commit d557ff5

Please sign in to comment.