text: # Copyright (c) 2022, kinkusuma and contributors
  # For license information, please see license.txt
  
  import frappe
  from frappe.model.document import Document
  import xendit
  
  class Xendit(Document):
  	pass
  
  def get_instance():
  	doc = frappe.get_doc('Xendit')
  	return xendit.Xendit(api_key=doc.api_key)
  
  def verify_cb_token(token):
          doc = frappe.get_doc('Xendit')
          return doc.callback_token == token
  