Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8101199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:55:33+00:00 2026-06-05T22:55:33+00:00

I am using Authorize.net payment module(AIM) with my cakephp framework. Payment functionality is working

  • 0

I am using Authorize.net payment module(AIM) with my cakephp framework. Payment functionality is working fine. Now i need to do a REFUND Functionality with my framework. I checked their Api’s but i could not get any thing. According to their API guide the following parameters are needed If I passed they asking exp date too. In my database we are storing only last 4 digits of CC. any way i try to pass all the 16 digits but the response not proper. Just i need a sample PHP code for Authorize.net Refund.

x_type=CREDIT

x_trans_id=Transaction ID here

x_card_num=Full credit card number or last four digits only here

I am passing following parameters

        "x_type"                => 'CREDIT',

        "x_trans_id"            => $x_trans_id,

        "x_card_num"            => '4111111111111111',

       "x_exp_date"            => '' ,

        "x_amount"                => $x_amount,

        'x_test_request' => TRUE 

Now I getting the following error message :

(TESTMODE) A valid referenced transaction ID is required.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:55:35+00:00Added an answer on June 5, 2026 at 10:55 pm

    Even though an expiration date is not required, it seems that you still need to pass the key because it’s in the list of required Authorize.net keys. Just pass x_exp_date => '' and you should be good!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using authorize.net {aim} for payment gate way. I have used http://www.johnconde.net/blog/tutorial-integrating-the-authorizenet-aim-api-with-php/ class
I'm looking to do Authorize.net payment integration with a website using PHP. My questions
I am using the authorize.net as my payment gateway which accept payment from credit
I'm using authorize.net AIM, the sample code they provide prints an ordered list of
I am working on e-commerce application using asp.net MVC with C#. I need to
I need authorize.net integration for subscription payments, likely using CIM. The requirements are simple
I am trying to use Authorize.net's SIM payment gateway process and am using the
I have created a test account with Authorize.net and am using ActiveMerchant to process
I am trying to do a CIM transaction using authorize.net but whenever i am
I'm building a site on Rails using ActiveMerchant to clear payments through Authorize.net. We'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.