
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
A utility library for integrating with the BT - BG PSD2 PISP API in React or vanilla JavaScript projects
A utility library for integrating with the BT - BG PSD2 PISP (Payment Initiation Service Provider) API in React or vanilla JavaScript projects.
BTPay provides a simple, efficient way to interact with the NextGenPSD2 Framework banking API. This library handles authentication, request formatting, and response parsing for payment initiation services.
npm install @dragoscatalin/btpay
import { BTPay, PaymentType, Currency } from '@dragoscatalin/btpay';
// Initialize client
const btpay = new BTPay({
apiKey: 'YOUR_API_KEY',
environment: 'sandbox', // or 'production'
});
// Create a payment
const payment = await btpay.createPayment({
paymentService: PaymentType.SINGLE,
paymentProduct: 'ron-payment',
payment: {
debtorAccount: {
iban: 'RO98BTRLRONCRT0ABCDEFGHI',
},
instructedAmount: {
currency: Currency.RON,
amount: '50',
},
creditorAccount: {
iban: 'RO98BTRLEURCRT0ABCDEFGHI',
},
creditorName: 'Dan Popescu',
debtorId: 'RO12345',
endToEndIdentification: 'Test',
remittanceInformationUnstructured: 'explicatii',
},
});
// Get payment status
const status = await btpay.getPaymentStatus(payment.paymentId);
import { useBTPay } from '@dragoscatalin/btpay';
function PaymentComponent() {
const { initiatePayment } = useBTPay({
// configuration options
});
// Use the hook methods
}
import { BTPay } from '@dragoscatalin/btpay';
const btpay = new BTPay({
// configuration options
});
// Use the instance methods
See API Documentation for complete reference.
MIT
FAQs
A utility library for integrating with the BT - BG PSD2 PISP API in React or vanilla JavaScript projects
The npm package btpay receives a total of 3 weekly downloads. As such, btpay popularity was classified as not popular.
We found that btpay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.