Title: Glin Payments for WooCommerce
Author: lucianoglin
Published: <strong>21 Tháng 8, 2026</strong>
Last modified: 26 Tháng 10, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/glin-payments-for-woocommerce/assets/icon.svg?rev=3659387)

# Glin Payments for WooCommerce

 Bởi [lucianoglin](https://profiles.wordpress.org/lucianoglin/)

[Tải về](https://downloads.wordpress.org/plugin/glin-payments-for-woocommerce.0.1.14.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/glin-payments-for-woocommerce/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/glin-payments-for-woocommerce/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/glin-payments-for-woocommerce/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/glin-payments-for-woocommerce/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/glin-payments-for-woocommerce/)

## Mô tả

Glin Payments for WooCommerce adds Glin as a WooCommerce payment gateway. It lets
Brazilian shoppers pay in BRL using card or PIX while the WooCommerce order remains
in the merchant settlement currency supported by Glin.

The plugin loads the official Glin Checkout SDK automatically, sends tokenized payment
data from WordPress to Glin with the merchant API key, and reconciles final order
state through signed Glin webhooks. Merchants do not need to configure a custom 
SDK URL.

Main capabilities:

 * Card and PIX checkout support.
 * Classic checkout and WooCommerce Checkout Blocks support.
 * Automatic Glin remittance reservation during checkout.
 * Automatic webhook registration when gateway settings are saved.
 * Short card status polling so fast declines can keep shoppers on checkout.
 * Order-received polling and bounded WordPress cron reconciliation as webhook fallbacks.

Requirements:

 * WooCommerce 7.8 or newer.
 * A Glin merchant account.
 * Glin API and public checkout keys for sandbox or live mode.
 * A WooCommerce store currency supported by Glin.
 * Public HTTPS store URL for automatic webhook registration.

### External services

This plugin connects to Glin services to process payments and keep WooCommerce orders
synchronized with Glin payment status.

Service provider: Glin Brasil Servicos Digitais LTDA and Glin, INC.

Service endpoints used by the plugin:

 * `https://sdk.glin.com.br/v1/glin-checkout.js` loads the Glin Checkout SDK in 
   the shopper browser when Glin is available at checkout.
 * `https://pay.glin.com.br` is used by the WordPress server in Live mode.
 * `https://pay.staging.glin.com.br` is used by the WordPress server in Sandbox 
   mode.

Data sent to Glin and when it is sent:

 * When checkout is prepared, the plugin sends the WooCommerce cart amount, currency,
   generated checkout reference, success URL, and cancel URL so Glin can create 
   or reuse a remittance.
 * When the shopper submits payment, the plugin sends the Glin remittance ID, selected
   payment method, tokenized card data or PIX request data, installments when applicable,
   billing name, email, phone, CPF/CNPJ, and billing address so Glin can process
   the payment.
 * When payment status is checked, the plugin sends the Glin remittance ID and public
   checkout key so Glin can return the current payment status.
 * When gateway settings are saved and the store URL is public HTTPS, the plugin
   sends the WooCommerce webhook URL and subscribed event types so Glin can deliver
   payment status updates to the store.
 * Glin sends signed webhook events back to the WooCommerce store webhook URL when
   a remittance is paid, canceled, expired, delivered, or disbursed.

Terms of service: https://www.glin.com.br/legal/terms

General platform terms: https://www.glin.com.br/legal/general-terms

Privacy policy: https://www.glin.com.br/legal/privacy

## Cài đặt

 1. Install and activate WooCommerce.
 2. Install this plugin from Plugins > Add New, or upload the plugin ZIP from Plugins
    > Add New > Upload Plugin.
 3. Activate Glin Payments for WooCommerce.
 4. Open WooCommerce > Settings > Payments.
 5. Enable Glin.
 6. Choose Sandbox or Live mode.
 7. Enter the matching Glin API key and public checkout key.
 8. Choose the payment methods to expose, then save settings.

After settings are saved, the plugin attempts to register the store webhook with
Glin. Local HTTP stores can still test checkout flows, but webhook registration 
requires a public HTTPS URL.

## Hỏi đáp

### Can this plugin be used without WooCommerce?

No. This is a WooCommerce payment gateway. WordPress can install the plugin, but
checkout functionality requires WooCommerce to be installed and active.

### Does the merchant need to configure an SDK URL?

No. The plugin uses Glin’s configured Checkout SDK URL internally.

### Does the plugin support sandbox testing?

Yes. Merchants can choose Sandbox mode and enter sandbox API/public checkout keys.

### How do webhooks work?

When gateway settings are saved, the plugin attempts to register the WooCommerce
store webhook URL with Glin. Glin sends signed payment/remittance events to that
URL. The plugin verifies the signature, finds the WooCommerce order by stored Glin
identifiers, and updates the order status idempotently.

### What happens if a webhook is delayed?

The plugin also polls pending order-received pages and schedules bounded WordPress
cron reconciliation for orders left waiting.

### Can I refund a Glin order from WooCommerce?

Not yet. Glin’s merchant API has no refund operation, so the plugin cannot offer
one and WooCommerce will only let you record a manual refund against the order. 
Ask Glin support to refund the payment, then record the refund in WooCommerce to
keep your reports straight.

### The gateway is enabled but payments fail, or wp-admin says Glin rejected the API key

The key in the settings is not one Glin accepts for the selected environment. Check
that a Live key is pasted under Live (and a Sandbox key under Sandbox), and that
the key is still active in your Glin dashboard. Saving the settings re-tests the
connection and reports the result; a standing error notice in wp-admin means the
last attempt was still refused.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Glin Payments for WooCommerce” là mã nguồn mở. Những người sau đã đóng góp vào 
plugin này.

Những người đóng góp

 *   [ lucianoglin ](https://profiles.wordpress.org/lucianoglin/)

[Dịch “Glin Payments for WooCommerce” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/glin-payments-for-woocommerce)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/glin-payments-for-woocommerce/),
check out [SVN repository](https://plugins.svn.wordpress.org/glin-payments-for-woocommerce/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/glin-payments-for-woocommerce/)
qua [RSS](https://plugins.trac.wordpress.org/log/glin-payments-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 0.1.14

 * Fixed: a card payment could never be completed on the block checkout — WooCommerce’s
   
   default checkout for new stores. Placing the order returned “Cannot place an 
   order, your cart is empty”: the card flow loads the cart twice in one request
   while preparing the payment, and WooCommerce fills a replacement cart from the
   session only once per request, so the second one stayed empty and was written
   back over the shopper’s cart. PIX was unaffected because it does not use that
   request. The cart is now loaded at most once per request.
 * Fixed: orders whose total has cents could be refused with “Glin does not support
   this
    order amount”. The amount was sent as a number, so what went over the wire
   depended on the store’s PHP configuration — on some hosts R$96.60 was transmitted
   as 96.599999999999994315658113919198513031005859375, which Glin rejects. Only
   totals whose cents happen to be exact in binary (.00, .25, .50, .75) were unaffected.
   The amount is now sent as a fixed two-decimal value and cannot be reshaped by
   the host.
 * Fixed: that rejection also told the shopper to reduce the order total, which 
   was wrong
    for every total except one genuinely above Glin’s limit. The two causes
   are now told apart and only a real limit says to reduce the total.
 * Fixed: an API key Glin refuses is no longer silent. Saving the settings tests
   the
    connection and reports the result, a standing notice appears in wp-admin
   while the keys are being refused, and a failing check is no longer retried on
   every page load — it used to repeat a blocking request on each checkout and admin
   page, with a 30-second timeout, for as long as the key stayed wrong. The connection
   check also now uses the keys you just saved rather than the ones loaded before
   the save.
 * Fixed: the block checkout showed the old one-line summary. It now shows the same
   
   itemised breakdown as the classic checkout — exchange rate, IOF, card or PIX 
   fee, Glin fee, total — following the method the payer selects. Both checkouts
   render it from one shared source.
 * Fixed: the block checkout accepted a non-Brazilian billing address and left Glin
   to
    refuse the payment. Billing country, CPF/CNPJ, number, neighborhood and phone
   are now checked on the server for both checkouts, before anything is reserved
   at Glin, so the payer gets a message they can act on instead of an API error.
 * Fixed: every message the checkout scripts showed was hard-coded English, including
   the
    one a PIX payer sees while waiting for confirmation. All of them are translatable
   now.
 * Declared compatibility with WooCommerce High-Performance Order Storage, which
   is the
    default for new stores; the plugin was listed as incompatible.
 * Card payments no longer hold the checkout request open for up to twelve seconds
   waiting
    for the card status. Three attempts, then the order-received page and
   the existing reconciliation finish the job — the previous wait could exceed the
   request timeout on some hosts and lose the payment page.
 * Webhook signing keys are cached for twelve hours instead of being fetched on 
   every
    delivery, and are refreshed automatically when Glin rotates them.
 * Tested with WordPress 7.1 and WooCommerce 11.2.

#### 0.1.13

 * The Card and PIX settings are now enforced, not only hidden. Until now switching
   one off
    removed it from the checkout markup but Glin was never told, so a request
   that did not go through that markup could still be paid with the method the store
   had switched off. The restriction is now sent with the charge and refused on 
   Glin’s side.
 * Switching a method back on now applies to carts that are already in progress.
   A cart holds
    its reserved charge for up to 45 minutes, and that charge used 
   to keep the restriction it was created under, so a shopper could not use a method
   the store had just enabled.

#### 0.1.12

 * Stop creating a second remittance for the same cart. The plugin created one every
   time
    WooCommerce refreshed the checkout, which happens on page load as well 
   as on every address, shipping, quantity and coupon change — so a single page 
   load could produce two remittances seconds apart, and the spare expired unpaid.
   Creating a remittance is now tied to the cart total actually changing; a refresh
   that only replaces the page re-attaches the existing one.
 * When the remittance field is lost by one of those refreshes, the order now reuses
   the
    remittance already reserved for the cart where it can, instead of always
   creating another.

#### 0.1.11

 * Tell the checkout SDK which language the store speaks. The SDK renders the card
   form
    itself and defaulted it to Portuguese regardless of the store, so an English
   store showed English labels wrapped around a Portuguese card form. It now follows
   the WordPress site language on both the classic and block checkouts.

#### 0.1.10

 * Show the payer an itemised cost breakdown at checkout, the same one Glin’s own
   checkout
    shows: foreign currency amount, exchange rate, converted amount, IOF
   with its rate, the card or PIX fee, the Glin fee, and the total — following whichever
   method the payer selects. Previously this was a single line (“You pay R$X. Merchant
   order amount: $Y.”), which told the payer the total had grown but not by what,
   leaving merchants to explain an unexplained gap against the spot exchange rate.
 * Check the store currency against your Glin payout currency instead of a fixed
   list. Glin
    charges in the payout currency chosen when your account was created,
   so a store selling in anything else could never complete a payment — but the 
   gateway still appeared at checkout and the payment failed in front of the customer,
   with nothing shown in the admin. The gateway is now hidden in that case and an
   admin notice names both currencies. If the payout currency cannot be read the
   previous behaviour is kept, so a temporary connection problem cannot take a working
   store offline.
 * Removed BRL from the accepted store currencies: Glin issues no BRL payout contracts,
   so a
    BRL store could not take a payment.

#### 0.1.9

 * Identify the plugin on every API call. Requests used WordPress’s default user
   agent, which
    is identical to every other plugin on the same site, so nothing
   in our own logs attributed a request to this plugin — answering “is the plugin
   working in production?” meant reading raw load-balancer logs and guessing. Calls
   now send “GlinPaymentsWooCommerce/; WordPress/; “, which adds attribution without
   sending anything the default agent did not already send.

#### 0.1.8

 * Load the checkout styles and the payment-status script on the My Account order
   page too.
    A pending PIX order shown there had an unstyled QR code and a status
   line that said it was waiting for confirmation but never updated, because nothing
   was polling it.

#### 0.1.7

 * Stop the PIX QR code filling the whole column on desktop. The size was set on
   the image,
    and Elementor’s `.elementor img { max-width: 100% }` is a more specific
   selector, so it won and the code stretched to the width of the page. The QR code
   is now sized by a container of its own, which a theme has no reason to restyle.

#### 0.1.6

 * Fix classic checkout never sending payment data. WooCommerce dispatches
    checkout_place_order_
   with `triggerHandler()`, which does not bubble, so the handler bound on `document.
   body` never ran and orders were placed with an empty payload and immediately 
   failed with “Glin payment was not ready.”
 * Bind the place-order handler to `form.checkout` directly and re-bind it after
   each
    checkout update.
 * Fix every card payment failing with “This remittance is not available for the
   current
    checkout session.” The `{remittanceId}` placeholder in the prepare endpoint
   URL was stripped by `esc_url_raw()`, so the request went to a literal `remittanceId`
   path. Affected both classic and block checkout.
 * Send the billing phone in E.164 when preparing a payment. WooCommerce stores 
   whatever
    the shopper typed, and the unnormalized value was rejected, so card
   payments could not get past the prepare step. The pay request already normalized;
   prepare did not.
 * Stop mangling phone numbers in area code 55, and accept a phone written with 
   the
    national trunk “0” before the area code. Brazil’s country code and the Santa
   Maria area code are the same two digits, so testing for a “55” prefix removed
   those shoppers’ area code instead of adding the country code and their payments
   were rejected. Length tells the two apart once the trunk “0” is stripped.
 * POST the 3D Secure challenge with its `creq` field instead of opening the ACS
   URL as a
    plain link. EMV 3DS 2.x answers a bare GET with an error page. Falls
   back to a link when the provider sends no `creq`.
 * Treat an expired or canceled remittance as terminal. A checkout abandoned before
   any
    order exists reports only `remittanceStatus`, so orders previously stayed
   in “pending payment” forever and consumed every reconciliation attempt.
 * Keep polling for payment confirmation for the full 32 minutes a PIX code can 
   be paid in,
    up from 6, and tell the payer when the page stops watching instead
   of leaving “Waiting for payment confirmation” on screen forever.

#### 0.1.5

 * Log sanitized Glin API failure context to WooCommerce logs when debug logging
   is
    enabled.
 * Include request method, endpoint path, status code, safe remittance fields, and
   
   boolean presence checks for sensitive customer, address, and card payload fields.
 * Keep card tokens, device fingerprints, CPF/CNPJ, email, phone, and full address
   
   values out of plugin logs.

#### 0.1.4

 * Validate WooCommerce order totals against the Glin merchant API amount range 
   before
    initializing checkout.
 * Replace raw API validation text with a shopper-safe order amount message.

#### 0.1.3

 * Verify the webhook JWS over the raw request body, as required by the unencoded
   
   detached payload form (RFC 7797). Earlier versions base64url-encoded the body
   first and rejected every valid signature.
 * Check the protected header claims before trusting a webhook: `alg` is RS256, `
   b64` is
    false, `aud` matches the integration account, and `kid` names a key 
   in Glin’s JWKS.
 * Send the API key as a Bearer token when fetching the JWKS, which that endpoint
   requires.

#### 0.1.2

 * Remove screenshot captions until matching WordPress.org screenshot assets are
   available.

#### 0.1.1

 * Initial pilot release of the Glin WooCommerce gateway.

## Meta

 *  Phiên bản **0.1.14**
 *  Cập nhật lần cuối **2 tuần trước**
 *  Số lượt cài đặt **Ít hơn 10**
 *  Phiên bản WordPress ** 6.4 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/glin-payments-for-woocommerce/)
 * Thẻ
 * [credit card](https://vi.wordpress.org/plugins/tags/credit-card/)[payment gateway](https://vi.wordpress.org/plugins/tags/payment-gateway/)
   [payments](https://vi.wordpress.org/plugins/tags/payments/)[pix](https://vi.wordpress.org/plugins/tags/pix/)
   [woocommerce](https://vi.wordpress.org/plugins/tags/woocommerce/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/glin-payments-for-woocommerce/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/glin-payments-for-woocommerce/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/glin-payments-for-woocommerce/reviews/)

## Những người đóng góp

 *   [ lucianoglin ](https://profiles.wordpress.org/lucianoglin/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/glin-payments-for-woocommerce/)