authorize.net

umaxim
umaxim used Ask the Experts™
on
Hi everyone. I use authorize.net to put hold on credit card for 30 day.

No i want to use my authorization_code which i receive from authorize.net to avoid payment using php. Is it any way to do it. Maybe some one have any examples.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016

Commented:
Uhh, .. to avoid payment?  Can you please explain a little more?

Author

Commented:
ok i put hold on credit card in authorize.net but i did not make settlement. So basicly it wait before i click in my profile button accept or avoid. I hear php can avoid payment using api. But i can not found any information how i can do it or how to use authorization_code with api. If you have any information what i can do with authorization_code
Most Valuable Expert 2012
Commented:
@Ray: he means "void" a payment.

You create a transaction just like you do for charging / authorizing a card, except you change the transaction type to "voidTransaction" and submit the refTransID.

See page 15 of:

http://www.authorize.net/support/AIM_guide_XML.pdf

Author

Commented:
so basicly if i send credit card before to avoid transaction i will need to have credit card number again or i just send refTransID
Most Valuable Expert 2012

Commented:
Just the ref id.

Author

Commented:
i will try thank you

Author

Commented:
Ok i try to send
               'x_amount'                        => "45.17",
                 'x_trans_id'        => "2170957787",
                 'x_type' => "VOID",
                'x_customer_ip'            => $this->input->ip_address(),


it does not return any error but still did not void transaction.

Author

Commented:
ok it working now thank you

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial