1.0.7 • Published 2 years ago
@evodefi/evopay-sdk v1.0.7
evopay-sdk
SDK for using EvoPay services
To use it on the web:
npm install @evodefi/evopay-sdk
yarn add @evodefi/evopay-sdk
Quick start
import EvoPay from '@evodefi/evopay-sdk';
const merchantId = 'your-merchant-id';
const apiKey = 'your-api-key';
const evoPay = new EvoPay(merchantId, apiKey);
const productsList = [
{
"title": "item1",
"price": "100.5",
"count": 1
},
{
"title": "item2",
"price": "100.5",
"count": 1
}]
const fetchPaymentLink = async (productList) => {
const {order, paymentLink} = await evoPay.createOrder(productList);
return paymentLink;
}
Visit the docs for detailed information.
License
MIT