Skip to main content

1. Always Use Metadata

Include identifying information to correlate payments with your system:

const payment = await client.createPayment({
type: 'transfer',
// ... other fields
metadata: {
orderId: 'ORD-12345',
userId: 'user_abc',
productId: 'prod_xyz',
environment: process.env.NODE_ENV,
},
});