Giter Site home page Giter Site logo

daynis-olman / wp-gravityforms-nabtransact Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 882 KB

National Australia Bank XML API for Gravity Forms. This plugin allows to securely process transactions triggered by WordPress Gravity Form submission.

License: MIT License

PHP 100.00%

wp-gravityforms-nabtransact's Introduction

NAB Transact XML API Payment Gateway Extension | WordPress Gravity Forms

Gravity Forms and NAB Transact make collecting credit card payments quick and painless! With the this Add-On you can capture credit card payments along with any additional data you want from the user right on your site, without sending the user to a 3rd party to complete the transaction.

Seamless integration

Automatically capture credit card payments with NAB Transact when a form is submitted.

Important

For plugin to work properly you need to add below fields to payment form and ensure to label them as below

System requirements

The Gravity Forms NAB Transact Add-On requires Gravity Forms v1.6.2+, WordPress v3.3+ and a valid SSL Certificate installed and configured on your WordPress site.

Additional NAB Transact Add-On Requirements

To be able to use the NAB Transact add-on for Gravity Forms, there are a few additional requirements beyond those of a normal add-on.

Your form must contain uniquely labelled fields to work correctly

Please read below on Required form fields

SSL Certificate Installed and Configured

Because of the secure nature of capturing credit card information, the NAB Transact add-on requires a SSL certificate to be installed and configured. You will also need to configure your WordPress site to work properly with SSL

PHP cURL Extension

You will need this installed on your server to facilitate communication with NAB Transact

Required form fields (Production)

The following are fields that are required to be within your form to properly process payments via Authorize.net:

  • Name on Credit Card
  • Credit Card Number
  • Credit Card Expiry date
  • Credit Card CVV2 / CVC number
  • Field with label 'Price' to reflect total payment amount
  • Hidden empty input field with label 'Payment Status' (will receive bank's responce code)

A working NAB Transact feed

In addition to the required fields being present within your form, you will also need to have a feed for the NAB Transact add-on to properly send the form submission data to NAB Transact. Without this, payment data is not sent to NAB Transact and therefore, the payment is not processed. NAB Transact Feed is created post add-on installation in WordPress Admin Dashboard (NAB Transact Add-on settings)

Public Test API Credentials

These should be populated in plugin settings page to test transactions coming through

  • Merchant ID: XYZ0010
  • Transaction Password: abcd1234

NAB Transact Portal โ€“ Public Test Login Details

Login to see transactions coming through

NAB Transact Portal: https://demo.transact.nab.com.au/nabtransact

  • Client ID: XYZ
  • Username: demo
  • Password: abcd1234

Test Creditcard number (test in sandbox environment)

  • Card Number: 4444333322221111
  • Card Type: VISA Card
  • CCV: 123
  • Card Expiry: 08 / 24 (or any date in the future)
Credit Card Types Accepted by default via NAB merchant facility
  • Visa
  • MasterCard
Payment amounts to simulate approved transactions: $1.00
  • $1.08
  • $105.00
  • $105.08 (or any total ending in 00, 08)
Payment amounts to simulate declined transactions: $1.51
  • $1.05
  • $105.51
  • $105.05 (or any totals not ending in 00, 08)

This plugin is a fork of Authorize.NET Extension for Gravity Forms This plugin contains Authorize.NET SDK

wp-gravityforms-nabtransact's People

Contributors

daynis-olman avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shukriyusof

wp-gravityforms-nabtransact's Issues

Sandbox: Error processing your credit card

Not sure if this repo is still actively maintained but in the hopes that it is I'm submitting this issue.

I'm trying to test the plugin using the sandbox NAB Transact account but when I submit the form I get an error:

"There was an error processing your credit card. Please verify the information and try again."

In the logs I see the following:

2021-10-26 16:42:06.628962 - DEBUG --> GFAuthorizeNet::get_aim(): In test mode. Using the NAB Transact Sandbox. 
2021-10-26 16:42:06.629120 - DEBUG --> GFAuthorizeNet::get_payment_transaction(): Initializing new AuthorizeNetAIM object based on feed #1 - NAB Transact Feed 1. 
2021-10-26 16:42:06.629374 - DEBUG --> GFAuthorizeNet::get_payment_transaction(): $submission_data line_items => Array
(
    [0] => Array
        (
            [id] => 8
            [name] => Payment Amount
            [description] => 
            [quantity] => 1
            [unit_price] => 15
            [options] => Array
                (
                )

        )

)
 
2021-10-26 16:42:06.629559 - DEBUG --> GFAuthorizeNet::authorize(): Capturing funds. 
2021-10-26 16:42:07.719912 - ERROR --> GFAuthorizeNet::authorize(): Funds could not be captured (error_message). Response => AuthorizeNet Error:
                Response Code: 3
                Response Subcode: 2
                Response Reason Code: 13
                Response Reason Text: The merchant login ID or password is invalid or the account is inactive.
                 
2021-10-26 16:42:07.720154 - DEBUG --> GFPaymentAddOn::validation(): Authorization result for form #4 submission => Array
(
    [is_authorized] => 
    [transaction_id] => 0
    [error_message] => <!-- Error: 13 -->There was an error processing your credit card. Please verify the information and try again.
    [captured_payment] => Array
        (
            [is_success] => 
        )

)

I've triple checked that I have all the required fields set up in the form with the labels exactly as stated in the Readme and that the NAB Transact Feed is setup and has the correct sandbox ClientID/Password.

I'm running WP 5.8.1 & Gravity Forms 2.4.24.1

I also tried with my own NAB Transact Test account details and got the same errors

Plugin errors when using NAB-supplied sandbox credentials

I am using the test merchant id details as per the read.me however keep getting this error... any idea?

2019-01-30 8:40:39.282357 - DEBUG --> GFAuthorizeNet::authorize(): Capturing funds.
2019-01-30 8:40:40.734445 - ERROR --> GFAuthorizeNet::authorize(): Funds could not be captured (error_message). Response => AuthorizeNet Error:
Response Code: 3
Response Subcode: 2
Response Reason Code: 13
Response Reason Text: The merchant login ID or password is invalid or the account is inactive.

2019-01-30 8:40:40.734646 - DEBUG --> GFPaymentAddOn::validation(): Authorization result for form #2 submission => Array
(
[is_authorized] =>
[transaction_id] => 0
[error_message] => There was an error processing your credit card. Please verify the information and try again.
[captured_payment] => Array
(
[is_success] =>
)

)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.