A client sells digital products where the shipping address isn't even necessary but I guess Authorize.net sometimes declines payments because the default shipping address, which is never shown or even hidden in the form, does not match the billing address. Is there a way that I can set CartThrob to just always submit the billing address as the shipping address for digital products?

OR is there a way to completely disable shipping from being submitted to Authorize.net (or any payment gateway for that matter)?

The site is running CartThrob 2.61.


1 Answer 1


If Authorize.net is requiring the billing info, then it would probably be easiest to set the fields during checkout.

You can use the cartthrob checkbox method - which is simply a jQuery based copy (setting values of fields via other fields) of the billing fields to shipping fields when checked.

A second method would be to use a scripted function on the form submit button to copy field values to hidden fields and then send the form.

Finally, you could directly edit the gateway and set the necessary values there prior to the data CURL to your gateway server. It would be a simple matter of copying variables prior to setting the charge data array.

You may be able to set your gateway's required fields or set what is being verified prior to charging the card, but that is something that you'll have to check directly with Authorize.net and see what info they are requiring that you submit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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