Skip to main content

Integrating Commerce and Primer

This page explains how to integrate Coinbase Commerce and Primer, a no-code payments solution. Integrating Primer with Commerce lets you accept cryptocurrency payments.

Create Commerce API Key

  1. Log in to Coinbase Commerce.

  2. From your avatar, click Settings and go to the Security tab.

  3. Under API keys, click New API key to generate a new key.

  4. Click Copy to clipboard and securely store your new API key.

    Click image to enlarge
    Create a Coinbase Commerce API key so that you can authenticate your account, for example, when integrating into a 3rd party app.

Add Coinbase Payment Method

  1. Log in to your Primer Dashboard and go to Connections.

  2. Select the Discover tab.

  3. Search for and select "Coinbase Commerce", then click Connect.

  4. Paste the Commerce API key into the API Key field.

Add Webhook Subscription

  1. Log in to Coinbase Commerce.

  2. From your avatar, click Settings and go to the Notifications tab.

  3. Under Webhook subscriptions, click Add an endpoint.

  4. Paste your webhook URL and click Save.

  5. Click Show shared secret, then Copy to clipboard and securely store your secret.

    Click image to enlarge
    Add the endpoint of a 3rd pary app in Coinbase Commerce to create a webhook.

Activate Coinbase on Checkout

  1. Return to your Primer Dashboard and go to Checkout.

  2. Activate the Coinbase payment method.

Add Workflow to Process Payments

A workflow ensures that your Coinbase processor is used to process payments made with Coinbase.

  1. Log in to your Primer Dashboard and go to Workflows.

  2. Click Payment, then click Edit.

  3. From the Method dropdown (top), select "Coinbase".

  4. Create a Workflow for Coinbase:

    a. Create Condition.

    b. Click the plus (+) symbol on Condition and select Next Step.

    c. Select "Coinbase Commerce".

    d. Click Publish.

  5. Go to Checkout in the lefthand navigation bar.

  6. Under Payment Methods, enable "Coinbase" on your Universal Checkout.

  7. Add conditions so Coinbase Commerce is shown on Universal Checkout.

  8. Click the icon to the right of the toggle and add your conditions based on currency and/or amount, country or metadata.

  9. Publish your checkout.



See Also:

Was this helpful?