update crm api

This commit is contained in:
Aung Myo
2017-06-12 16:33:18 +06:30
parent 622aa4f121
commit 6d34f92506
4 changed files with 14 additions and 9 deletions

View File

@@ -72,10 +72,10 @@ class Origami::HomeController < BaseOrigamiController
membership = MembershipSetting.find_by_membership_type("paypar_url")
memberaction = MembershipAction.find_by_membership_type("get_all_member_account")
app_token = membership.auth_token.to_s
merchant_uid = memberaction.merchant_account_id.to_s
url = membership.gateway_url.to_s + memberaction.gateway_url.to_s
response = HTTParty.get(url, :body => { membership_id: @customer.membership_id}.to_json,
response = HTTParty.get(url, :body => { membership_id: @customer.membership_id,merchant_uid:merchant_uid}.to_json,
:headers => {
'Content-Type' => 'application/json',
'Accept' => 'application/json'