Skip to content

How do I connect a store that isn't on WordPress?

Updated · Integrations

A store built with Next.js or React connects with the SDK. Any other site sends its orders to our API. Either way, your server sends us your orders and your pages show your reviews.

Open the steps

  1. In the sidebar, under Connect, open Integrations.
  2. Open the Next.js, React, or HTML tab. If the page asks how your store is built first, pick Next.js, React, or Something else and select Continue.

Each tab has numbered steps and ends with Check it works. If someone else builds your site, select Send to my developer under the steps. How do I send setup steps to my developer?

Install the packages

On the Next.js and React tabs, the first step shows the install command. Then you can run npx @pepreviewpro/cli init in your project. It asks for your key and your store, checks the key with PepReviewPro, and saves PEPREVIEWPRO_API_KEY and PEPREVIEWPRO_STORE to .env.local once you say yes.

npx @pepreviewpro/cli doctor checks each part of the setup. It also scans your build for a key that should not be there.

Add your key

Under Add your key, select Create key. The key shows once, as the line to put in your server's environment. Copy it now.

A store key starts with sk_live_. It is secret and belongs on your server only. Never put it in browser code or in a NEXT_PUBLIC_ variable. Store keys have the per-second limit only, with no monthly quota. What are the API limits?

Every store key is listed under Options, in the Store key card. You can create another there, or revoke one.

Add the code

On the Next.js and React tabs, Add the code has the SDK's quick start with your store already filled in. It covers your environment, a page that shows reviews, and the checkout code that sends each order. Show reviews with React

Review requests and verified purchases both come from your orders. Send each one from your checkout. Send orders from your checkout

On any other site

The HTML tab works for a site built any other way:

  1. Show your reviews gives you the carousel's embed code. Open the gallery has the code for every widget.
  2. Add your key creates a store key for your server.
  3. Send each order shows a curl example that sends an order to POST /api/v1/orders. Send each order when it is paid or completed. Sending it again updates it. API reference has every field.
  4. Check it works turns to connected when your first order arrives.

How do I send orders without WooCommerce?

Check it works

The last step updates on its own. It reads "Connected. Your orders are on their way." once your store checks in. On Next.js and React, the SDK checks in on its first request after you deploy.

The Connection card at the top of the Integrations page shows Connected with the SDK once the SDK checks in. init checks in right away, and the server package checks in once a day after that. The card lists what your store reported it does, and it warns when something stops:

  • The SDK hasn't checked in for 3 days.
  • No orders have arrived in 3 days, on a store whose orders fall on at least 20 of the 28 days before its latest one.
  • The SDK doesn't report attribution, so Insights undercounts the buyers we send you. Get credit for buyers PepReviewPro sends you

When orders or a catalog reach us through the API with no SDK, the card shows Connected with the API.

Options

Under Options, every one of these tabs has the Store key card and the Review requests card, which sets when an order sends a review request. The Next.js and React tabs also have Webhooks. Keep your pages current with webhooks

Was this helpful?

Still need help?

Send us a message and a person on our team will reply by email.

Contact us