0.0
No release in over 3 years
Low commit activity in last 3 years
Quickly add payment to your rails app using xendit.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 5.2.0
>= 1.3.13
 Project Readme

Xendit Rails

A drop in rails engine for receiving payment via xendit.

Installation

gem 'xendit-rails', github: 'bekicot/xendit-rails'

And then execute:

$ bundle
Using xendit-rails 0.x.x from https://github.com/bekicot/xendit-rails.git (at master@xxxxxxx)

Copy migration files

$ bin/rails xendit:install:migrations
Copied migration 20200410225858_create_xendit_virtual_accounts.xendit.rb from xendit
Copied migration 20200410225859_create_xendit_payments.xendit.rb from xendit

Mount the engine to your routes

mount Xendit::Rails::Engine => 'xendit-rails'

And then add the callback to your xendit account

  • FVA Paid: https://yourdomain.com/xendit-rails/callbacks/virtual_accounts/paid
  • FVA Created: https://yourdomain.com/xendit-rails/callbacks/virtual_accounts/
  • Invoice Paid/Expired: https://yourdomain.com/xendit-rails/callbacks/invoices/paid_or_expired

Configuration

# config/initializers/xendit_rails.rb

Xendit.callback_token = 'Your Xendit Callback Token'

Support

Nuhun!!

License

The gem is available as open source under the terms of the MIT License.