Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Coinbase integration #915

Closed
wants to merge 4 commits into from

Conversation

isaacwaller
Copy link

Coinbase (https://coinbase.com/) merchant tool integration for Active Merchant. Information on Coinbase's merchant offerings can be found here: https://coinbase.com/merchants

The integration is fairly simple, a api call is made to Coinbase to create the form in the Helper and the callback is verified in the Notification module.

Thanks!

Time.iso8601(params['created_at']).to_time.to_i
end

# the money amount we received in X.2 decimal.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't seem to actually round it to two decimals, but the command says so?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since "cents" is an integer, the division will always produce an amount with 2 decimal places

@sirupsen
Copy link
Contributor

For someone who doesn't know much about ActiveMerchant, can you explain why you went for a Helper and a Notification module instead of the more standard way of implementing a gateway?

@isaacwaller
Copy link
Author

@sirupsen using a gateway would not be possible as the checkout page is hosted off-side. See the implementation of other off-site payment integrations: https://github.com/Shopify/active_merchant/tree/master/lib/active_merchant/billing/integrations

@barmstrong
Copy link

@sirupsen (and others such as @ntalbott ) apologies for the delayed response on this thread, if any other questions please let us know, we're available to make quicker updates now.

@isaacwaller
Copy link
Author

@justinplouffe do you think you could review this? we've updated it to support API key + secret authentication as requested.

@justinplouffe
Copy link
Contributor

@isaacwaller I'll try this out in Shopify soon and keep you and @barmstrong updated.

@ntalbott
Copy link
Contributor

ntalbott commented Jun 4, 2014

ActiveMerchant integrations have been extracted into https://github.com/Shopify/offsite_payments. This PR has been moved (via reference) to the new repo - please follow up on it there.

@ntalbott ntalbott closed this Jun 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants