Take credit card payments on your WooCommerce site using AffiniPay
AffiniPay for WooCommerce
A WordPress plugin that integrates the AffiniPay Payment Gateway with your WooCommerce site.
Plugin version: 1.5.2
This plugin allows you to accept secure, PCI-compliant credit card payments on your WooCommerce site without passing sensitive cardholder data through your WordPress server.
Installation
Be sure to install, activate, and configure WooCommerce before installing this plugin. You must also enable shipping and add a shipping zone in your WooCommerce settings to run a charge.
Login to your WordPress site’s admin panel and select Plugins from the navigation sidebar
Click the Add New button at the top of the Plugins page
Search for Affinipay and click Install Now on the AffiniPay for WooCommerce plugin
Visit the plugin home page
Click the Download button
Upload the zip file to your WordPress instance
After installing and activating the plugin, you must configure it with your AffiniPay gateway credentials (e.g., test/live- mode public key, secret key, and primary account ID).
If you have more than one merchant account (e.g., trust, operating, other) associated with your AffiniPay profile, you must use the primary account. Contact support if you need help identifying your primary merchant account. You can also retrieve your merchant account details from the API. Look for the "primary": true
property inside the merchant_accounts
array in the JSON response. The corresponding id
and name
are your primary account’s ID and name. The following example shows a partial response:...
"merchant_accounts": [
{
ACCOUNT ID--->"id": "wKgFeDz5HF-BPPl08dcADQ",
"status": "ACTIVE",
ACCOUNT NAME->"name": "Operating",
PRIMARY?----->"primary": true,
"required_payment_fields": "name",
"cvv_policy": "REQUIRE_MATCH_LENIENT",
"avs_policy": "ADDR_OR_POSTAL_CODE_LENIENT",
"ignore_avs_failure_if_cvv_match": false,
"transaction_allowed_countries": "US,CA"
},
...
Log in to your WordPress admin dashboard.
Click WooCommerce > Settings > Checkout > AffiniPay for WooCommerce.
Check the Test Mode checkbox.
Note: Test mode helps you verify that the integration is working as expected before accepting payments from clients. Check/uncheck the Test Mode checkbox and click Save to turn test mode on/off.
Enter your test- and live-mode public/secret keys and account IDs in the following fields:
Click Save Changes.
That’s all the configuration you need to do for this plugin. Next, try running a credit card transaction on your site using a test card. Log in to your AffiniPay merchant account to see transaction details.
Contributions in the form of GitHub pull requests are welcome. Please adhere to the following guidelines:
– Before embarking on a significant change, please create an issue to discuss the proposed change and ensure that it is likely to be merged.
– Follow the coding conventions used throughout the project, including 2-space indentation and no unnecessary semicolons. Many conventions are enforced using eslint.
– Any contributions must be licensed under the GPL license.
GPL © AffiniPay LLC