Code libraries

AffiniPay’s code libraries kickstart your payment integration with the AffiniPay Payment Gateway API.

JavaScript library for tokenization

You should always use AffiniPay’s hosted field JavaScript library to tokenize payment details without having that data pass through your servers.

Code libraries for Gateway integration

You can use AffiniPay’s PHP client library, Ruby gem, or .NET client library in your application to perform the following operations on the AffiniPay Payment Gateway:

The PHP client library is available from: https://github.com/affinipay/chargeio-php.

The Ruby gem is available from: https://github.com/affinipay/chargeio-gem.

The .NET client library is available from: https://github.com/affinipay/chargeio-net.

Plugins for Gateway integration

You can use AffiniPay’s WordPress or WooCommerce plugin to accept secure, PCI-compliant credit card payments on your site without passing sensitive cardholder data through your WordPress server.

The WordPress plugin is available from: https://wordpress.org/plugins/affinipay-payment-gateway

The WooCommerce plugin is available from: https://github.com/affinipay/affinipay-woocommerce.