ruby-on-railsrubypaypalpayment-gatewayactivemerchant

activemerchant paypal gateway configuration


I'm trying to config my paypal gateway and activemerchant with help of railscasts tutorial but I'm a bit confused because the gateway information has changed.

That's the old config from the tutorial:

gateway = ActiveMerchant::Billing::PaypalGateway.new(
  login: "...",
  password: "...",
  signature: "..."
)

In my PaypalSandbox-Account I just have this:

  1. Endpoint: "..."
  2. Client ID: "..."
  3. Secret: "..."

What's the right config?


Solution

  • What you need for your gateway are the classic credentials. In order to get your these you have to first create a Paypal sandbox account that will act as your seller. Make sure it is a Business/Merchant type account.

    Once you do that then click on the "Profile" link for that account, look under the tab "API Credentials." That will have all the information you need listed.

    1. Paypal API Username
    2. Paypal API Signature
    3. Paypal API Password