1.1.3 • Published 4 years ago

checkout-finland v1.1.3

Weekly downloads
10
License
ISC
Repository
-
Last release
4 years ago

checkout-finland

Client for checkout payment service (https://checkoutfinland.github.io). Start by running npm run build

Installation

npm install --save checkout-finland

Usage

Create client

Use test credentials for testing purposes: https://checkoutfinland.github.io/psp-api/#/?id=test-credentials

const CheckoutFinland = require('checkout-finland')
const client = new CheckoutFinland(merchantId, secret)

Create payment

https://checkoutfinland.github.io/psp-api/#/?id=create

const { transactionId } = await client.createPayment(payment)

Get payment

https://checkoutfinland.github.io/psp-api/#/?id=get

const data = await client.getPayment(transactionId)

Create refund fot the payment

https://checkoutfinland.github.io/psp-api/#/?id=refund

const data = await client.createRefund(refund, transactionId)

Create email refund for the payment

https://checkoutfinland.github.io/psp-api/#/?id=email-refund

const data = await client.createEmailRefund(refund, transactionId)

Testing

You can run unit tests made with jest: npm test

1.1.1

4 years ago

1.1.0

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago