fix :
- implement notify_url and app_id to be dynamic
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user