Skip to content

Commit

Permalink
Merge pull request #176 from gocardless/update-docs
Browse files Browse the repository at this point in the history
chore: update library docs
  • Loading branch information
cafetiere authored Feb 6, 2024
2 parents 253467e + 83730cd commit c702e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ For a full list of available resources, visit the [GoCardless API reference](htt
```js
const uuidv4 = require('uuid/v4');

// Create a new payment.
// Create a new payment with an idempotency key
const payment = await client.payments.create(
{
amount: 100,
currency: "GBP",
links: { mandate: "MD123" },
},
{ idempotencyKey: uuidv4() },
uuidv4(),
);

// List the first three payments past a certain date.
Expand Down

0 comments on commit c702e9d

Please sign in to comment.