- Set up and run the example project
- Make a test payment using the SDK
Step 1: Install prerequisites
Before getting started, ensure you have the following installed on your system:- Git - Required for downloading the project. If you haven’t used Git before, follow the Git installation guide
- Node.js - Required for running the project. If you haven’t used Node.js before, download it from the official Node.js website
Step 2: Download the project
Download the example project or clone the GitHub repository. The project contains Yuno’s Web SDK and a sample frontend implementation.SDK Integration ExampleYuno provides a ready-to-use application built with the Web SDK. Explore this project to see how fast and easy it is to integrate with Yuno.
Step 3: Set up environment variables
To authenticate with the Yuno API, you need to configure your credentials in the project. Follow these steps:- Open the
.envfile in the root folder - Add the following environment variables with your credentials from the dashboard’s Developers section:
ACCOUNT_CODE(will display as account_id in the dashboard)PUBLIC_API_KEYPRIVATE_SECRET_KEY
- Save the file
Step 4: Run the project
Navigate to the project folder and install the required Node.js dependencies by running:Step 5: Make your first payment
After accessing the running project in your browser, you’ll see a basic checkout page displaying the Card payment method configured in Set Up Your Account. To create your first successful payment:- Select the Card payment option
- Enter the test card information provided below
- Cardholder name: Harry Potter
- Card Number: 4242 4242 4242 4242
- Expiration Date: 09/29
- CVV: 123
Step 6: View payment details in the Dashboard
- After submitting the payment, wait a few seconds for it to process
- Go to the Payments section in your dashboard
- Find your test payment in the list
- Click the eye icon to view the full payment details