Node Vipps SDK for easy Vipps integration in Node.JS. Generic Vipps Node integration with specific support for the Crystallize headless ecommerce service.
Crystallize enables you to build your next-gen e-commerce business by the help of Fast GraphQL API Service backed by super structured Product Information Management (PIM)
You can view the required body models documented in Vipps swagger documentation
yarn add @crystallize/node-vipps
const client = new VippsClient({
id: "MY_VIPPS_CLIENT_ID",
secret: "MY_VIPPS_CLIENT_SECRET",
subscriptionId: "MY_VIPPS_SUB_KEY",
testDrive: isProd ? false : true
});
await client.initiatePayment({order:VippsCheckoutModel});
await client.capture({ orderId: VippsOrderId, body: VippsCaptureBodyModel });
await client.refund({ orderId: VippsOrderId, body: VippsRefundBodyModel });
await client.getOrderDetails({ orderId: VippsOrderId});
await client.getAccessToken();