Skip to main content
SDK & Integrations

Integrate payments
into your apps.

Our React Native SDK allows you to accept card payments directly from your mobile applications, securely.

API

Our SDKs

Choose the SDK that fits your development platform.

Available

React Native

Cross-platform SDK for iOS and Android with a single codebase.

GitHub
Coming Soon

Android

Native Kotlin SDK for Android applications.

Coming Soon

iOS

Native Swift SDK for iPhone and iPad applications.

Features

A modern and complete SDK to integrate NAPS payments.

TypeScript

Full type definitions for better developer experience and fewer errors.

PCI-DSS

Automatic card number masking (first 6 + last 4 digits).

Receipts

Parsing and formatting of merchant and customer receipts with TKpay branding.

Async/Await

Modern Promise-based API for clean and readable code.

Easy to integrate

A few lines of code are all you need to accept payments.

  • Install the package via npm or yarn
  • Configure the terminal IP and port
  • Process payments with processPayment()
View documentation
PaymentScreen.tsx
import {
NapsPayClient,
type PaymentResult,
NapsError,
} from 'react-native-tkpay-naps';

const client = new NapsPayClient({
host: '192.168.24.214',
});

const handlePayment = async () => {
try {
const paymentResult = await client.processPayment({
amount: 100.00,
registerId: '01',
cashierId: '00001',
});

if (paymentResult.success) {
Alert.alert('Success', `Payment approved!`);
} else {
Alert.alert('Failed', paymentResult.error);
}
} catch (error) {
if (error instanceof NapsError) {
Alert.alert('Error', error.message);
}
}
};

Ready to integrate?

Start accepting payments in your application today.