An open API service indexing awesome lists of open source software.

https://github.com/rizki36/xendit-integration


https://github.com/rizki36/xendit-integration

express prisma-orm xendit

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Xendit Integration

Simple payment integration with xendit

### Prerequisites

- Xendit account
- Ngrok

### How To Run
- `yarn install`
- copy `.env.example` to `.env`
- `npx prisma migrate dev`
- `yarn dev`

### Xendit Configuration
- Signup to Xendit
- Go to settings
image

#### Setup Secret Key
- Click on Api keys
image
- Generate secret key
image
- Copy secret key to .env
image

#### Setup Callback
- Run ngrok `ngrok http 3000`
- Copy ngrok url
- Go to Callback Url
image

- FVA paid : replace_with_ngrok_url/v1/payment/va/callback-paid
- FVA created : replace_with_ngrok_url/v1/payment/va/callback-created