Problem/Motivation
We are currently facing issues with CVV validation with Accept.js plugin. Basically when we mark the Card Code field as required in Authorize.net merchant account and run a Credit Card transaction through a payment gateway configured with Accept.js plugin, we end up with transaction failure with an error saying "Card Code required".
There is already an active issue CVV code not being passed to Authorize.net for validation using Accept.js
Steps to reproduce
- Mark the "Card Code" field as required in form field settings with your Authorize.net merchant account.
- Configure a payment gateway with plugin Accept.js with Authorize.net credentials.
- Do a credit card test transaction via placing a Commerce Order with this gateway.
- The transaction will fail with error message as "Card Code required".
Proposed resolution
https://www.drupal.org/project/commerce_authnet/issues/3052498#comment-1...
The fix to Accept.js plugin required getting rid of Authorize.net Customer and Payment profiles, which actually helpful in maintaining Payment Methods with Drupal user profile, which again required in recurring payment transactions. Accept.js is charging a credit card through these profiles with the Charge a Customer Profile, while the standard implementation says Create an Accept Payment Transaction.
Or we can introduce Authorize.net "Accept Hosted" as a plugin with Commerce Authnet. Though it will not fulfill the usage of Authorize.net Customer and Payment profiles to be used to maintain the Payment methods and recurring transactions support, but it does provide the solution to CVV issue, i.e. we can do a credit card transaction with Card Code field as required.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Add-Accept-Hosted-payment-gateway-plugin-3452993-2.patch | 62.87 KB | vipin.j |
Issue fork commerce_authnet-3452993
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
vipin.j commentedThis patch provides a Commerce Authnet payment gateway plugin from Authorize.net "Accept Hosted" payment gateway. The plugin is implemented with the documentation Accept Hosted. it provides all the necessary configurations required for both Authorize.net API and Commerce Payment gateway support.
Since this is the basic implementation with necessary requirements/services to be fulfilled like Performing a credit card transaction, Placing a full/partial refund request from the order UI, Maintaining Authorize.net Customer ID with Drupal user as Remote ID so the transactions, Payment methods, Shipping profiles history can be maintained over Authorize.net servers with CIM (Customer Information Management) support.
It does required implementation support for authOnlyTransaction transaction type, and also having possibilities of improvements.
Comment #3
vipin.j commentedComment #7
jsacksick commented#3531056: Implement Accept Hosted API was merged, closing this.