Description
Cuenti Pay adds the payment method «Cuenti Pay» to your store. When the customer places the order, the store creates a Cuenti Pay payment link for the order total and sends the customer to pay it with the payment methods your business has enabled in Cuenti Pay (for example cards, Nequi or PSE in Colombia, Yappy or Clave in Panama).
Cuenti Pay does not hold your money: payments are processed by your own payment gateway account connected in Cuenti Pay (Wompi Colombia, Wompi Panama or Yappy). You need a Cuenti Pay account with at least one payment gateway connected.
How orders are confirmed:
- An order is marked paid only after the store reads the link status from Cuenti Pay. The signed notice (webhook) from Cuenti Pay only tells the store which link to check; neither that notice nor the customer coming back to the store marks anything on its own.
- If the link expires or is cancelled without a payment, the order is cancelled with a note. While a payment is in progress, the order waits.
- If the amount paid does not match the order, the order is put «On hold» with a note for you to review.
- If the customer pays an order again, the store checks the previous link first, so the same order is not charged twice. If two payments still arrive for one order, the order is put «On hold» with a note.
- A test-mode payment puts the order «On hold» with a note saying no real money was received.
- Currencies: COP or USD, the one chosen when you connect.
- Limits: each connection has a maximum amount per order and per day, shown in the settings. When the cart total is above the maximum per order, Cuenti Pay is not offered at checkout.
- Works with the classic checkout, the Cart and Checkout blocks, and High-Performance Order Storage (HPOS).
Refunds are made outside Cuenti Pay: this plugin does not issue refunds.
Amounts are read from your payment gateway. Cuenti Pay Lite does not verify them with the bank.
The plugin’s screens and messages are in Spanish.
External services
This plugin connects to Cuenti Pay, the service that creates the payment links. It is needed to connect the store, create a payment link for each order and read whether it was paid. Nothing is sent until an administrator clicks «Conectar con Cuenti».
Outgoing calls (the API address is the one Cuenti Pay returns when you connect, by default https://app-paylite.cuenti.co/api/v1):
- Connect: the administrator’s browser opens https://app-paylite.cuenti.co/conectar/woocommerce with the store address, the return address, a random state and a PKCE code challenge. The store then sends the one-time connection code, the state and the PKCE code verifier to https://app-paylite.cuenti.co/api/v1/store/connect/exchange, and receives the store key, the webhook secret, the branch, the currency, the limits and the list of payment methods.
- Checkout: when a customer places an order with Cuenti Pay, the store sends to
/store/checkout-linksthe order total, the order ID as reference, a concept («Pedido # – »), the language, the link expiry, the order page address (to return the customer to the store) and the customer’s billing name, e-mail and phone. The customer is then sent to the payment page on https://pay-online.cuenti.co. - Status: the store reads a link by its ID (
/store/checkout-links/<id>) when the customer returns, when a notice arrives, and every 5 minutes for pending orders up to 24 hours. Only the link ID is sent. - Cancel: the store cancels a link by its ID (
/store/checkout-links/<id>/cancel) when an order is cancelled or replaced by a new link. Only the link ID is sent. - Disconnect: the store sends a disconnect request (
/store/disconnect) when you click «Desconectar» or delete the plugin. No order data is sent.
Every call uses HTTPS and the store key; no redirects are followed.
Incoming calls (REST routes the plugin adds to your site):
/wp-json/cuenti-pay/v1/verify: during the connection only, Cuenti Pay sends a random challenge and the store answers with a proof computed from its secret code. It answers nothing when no connection is in progress./wp-json/cuenti-pay/v1/webhook: Cuenti Pay sends a signed notice with the ID of a paid link. The store checks the signature and then reads the link from Cuenti Pay before changing the order.
Cuenti Pay terms of service: https://www.j4pro.com/wp-content/uploads/T%C3%A9rminos-y-Condicones.pdf
Cuenti Pay privacy policy: https://cuenti.com/wp-content/uploads/2023/09/POLITICA-DE-PRIVACIDAD-Y-DE-PROTECCION-DE-DATOS-PERSONALES-DE-GRUPO-SEJEL.pdf
Payments are processed by the merchant’s own gateway (Wompi or Yappy) under that gateway’s own terms.
Installation
- In WordPress, go to Plugins > Add New, search for «Cuenti Pay», then install and activate it. You can also upload the zip in Plugins > Add New > Upload Plugin.
- Make sure pretty permalinks are on (Settings > Permalinks, any option except «Plain»). Cuenti Pay checks that your store answers at its address while you connect, and uses them to notify payments right away.
- Go to WooCommerce > Settings > Payments > Cuenti Pay and click «Conectar con Cuenti» (Connect with Cuenti). Sign in to Cuenti Pay, choose the branch, enter the code sent to your e-mail and authorize. Done.
Only a person allowed to connect online stores in your Cuenti Pay company can authorize the connection. If Cuenti Pay does not send you back to the store, use «Pegar código de conexión» (Paste connection code) with the code Cuenti Pay shows (valid for 5 minutes).
Server requirements: PHP 7.4 or later with OpenSSL (the connection is stored encrypted).
FAQ
Do I need to copy keys or tokens?
No. When you authorize, Cuenti Pay creates the connection and the store saves it encrypted. Keys are never shown.
How does Cuenti Pay know the store is mine?
The store creates a secret code that never leaves your server. Before handing over the connection, Cuenti Pay asks the store to prove it holds that code. If the store does not answer (for example, it cannot be reached from the internet), no connection is created and you connect again.
Who processes the payments?
Your own payment gateway account (Wompi Colombia, Wompi Panama or Yappy) connected in Cuenti Pay. Cuenti Pay creates the payment link and reads its status; it does not receive or hold the money.
The store says the connection is no longer valid
The connection was revoked in Cuenti Pay, or the WordPress security keys changed. Click «Conectar con Cuenti» again.
How do I disconnect the store?
In WooCommerce > Settings > Payments > Cuenti Pay, click «Desconectar» (Disconnect). Cuenti Pay revokes the connection and the store forgets it. Deleting the plugin also tries to revoke the connection in Cuenti Pay.
Can I refund from WooCommerce?
No. Refunds are made outside Cuenti Pay.
Changelog
1.3.2
- Admin notices appear only on the Plugins screen and the WooCommerce settings, never on the dashboard.
1.3.1
- Prepared for the WordPress.org directory: readme in English, direct access protection in every file, WordPress URL parsing, «Tested up to» 7.1.
1.3.0
- The description shown to the customer names only the payment methods of your connection. A description you wrote yourself is never changed; on disconnect a generated description goes back to a general text.
1.2.0
- An order is no longer cancelled while its payment is in progress.
- Cancelling an order in WooCommerce cancels its payment link.
- A payment that arrives after the order was cancelled puts the order «On hold» with a note.
- After reconnecting the store, an order with a link of the previous connection does not get a second link.
- The 5-minute check uses the link’s date and includes cancelled orders that have a link.
1.1.0
- Stronger connection: PKCE code and a check that the store answers at its address.
- The store key and the webhook secret are stored encrypted.
- The notice from Cuenti Pay only says which link to check; the order is decided by reading the link.
- An order keeps all its links, and a second payment puts the order «On hold» for review.
- Cuenti Pay is hidden when the cart is above the maximum per order.
- The settings show the limits per order and per day.
- Deleting the plugin revokes the connection in Cuenti Pay.
1.0.0
- First version: one-button connection, payment link when the order is placed, signed webhook and a status check every 5 minutes.