activemerchant

Etsy-like marketplace with Activemerchant? (Rails)

心不动则不痛 提交于 2020-02-22 08:51:33
问题 I am in the early stages of integrating a vendor marketplace (similar to Etsy, but for a very niche demographic) into an online community. I envision a platform that allows vendors to sign up and post goods for sale, with all transactions handled through the platform. Payments would be made from the consumers directly to the Paypal accounts of the vendors. A processing fee would be incurred for each transaction, with the sum of all fees billed to the vendors at the end of each 30 day period.

Etsy-like marketplace with Activemerchant? (Rails)

﹥>﹥吖頭↗ 提交于 2020-02-22 08:50:29
问题 I am in the early stages of integrating a vendor marketplace (similar to Etsy, but for a very niche demographic) into an online community. I envision a platform that allows vendors to sign up and post goods for sale, with all transactions handled through the platform. Payments would be made from the consumers directly to the Paypal accounts of the vendors. A processing fee would be incurred for each transaction, with the sum of all fees billed to the vendors at the end of each 30 day period.

Using API calling account as receiver account

久未见 提交于 2020-01-09 11:53:31
问题 I'm trying to integrate Paypal Adaptive checkout using Active Merchant and active_paypal_adaptive_payment gem. During User registration, User needs to register his/her paypal account in order to receive the payment during the transaction. I've setup all the credentials for activemerchant. While registering user Account in paypal I got the following error. You are logging into the account of the API caller of this transaction. Please change your login information and try again. Is it possible

ActiveMerchant says invalid credit card for a valid card

こ雲淡風輕ζ 提交于 2020-01-06 06:45:29
问题 Im running through a weird issue with ActiveMerchant . I'm using activemerchant to validate a credit card number and its been working fine. However, I found that it somehow doesn't seem to validate this card number 3088023605344101 , also most of the validation issues arise when I input a card number of the type JCB . Here is what my code looks like cc = CreditCard.new( :first_name => client_details[:firstname], :last_name => client_details[:lastname], :month => client_details[:month], :year

Active Merchant - uninitialized constant ActiveSupport::XmlMini_REXML::StringIO

时间秒杀一切 提交于 2020-01-02 05:14:17
问题 I have activemerchant 1.16.0 and rails 3.0.5. I am trying to build a basic code to communicate with PayPal's gateway using active merchant. if credit_card.valid? # or gateway.purchase to do both authorize and capture response = gateway.authorize(1000, credit_card, :ip => "127.0.0.1") if response.success? gateway.capture(1000, response.authorization) puts "Purchase complete!" else puts "Error: #{response.message}" end else puts "Error: credit card is not valid. #{credit_card.errors.full

Can i pass different currency in active-merchant with stripe in Rails 4 application?

和自甴很熟 提交于 2019-12-25 01:24:23
问题 I am developing Rails 4 application where user can subscribe one time pay with application. For subscription, use Active Merchant with stripe where now user pay $50 right now and payment done successfully. Below code : ActiveMerchant::Billing::Base.mode = :test transaction = ActiveMerchant::Billing::StripeGateway.new(:login => Rails.application.secrets.stripe_secret_key) paymentInfo = ActiveMerchant::Billing::CreditCard.new( :number => purchage_params[:card_holder_number], :month => purchage

error trying to make sandbox paypal to work with rails?

孤人 提交于 2019-12-24 19:25:59
问题 I am having problems integrating paypal payment gateway with rails. I will explain below the steps i did. I first went to developer.paypal.com I created two sandbox accounts one for buyer and one for business account. I changed business account to Business-Pro I then installed activemerchant gem in rails. In config/environments/development.rb i pasted the following chunk config.after_initialize do ActiveMerchant::Billing::Base.mode = :test paypal_options = { login: "aGthYkgkYXVA_api1.gmail

Ruby: How to initialize an active merchant gateway instance with credentials?

蹲街弑〆低调 提交于 2019-12-24 18:18:49
问题 From this http://www.rubydoc.info/github/Shopify/active_merchant/ActiveMerchant%2FBilling%2FBase.gateway I should just initialize an instance of active_merchant using this gateway = ActiveMerchant::Billing::Base.gateway( gateway_name ).new( :username => :some_credential :password => :some_other_credential ) But I don't know :username or :password in advance, however they are in the fixtures file https://github.com/activemerchant/active_merchant/blob/master/test/fixtures.yml here. So how to do

Test Paypal Express Gateway redirecting to live and not sandbox

梦想与她 提交于 2019-12-24 12:18:10
问题 I am trying to customize my express checkout by adding line item details in the request. I am following the instructions mentioned here But making this change redirects me to paypal.com/cgi-bin/webscr and not sandbox.paypal.com/cgi-bin/webscr My development.rb: MyApp::Application.config.after_initialize do ActiveMerchant::Billing::Base.mode = :test ::EXPRESS_GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new(:login => "***", :password => "***", :signature => "***") test.rb: config

Paypal Express Checkout with ActiveMerchant as in Shopify

こ雲淡風輕ζ 提交于 2019-12-22 00:43:07
问题 I'm successfully using Paypal Express Checkout in a marketplace web app passing for every seller the three parameters to the PaypalExpressGateway (login, password and signature). So, I see that Shopify lets the seller set only the e-mail address of the Paypal account requesting to grant scott_api1.jadedpixel.com as the API Partner Username. I could't find anything in the ActiveMerchant doc on how I can do it...Someone can help? Thanks a lot, zetarun 回答1: We use PayPals "Accelerated Boarding"