Skip to content

Rizki36/xendit-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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