SDKs y Librerías Cliente
Librerías cliente oficiales para los lenguajes más populares. Type-safe, documentadas y mantenidas por Orangepill.
SDKs oficiales
Node.js
npm install @orangepill/node
Python
pip install orangepill
PHP
composer require orangepill/orangepill-php
Ruby
gem install orangepill
Ejemplo en Node.js
const Orangepill = require('@orangepill/node');
const orangepill = new Orangepill('sk_test_...');
// Create payment request
const payment = await orangepill.payments.create({
amount: 50000,
currency: 'COP',
payment_method_types: ['bre_b', 'card']
});
Ejemplo en Python
import orangepill
orangepill.api_key = 'sk_test_...'
# Create payment request
payment = orangepill.Payment.create(
amount=50000,
currency='COP',
payment_method_types=['bre_b', 'card']
)
Características
- Interfaces type-safe
- Reintentos automáticos
- Verificación de firmas de webhook
- Soporte de idempotencia
- Helpers de modo de prueba
API REST
¿Prefieres llamadas directas a la API REST? Documentación completa en api.orangepill.cloud/docs
Próximos pasos
- Primeros Pasos - Configuración rápida
- Ejemplos - Código de muestra
- Webhooks - Manejo de eventos