Commit 9a321e71 by Owo Sugiana

Konfigurasi url path yang lebih fleksibel

1 parent 52f3dfea
0.1.1 12-1-2021
---------------
- Konfigurasi url path yang lebih fleksibel
0.1 7-12-2020
-------------
- Kali pertama
......@@ -11,9 +11,9 @@ from .structure import (
class WebClient:
def __init__(
self, base_url, username, password, debug=False, ssl_verify=True):
self.inquiry_url_tpl = '/'.join([base_url, INQUIRY_PATH])
self.payment_url_tpl = '/'.join([base_url, PAYMENT_PATH])
self.reversal_url_tpl = '/'.join([base_url, REVERSAL_PATH])
self.inquiry_url_tpl = ''.join([base_url, INQUIRY_PATH])
self.payment_url_tpl = ''.join([base_url, PAYMENT_PATH])
self.reversal_url_tpl = ''.join([base_url, REVERSAL_PATH])
self.username = username
self.password = password
self.debug = debug
......
# https://docs.google.com/document/d/1EGnx1FnOur8qsT5ZI5h9VIstIXDCfpBQBWGa9u3ilag/edit
INQUIRY_PATH = 'ext_bjb_inq/{username}/{password}/{invoice_id}'
PAYMENT_PATH = 'ext_bjb_pay/{username}/{password}/{invoice_id}/{ntb}/{nominal}'
REVERSAL_PATH = 'ext_bjb_rev/{username}/{password}/{invoice_id}/{ntb}'
INQUIRY_PATH = 'inq/{username}/{password}/{invoice_id}'
PAYMENT_PATH = 'pay/{username}/{password}/{invoice_id}/{ntb}/{nominal}'
REVERSAL_PATH = 'rev/{username}/{password}/{invoice_id}/{ntb}'
KODE_IZIN = {
'IMBG': 1, # Izin Mendirikan Bangunan dan Gedung
......
[main]
base_url = http://localhost:8080/api/v2/intg
base_url = http://localhost:8080/api/v2/intg/ext_bjb_
username = test
password = 1234
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!