1.3.5 • Published 26 days ago
notrix v1.3.5
Notrix JavaScript SDK
Install
npm install notrix
Examples
Create Checkout Session
import Client from "notrix";
let client = new Client("SECRET_API_KEY", "PROJECT_ID");
let checkoutSession = await client.createCheckoutSession(
[
{
name: "Bike",
description: "green",
price: 32.56, // USD
quantity: 1,
imageURL: "https://example.com/bike.png" // make sure the image is available from the notrix.io domain
}
],
"https://example.com/success",
"https://example.com/cancel",
);
console.log(checkoutSession.url); // redirect the user here to pay
Check Payment Status
import Client from "notrix";
let client = new Client("SECRET_API_KEY", "PROJECT_ID");
let paymentConfirmed = await client.isPaid(checkoutSession.paymentRequestToken); // true / false
1.3.5
26 days ago
1.3.4
1 month ago
1.3.3
1 month ago
1.3.2
2 months ago
1.3.1
2 months ago
1.3.0
2 months ago
1.2.1
3 months ago
1.2.0
5 months ago
1.0.2
5 months ago
1.1.0
5 months ago
1.0.16
5 months ago
1.0.9
5 months ago
1.0.8
5 months ago
1.0.7
5 months ago
1.0.6
5 months ago
1.0.5
5 months ago
1.0.4
5 months ago
1.0.3
5 months ago
1.0.11
5 months ago
1.0.10
5 months ago
1.0.15
5 months ago
1.0.14
5 months ago
1.0.13
5 months ago
1.0.12
5 months ago
1.0.1
5 months ago
1.0.0
5 months ago