- This topic has 3 replies, 2 voices, and was last updated 12 years, 3 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – Address processing from authorize.net
Hi there – using your authorize.net payment processing with WP eStore, and loving it. Only problem I’ve hit so far is that eStore tries to capture only the shipping address from Authorize.net in post-payment processing; if you have a digital product and are not asking folks to enter their shipping address on the Authorize.net page, just billing, that info doesn’t make it into the eStore (or eMember) db.
This is an easy fix; just check out the part around line 160 in eStore_process_payment_data.php. Right now you have this line:
$address = $raw_data.”, “.$raw_data.”, “.$raw_data.” “.$raw_data.”, “.$raw_data;
But the billing address is stored as ‘x_address’, ‘x_city’, etc. So just putting a little if statement (as I have done) to check if x_address is populated would do the trick. As is, without that, the address field in eStore ends up being ” , , , ,”.
Thanks!
Paul.
Actually, while I’m at it, a related feature request: it would be great to be able to add additional fields to the customer page, which you could populate via the Authorize integration. For instance: right now we’re asking folks for their company name on the Authorize.net payment page. I don’t want to ask them again for that info when they register for membership, I want those data to follow them into eStore and eMember. And you’re already getting the data from Authorize.net; I can see them in authorize.ipn_results.log. So it’d just be a question of checking what variables are populated coming from Authorize, and then giving users the option to map them to a field in the eStore DB.
Just a thought!
Thank you. I will change the address collection logic so it will collect the billing address if the shipping address is empty.
Awesome. Thanks very much! Again, great product. Saved me a ton of time and effort.