- implement notify_url and app_id to be dynamic
This commit is contained in:
aungthetkhaing
2025-05-26 10:20:19 +06:30
parent fbb286a033
commit a43f8ed4f6

View File

@@ -31,11 +31,14 @@ class KbzMerchant
private
def build_create_payload(amount, merch_order_id, timeout)
json_params = @payment_method.additional_parameters.inspect.undump
params = JSON.parse(json_params)
byebug
base_params = {
method: 'kbz.payment.precreate',
timestamp: Time.now.utc.to_i.to_s,
nonce_str: SecureRandom.hex(16),
notify_url: 'https://example.com/notify',
notify_url: params['notify_url'],
sign_type: 'SHA256',
version: '1.0',
biz_content: {