Quickstart
Getting started with Evolve Payments only takes a few minutes. Follow the rest of this guide to learn how to set up your organization.
Last updated
Getting started with Evolve Payments only takes a few minutes. Follow the rest of this guide to learn how to set up your organization.
Last updated
const evolve = new EvolvePayments({
apiKey: 'test_key_your_test_key_here',
environment: 'sandbox'
});const payment = await evolve.charges.create({
amount: 2999, // $29.99 in cents
currency: 'usd',
paymentMethod: {
type: 'card',
number: '4242424242424242',
expMonth: 12,
expYear: 2025,
cvc: '123'
},
description: 'Test purchase'
});if (payment.status === 'succeeded') {
// Payment successful
console.log('Payment ID:', payment.id);
} else {
// Handle failed payment
console.log('Error:', payment.error);
}