Reply
Highlighted
Member
Posts: 3
Registered: ‎03-15-2012

How to add in Billing Address and Other Required Info in DPM

[ Edited ]

I'm reading through the Authorize.net documentation and I can't find any sample code that shows how to include the Billing Address / Shipping Address in the transaction.

 

Where can I find that sample code?

 

I'm programming in PHP

Highlighted
Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: How to add in Billing Address and Other Required Info in DPM

Are you just using the Quick Start code or did you set up your own form? If the latter, you would just include additional form fields, either visible or hidden, named according to the API Fields list at the end of the documentation PDF:

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

 

If the former, I suggest reverse-engineering the getCreditCardForm() function in the AuthorizeNetDPM.php file in the lib folder of your SDK. Add fields as necessary from the pdf (see above).