Sharetribe Open source and Paypal

Ameka
New Community Member

Hi,

 

I am trying sharetribe open source and paypal integration. 

I could enable paypal sandbox payment on my local machine.

 

However I am not able to get it worked on AWS. 

I am getting Internal Server Error for the call ( Initial Account setup request )

PaypalService::API::DataTypes.create_create_account_request

 

 

Error as follows

NoMethodError in Admin::PaypalPreferencesController#account_create

undefined method `data' for #<Hash:0x007f218d7d93c0>
Extracted source (around line #18):

#16         country: community_country_code
#17       }))
*18     permissions_url = response.data[:redirect_url]
#19     if permissions_url.blank?
#20       flash[:error] = t("paypal_accounts.new.could_not_fetch_redirect_url")
#21       return redirect_to admin_payment_preferences_path

Extracted source (around line #4):

#2   module BasicImplicitRender # :nodoc:
#3     def send_action(method, *args)
*4       super.tap { default_render unless performed? }
#5     end
#6 
#7     def default_render(*args)

Extracted source (around line #186):

#184       # which is *not* necessarily the same as the action name.
#185       def process_action(method_name, *args)
*186         send_action(method_name, *args)
#187       end
#188 
#189       # Actually call the method associated with the action. Override


Rails.root: /home/ubuntu/MyGear/sharetribe

Application Trace
app/controllers/admin/paypal_preferences_controller.rb:18:in `account_create'
lib/jsroutes_middleware.rb:48:in `call'
lib/rack_middleware/session_context_middleware.rb:15:in `call'
lib/rack_middleware/marketplace_lookup.rb:33:in `call'
lib/rack_middleware/custom_cookie_renamer.rb:11:in `call'
lib/rack_middleware/enforce_ssl.rb:23:in `call'
lib/rack_middleware/health_check.rb:12:in `call'

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.