I am trying to test recurring transactions that were failing in production and in a dev instance.

For testing I am using the curl command from https://docs.civicrm.org/sysadmin/en/latest/setup/payment-processors/authorize-net/#online-form-testing-method.
curl https://dev.domain.com/sites/all/modules/civicrm/extern/authorizeIPN.php -d x_amount=0.25 -d x_cust_id=9025 -d x_invoice_num=5273 -d x_trans_id=12345TEST

This is what I am finding in my CiviCRM log. I see the form example in the book has x_subscription_id but not the curl command.

Dec 19 04:54:55 [info] Could not find an entry for x_subscription_id

Dec 19 04:54:55 [info] $error data = Array ( [error_code] => 0 )

Dec 19 04:54:55 [info] $REQUEST = Array ( [x_amount] => 0.25 [x_cust_id] => 9025 [x_invoice_num] => 5273 [x_trans_id] => 12345TEST )

Any help is appreciated.

Thanks, Josh


You are missing -d x_subscription_id=21930455 in your curl command (just change it to your subscription_id).

  • Thank you. Unfortunately, now I am getting Could not find an entry for x_response_code.
    – Josh
    Dec 19 '17 at 16:29
  • ` -d x_response_code=1` For more info about variables, please checkout sample <form> tag on the Authorize.net CiviCRM documentation page Dec 19 '17 at 20:59
  • Okay, when I figure this out I will update the docs.
    – Josh
    Dec 19 '17 at 21:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.