Linux 软件免费装
Banner图

Costa Rica Checkout for WooCommerce

开发者 arielcr
更新时间 2026年11月10日 01:51
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce payment gateway exchange rate sinpe costa rica

下载

1.0.0

详情介绍:

Costa Rica Checkout for WooCommerce brings the local needs of a Costa Rican online store together in one well-maintained plugin. Each feature is a module that you can enable or disable in WooCommerce → Settings → Costa Rica. SINPE Móvil payments Exchange rate Provinces, cantons and districts Exchange rate on your pages ID number (cédula) Important: this plugin does not process payments automatically. SINPE Móvil payments are confirmed manually by the store. It does not generate electronic invoices. Known limitations Compatible with WooCommerce High-Performance Order Storage (HPOS) and the block checkout. Includes Spanish translations for Costa Rica (es_CR) and Spain (es_ES). Development happens on GitHub: https://github.com/arielcr/costa-rica-checkout-for-woocommerce. Bug reports and pull requests are welcome.

安装:

  1. Install and activate WooCommerce.
  2. Install this plugin from Plugins → Add New or upload the zip file, then activate it.
  3. If your store sells in dollars, go to WooCommerce → Settings → Costa Rica, enable the Exchange rate module and check its source. Stores that sell in colones do not need it. See "External services" below.
  4. Go to WooCommerce → Settings → Payments → SINPE Móvil, enter your SINPE Móvil number and the account holder, and enable the method.

屏幕截图:

  • Block checkout with SINPE Móvil, the estimated amount in colones and the district of the selected province.
  • Order received page with the SINPE Móvil payment steps, the exact amount in colones and the receipt upload.
  • SINPE Móvil box in the order screen, with the uploaded receipt and the "Confirm payment" and "Reject payment" buttons.
  • Exchange rate settings with the current rate, its source and the "Update now" button.
  • ID type and number in the block checkout, with the "I need an electronic invoice" checkbox.
  • Dependent province, canton and district selects in the classic checkout.
  • The exchange rate on a page with the `[crkit_exchange_rate]` shortcode and the block.

升级注意事项:

1.0.0 First public release.

常见问题:

Does the plugin confirm SINPE Móvil payments automatically?

No. SINPE Móvil does not offer a public API to verify transfers, so the store checks the receipt and its bank account and confirms the payment manually.

Is there a limit on SINPE Móvil payments?

Yes. The Central Bank (BCCR) limits SINPE Móvil payments made by SMS to ₡100,000 per day, and the limit in bank apps depends on each bank (usually up to ₡500,000). Set a maximum amount per order in the SINPE Móvil settings so the method is not offered for larger orders.

Do I need a BCCR token?

No. The exchange rate comes from the Ministerio de Hacienda by default, which needs no credentials. A BCCR token is only needed if you prefer the Central Bank's service. You can generate it in the BCCR economic indicators site, under My profile → Generate token.

My store sells in dollars. What amount does the customer pay?

First enable the Exchange rate module: without it, SINPE Móvil is not offered in stores that sell in dollars. The customer pays the order total converted to colones with the exchange rate of the day (sell rate by default), plus your optional surcharge, rounded up to whole colones. The amount and the rate are saved in the order, so later rate changes do not affect it.

Where are the payment receipts stored? Are they public?

In wp-content/uploads/crkit-receipts/, with random file names. They are not in the Media Library and are only served through a protected link that checks the user's permissions, so they stay private on Apache and on Nginx.

Can I change the payment instructions or the email layout?

Yes. Copy the files from the plugin's templates folder to yourtheme/costa-rica-checkout-for-woocommerce/ and edit them there.

Where do the provinces, cantons and districts come from?

From the official 2025 administrative division of Costa Rica (Decreto Ejecutivo 44882-MGP, published in Alcance 12 to La Gaceta 17 on January 28, 2025). The postcode is the official code of the district: province (1 digit) + canton (2) + district (2).

Why is there no canton select in the block checkout?

The block checkout only allows extra fields that do not depend on each other. After the province, customers choose the district from a list of that province's districts, shown as "Canton — District" and sorted by canton (it is a regular dropdown without search); the canton is saved as the city automatically.

Can customers choose the district in the cart's shipping calculator?

No. For Costa Rican addresses the canton and district are chosen at checkout, where shipping is calculated again. The shipping calculator on the classic cart page does not show them, so rates that depend on the postcode are only exact at checkout. This is a known limitation.

Does it work with shipping plugins?

Yes. The canton is saved in the standard city field and the district code in the standard postcode field, so shipping zones by postcode and other plugins can use them. The district is also stored as order meta (_billing_crkit_district and _shipping_crkit_district).

Does it generate electronic invoices?

No. The ID number module stores the customer's ID type and number so that your electronic invoicing plugin can use them.

How does an electronic invoicing plugin read the customer's ID?

With crkit_get_order_identification( $order ), which returns type (Hacienda's code: 01 cédula física, 02 cédula jurídica, 03 DIMEX, 04 NITE), type_label, number (without hyphens or spaces) and electronic_invoice (whether the customer asked for one), or null. The crkit_order_identification_saved action fires when a customer places an order with an ID. The values are stored as order meta _wc_other/crkit/id-type, _wc_other/crkit/id-number and _wc_other/crkit/electronic-invoice.

Can customers from abroad buy?

Yes, without asking for an electronic invoice. Checkout offers the four ID types that people and companies in Costa Rica use: cédula física, cédula jurídica, DIMEX and NITE. Hacienda's "Extranjero No Domiciliado" and "No Contribuyente" types are only valid on specific receipts, so they are not offered. If you sell abroad, keep the ID as "Required only if the customer asks for an electronic invoice" or "Optional": with "Required", a customer without one of these IDs cannot place an order.

Where is the source code of the scripts?

The minified JavaScript in assets/build is built with @wordpress/scripts from the readable sources in assets/src, which ship with the plugin. The PHP code is not minified. The full source, build tools and tests are on GitHub: https://github.com/arielcr/costa-rica-checkout-for-woocommerce

Is the ID number verified with Hacienda?

No. There is no public check digit, so the plugin only checks the format of each type. It does not look the number up in any registry.

更新日志:

1.0.0