Title: AffiniPay WordPress
Author: affinipayudev
Published: <strong>July 9, 2018</strong>
Last modified: April 16, 2024

---

Search plugins

![](https://ps.w.org/affinipay-payment-gateway/assets/banner-772x250.jpg?rev=2031529)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/affinipay-payment-gateway/assets/icon.svg?rev=1906616)

# AffiniPay WordPress

 By [affinipayudev](https://profiles.wordpress.org/affinipayudev/)

[Download](https://downloads.wordpress.org/plugin/affinipay-payment-gateway.zip)

 * [Details](https://wordpress.org/plugins/affinipay-payment-gateway/#description)
 * [Reviews](https://wordpress.org/plugins/affinipay-payment-gateway/#reviews)
 * [Development](https://wordpress.org/plugins/affinipay-payment-gateway/#developers)

 [Support](https://wordpress.org/support/plugin/affinipay-payment-gateway/)

## Description

Make Credit Card or eCheck payments using the AffiniPay Payment Gateway from any
page on your website.

### Usage

 1. Activate the AffiniPay WordPress Plugin
 2. Enter your merchant secret key on the plugin settings page (Settings -> AffiniPay
    Payments) in WordPress admin.
 3. Select Merchant account from “Account” dropdown which is differentiated by icon
    based on account type.
 4. When you have multiple accounts then please Select a merchant account from the “
    Account” dropdown, it will auto generate shortcode with account type and account
    id. If your account has not been setup for eCheck payments
     contact AffiniPay customer
    service
 5. Copy the affinipay-payment shortcode that is generated below the “Account” dropdown
    to any page or post within your website.
     [affinipay-payment type=creditcard account
    =pM_hSdsc39DcXSabO8TBFs-g]

### Short Code Options & Usage Examples

`[affinipay-payment]` this shortcode can be used in the content editor on any page
from your website to display
 a payment form that will include all fields configured
in your accounts payment policy by default.

If you need to further customize your payment form the following attributes are 
available

 Option
 Default Value Valid Values Comments

 **Required**
 — — —

 `amount`
 0 ( float ) The amount of the transaction (optional if amount_field is
used)

 `amount_field`
 no ( yes / no ) Display the amount field on the payment form (optional
if amount is used)

 `type`
 creditcard ( creditcard / echeck ) The charge type, creditcard for Credit
Card payments, or echeck for bank payments

 **Payment Form Fields**
 — — —

 `reference_field`
 no ( yes / no ) Display the payment reference field useful for
the customer to enter an invoice number for example.

 `customer_email_field`
 yes ( yes / no ) Display the customer email field, this
is the email address that your customer receipt will be sent.

 `customer_address_field`
 no ( yes / no ) Display the customer address field on
the payment form

 `customer_address2_field`
 no ( yes / no ) Display the customer address2 field 
on the payment form

 `customer_city_field`
 no ( yes / no ) Display the customer city field on the payment
form

 `customer_state_field`
 no ( yes / no ) Display the customer state field on the
payment form

 `customer_postalcode_field`
 no ( yes / no ) Display the customer postal code field
on the payment form when account type is echeck

 `customer_phone_field`
 no ( yes / no ) Display the customer phone field on the
payment form

 **Titles & Labels**
 — — —

 `title`
 Make a Payment ( Any alphanumeric ) The title to display on the page

 `button_text`
 Submit Payment ( Any alphanumeric ) The text of the payment form
submit button

### Usage Examples

Simple Payment form with specified amount
 [affinipay-payment type=creditcard amount
=19.95]

### Available Action Hooks

 Hook
 Description

 `affinipay_charge_success`
 Called when a new charge has successfully completed.
The charge is passed as an argument to this callback

 `affinipay_charge_error`
 Called when a charge fails. An exception is passed as
an argument to the callback

### Available Filter Hooks

 Filter
 Description / Use Case

 `affinipay_before_payment_form`
 Add content before the payment form is rendered

 `affinipay_after_payment_form`
 Add custom content after the payment form

 `affinipay_before_render_customer_fields`
 Add custom content before the customer
fields are rendered

 `affinipay_after_render_customer_fields`
 Add content after the customer fields
on the payment form

 `affinipay_before_render_amount_field`
 Add content before the amount field

 `affinipay_after_render_amount_field`
 Add content after the amount field

 `affinipay_before_render_reference_field`
 Add content before the payment reference
field

 `affinipay_after_render_reference_field`
 Add custom content after the payment 
reference field

 `affinipay_before_render_email_field`
 Add custom content before the email field

 `affinipay_after_render_email_field`
 Add custom content after the email field

 `affinipay_before_render_name_field`
 Add custom content before the customer name
field

 `affinipay_after_render_name_field`
 Add custom content after the customer name
field

 `affinipay_before_render_address_field`
 Add custom content before the address 
field

 `affinipay_after_render_address_field`
 Add custom content after the address field

 `affinipay_before_render_address2_field`
 Add custom content before the address2
field

 `affinipay_after_render_address2_field`
 Add custom content after the address2 
field

 `affinipay_before_render_city_field`
 Add custom content before the city field

 `affinipay_after_render_city_field`
 Add custom content after the city field

 `affinipay_before_render_state_field`
 Add custom content before the state field

 `affinipay_after_render_state_field`
 Add custom content after the state field

 `affinipay_before_postalcode_field`
 Add custom content before the postal code 
field

 `affinipay_after_postalcode_field`
 Add custom content after the postal code field

 `affinipay_before_render_phone_field`
 Add custom content before the phone field

 `affinipay_after_render_phone_field`
 Add custom content after the phone field

 `affinipay_before_render_payment_fields`
 Add custom content before the credit 
card field

 `affinipay_after_render_payment_fields`
 Add custom content after the credit card
fields

## FAQ

Q: Can I use a Credit Card and an eCheck payment shortcode on the same page?
 A:
Yes, you may generate any number of shortcodes and include them on your page in 
any order

Q: How do I set an amount on a payment that does not change?
 A: Use the “amount”
key/value in the payment shortcode, see examples above.

## Reviews

![](https://secure.gravatar.com/avatar/eb05928627e175cf8f112feea2be53a1e0aac321027b9d0cfd4e5b715575cc08?
s=60&d=retro&r=g)

### 󠀁[Does not work as advertised](https://wordpress.org/support/topic/does-not-work-as-advertised-11/)󠁿

 [gambitx3x](https://profiles.wordpress.org/gambitx3x/) March 11, 2025

can’t load the echeck, it just loads the credit card form and the instructions are
unclear on how to add attributes in the shortcode

![](https://secure.gravatar.com/avatar/c4c7936af16d6d0c77cafab2f7a6f50493dcf6397dca22b32fb7b904d48f9087?
s=60&d=retro&r=g)

### 󠀁[Works Great!](https://wordpress.org/support/topic/works-great-8226/)󠁿

 [atomicwp](https://profiles.wordpress.org/atomicwp/) April 22, 2022

The plugin is very straight forward and easy to use. There isn’t much documentation
though, and I learned that it is not compatible with Oxygen. But that is no big 
deal, I worked around that issue and was able to configure a basic payment page 
for my client who uses LawPay. The only thing I didn’t like was that it generates
an H1, I already had an h1 as part of my template, so I just added display: none;
That said, styling the payment form is very easy to do. Thanks to the developers
who made this!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/)

## Contributors & Developers

“AffiniPay WordPress” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ affinipayudev ](https://profiles.wordpress.org/affinipayudev/)
 *   [ usharmaap ](https://profiles.wordpress.org/usharmaap/)
 *   [ wesleyaaronhuntap ](https://profiles.wordpress.org/wesleyaaronhuntap/)
 *   [ jjungmannap ](https://profiles.wordpress.org/jjungmannap/)
 *   [ affinipay0msluyter ](https://profiles.wordpress.org/affinipay0msluyter/)

[Translate “AffiniPay WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/affinipay-payment-gateway)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/affinipay-payment-gateway/),
check out the [SVN repository](https://plugins.svn.wordpress.org/affinipay-payment-gateway/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/affinipay-payment-gateway/)
by [RSS](https://plugins.trac.wordpress.org/log/affinipay-payment-gateway/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial release

#### 1.0.2

 * Multi-payment support

#### 1.0.3

 * Bug fixes

#### 1.0.4

 * Bug fixes

#### 1.0.5

 * Bug fix for payment amount in shortcode

#### 1.0.6

 * Support WordPress 5.5. Bug fixes.

#### 1.0.7

 * Bug fixes

#### 1.0.8

 * Bug fixes for incorrect echeck accountID’s

## Meta

 *  Version **1.0**
 *  Last updated **2 years ago**
 *  Active installations **50+**
 *  WordPress version ** 4.9.1 or higher **
 *  Tested up to **6.5.8**
 *  PHP version ** 7.0 or higher **
 * Tags
 * [affinipay](https://wordpress.org/plugins/tags/affinipay/)[payments](https://wordpress.org/plugins/tags/payments/)
 *  [Advanced View](https://wordpress.org/plugins/affinipay-payment-gateway/advanced/)

## Ratings

 3.5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/affinipay-payment-gateway/reviews/)

## Contributors

 *   [ affinipayudev ](https://profiles.wordpress.org/affinipayudev/)
 *   [ usharmaap ](https://profiles.wordpress.org/usharmaap/)
 *   [ wesleyaaronhuntap ](https://profiles.wordpress.org/wesleyaaronhuntap/)
 *   [ jjungmannap ](https://profiles.wordpress.org/jjungmannap/)
 *   [ affinipay0msluyter ](https://profiles.wordpress.org/affinipay0msluyter/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/affinipay-payment-gateway/)