Description
2C2P provides a payment solution for your WooCommerce store. Shoppers pay with credit/debit cards, Alipay, or alternative/cash payments at local counter services, on the secure 2C2P hosted payment page (2C2P Redirect API).
Features:
- Classic checkout and the WooCommerce Cart/Checkout blocks
- Optional stored cards for logged-in shoppers (card tokens are kept by 2C2P; the store only keeps the masked card number and token reference)
- Refunds and voids from the WooCommerce order screen
- Optional passthrough of a shopper’s coupon as a 2C2P promotion code
- High-Performance Order Storage (HPOS) compatible
2C2P is available in:
- Singapore
- Thailand
- Myanmar
- Indonesia
- Malaysia
- Philippines
- Hong Kong
A 2C2P merchant account is required.
External services
This plugin connects to 2C2P (2C2P Pte. Ltd., https://2c2p.com), the payment processor that takes the payment. Without it the plugin cannot accept payments.
When a shopper clicks “Pay via 2C2P”, the shopper’s browser sends a form to the 2C2P hosted payment page (RedirectV3) at https://demo2.2c2p.com (Test mode) or https://t.2c2p.com (Live mode). The form contains: the merchant ID, order number, amount, currency, an order description (product names or the fixed description from the settings), the shopper’s email address, the payment page language, the 1-2-3 slip expiry, the store’s return URLs, the store name and site URL, the plugin version, the stored-card token reference (only when the shopper picks a stored card), the promotion code (only when that option is enabled and the shopper used a matching coupon) and an HMAC signature. The shopper enters payment details on the 2C2P page, not on the store.
After the payment, 2C2P sends the payment result (status, transaction reference, amount, currency, masked card number and, if the shopper chose to save the card, a card token reference) back to the store’s return URL, signed with the merchant’s Secret Key.
When an administrator refunds or voids an order from WooCommerce, the store’s server sends the order number, the refund amount and an HMAC signature to the 2C2P PaymentActionV2 PaymentProcess endpoint on the same hosts (https://demo2.2c2p.com in Test mode, https://t.2c2p.com in Live mode).
2C2P privacy policy: https://2c2p.com/privacy/
2C2P’s terms of service are part of the merchant agreement between the store owner and 2C2P (https://2c2p.com).
Installation
- Upload the plugin folder to the
/wp-content/plugins/directory, or install the plugin through the WordPress Plugins screen. - Activate the plugin through the Plugins screen in WordPress. WooCommerce must be active.
- Go to WooCommerce > Settings > Payments > 2C2P and fill in:
- Enable/Disable: show 2C2P at checkout.
- Title and Description: what the shopper sees at checkout.
- Merchant ID: provided by 2C2P, available in the my2C2P portal.
- Secret Key: provided by 2C2P, available in the my2C2P portal. Payments cannot be confirmed without it.
- Mode: Test (2C2P sandbox) or Live (production).
- Stored Card Payment: let logged-in shoppers pay with a card they used before.
- 123 Payment Expiry: validity of 1-2-3 (cash/APM) payment slips, in hours (8-720).
FAQ
How do I get a test / sandbox account?
Use the sandbox credentials on the 2C2P developer portal: https://developer.2c2p.com/docs/sandbox
Where is the integration documentation?
On the 2C2P developer portal: https://developer.2c2p.com
How can I go live with 2C2P?
Contact the 2C2P sales team at support@2c2p.com
Screenshots
Changelog
8.2.1
- Security: payment results from 2C2P are only accepted with a valid signature from a configured Secret Key, and the paid amount and currency must match the order (mismatches go on-hold for review; a lower amount is accepted when a 2C2P promotion code was sent)
- Security: an invalid or unsigned payment result no longer changes, annotates or cancels the order
- Security: removing a saved card requires a logged-in shopper and a security token
- WordPress.org compliance: text domain 2c2p-redirect-api-for-woocommerce, readme.txt, escaping and input sanitizing, Tested up to WordPress 7.1, requires WordPress 6.5+ / PHP 7.4+
8.2.0
- New: optional passthrough of the shopper’s coupon as the 2C2P promotion code (off by default; the merchant lists the codes registered with 2C2P, list order = priority)
- The shopper sees why 2C2P declined a payment instead of a bare cancellation
- Fix: late or expired 2C2P responses no longer cancel, fail or re-complete orders that were paid another way
- Fix: a pending 2C2P response no longer moves a paid order back to awaiting payment
8.1.0
- HPOS (High-Performance Order Storage) compatibility
- Fix: stored-card selection persists on the WooCommerce block checkout
- PHP 8.1+ compatibility (FILTER_SANITIZE_STRING removed)
7.0.4
- Fix refund feature
7.0.3
- Stock deduction after payment successful
7.0.2
- Added label to show plugin version on setting page
- Added fixed description field
7.0.1
- Added language support
- Fix issue with payment status
- Cosmetic changes on display texts
7.0.0
- Initial release for redirect payment API, payment version 7.0




