update membershp payment method

This commit is contained in:
Aung Myo
2018-09-13 18:03:48 +06:30
parent b1480a5066
commit 85fcd43ac2
5 changed files with 37 additions and 11 deletions

View File

@@ -235,7 +235,7 @@ class SalePayment < ApplicationRecord
customer_data = Customer.find_by_customer_id(sale_data.customer_id)
if !membership_actions_data.nil?
url = paypar_url.to_s + membership_actions_data.gateway_url.to_s
url = "paypar_url.to_s" + membership_actions_data.gateway_url.to_s
merchant_uid = membership_actions_data.merchant_account_id
auth_token = membership_actions_data.auth_token
@@ -261,7 +261,7 @@ class SalePayment < ApplicationRecord
auth_token:auth_token}.to_json
end
puts params
# Control for Paypar Cloud
begin
response = HTTParty.post(url,