# How do I connect Openpay to my store?

Openpay by BBVA lets customers in Mexico, Colombia and Peru pay by card on Openpay's secure page, using your own Openpay account. It charges in your account country's currency (MXN or USD in Mexico, COP in Colombia, PEN or USD in Peru) and appears at checkout only for those currencies. The customer must give an email.

## Steps

1. In your Openpay dashboard, open **API keys** and copy the **merchant ID** and the **private key** (it starts with `sk_`), not the public key.
2. In Dropify, go to **Apps**, find **Openpay** and click **Install and connect**.
3. On the app page click **Connect Openpay**, type an **Account name**, fill in **Merchant ID**, **Private key** and **Account country**, then click **Add account**. Dropify checks the keys with Openpay before saving. Pick your **Account country** (Mexico, Colombia or Peru).
4. Recommended: under **Webhook URL** click **Copy webhook URL** and add it in Openpay (**Webhooks**). Openpay then sends a verification code: it appears on the app page; type it in Openpay to confirm.
5. In the **Settings** section choose **Sandbox Mode** to test or **Live Mode** for real payments, with the matching keys.
6. Go to **Payments > Payment methods** and switch Openpay on. You can also set a **Discount for prepaid orders** for it.
7. Place a test order in MXN, COP or PEN and pay on the Openpay test page.

## Common problems

- "Openpay rejected these keys in test mode…" → keys of the other mode, or copied with spaces. Copy them again or switch the mode in **Settings**.
- Openpay does not show at checkout → your prices (or the visitor's currency) are not in MXN, COP or PEN, or Openpay is switched off in **Payments > Payment methods**.
- The customer sees "You cancelled the payment. You can try again or choose another payment method." → they left the Openpay page without paying.
- An order paid later stays unpaid → the webhook is missing or was not confirmed. Paste the webhook URL in Openpay, then type the verification code shown on the app page in Openpay.

## Related
- [How do I connect Conekta to my store?](https://help.dropify.shop/en/payments_gateways/conekta/)
- [How do I connect Culqi to my store?](https://help.dropify.shop/en/payments_gateways/culqi/)
