Sfoglia il codice sorgente

feat: paytm integration

pull/2/head
Mangesh-Khairnar 5 anni fa
parent
commit
5c616eb27d
5 ha cambiato i file con 74 aggiunte e 0 eliminazioni
  1. +0
    -0
      payments/payment_gateways/doctype/paytm_settings/__init__.py
  2. +8
    -0
      payments/payment_gateways/doctype/paytm_settings/paytm_settings.js
  3. +46
    -0
      payments/payment_gateways/doctype/paytm_settings/paytm_settings.json
  4. +10
    -0
      payments/payment_gateways/doctype/paytm_settings/paytm_settings.py
  5. +10
    -0
      payments/payment_gateways/doctype/paytm_settings/test_paytm_settings.py

+ 0
- 0
payments/payment_gateways/doctype/paytm_settings/__init__.py Vedi File


+ 8
- 0
payments/payment_gateways/doctype/paytm_settings/paytm_settings.js Vedi File

@@ -0,0 +1,8 @@
// Copyright (c) 2020, Frappe Technologies and contributors
// For license information, please see license.txt

frappe.ui.form.on('Paytm Settings', {
// refresh: function(frm) {

// }
});

+ 46
- 0
payments/payment_gateways/doctype/paytm_settings/paytm_settings.json Vedi File

@@ -0,0 +1,46 @@
{
"actions": [],
"creation": "2020-04-02 00:11:22.846697",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"merchant_id",
"merchant_key"
],
"fields": [
{
"fieldname": "merchant_id",
"fieldtype": "Data",
"label": "Merchant ID"
},
{
"fieldname": "merchant_key",
"fieldtype": "Data",
"hidden": 1,
"label": "Merchant Key"
}
],
"issingle": 1,
"links": [],
"modified": "2020-04-02 00:11:22.846697",
"modified_by": "Administrator",
"module": "Integrations",
"name": "Paytm Settings",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"print": 1,
"read": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}

+ 10
- 0
payments/payment_gateways/doctype/paytm_settings/paytm_settings.py Vedi File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Frappe Technologies and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document

class PaytmSettings(Document):
pass

+ 10
- 0
payments/payment_gateways/doctype/paytm_settings/test_paytm_settings.py Vedi File

@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2020, Frappe Technologies and Contributors
# See license.txt
from __future__ import unicode_literals

# import frappe
import unittest

class TestPaytmSettings(unittest.TestCase):
pass

Caricamento…
Annulla
Salva