I have ecommerce working on my site with the latest 4.6 release (as of 6/23/2005).

When my customers check out via paypal (currently the only option available to them), they enter their billing address and shipping address on my site, and then are transferred to Paypal to complete the transaction by entering their credit card details.

Is there a way to prefill the billing address forms on the Paypal page with the values that they have already entered once on my site?

CommentFileSizeAuthor
#2 passaddresstopaypal.patch1.14 KBbudda

Comments

IncrediDad’s picture

I have the same question as I have the same issue on my site. I would really like to find out how to pass this info (billing and shipping) through to paypal.

budda’s picture

Version: 4.6.x-1.x-dev » master
Status: Active » Reviewed & tested by the community
StatusFileSize
new1.14 KB

Simple patch attached to pass billing details across to PayPal in order to populate the form for users who don't already have a PayPal account.

Doesn't support the phone number field as address.module doesn't save it in a usable format without some potential string manipulation.

This patch helps new users to your site anyway!

sime’s picture

Component: paypal.module » paypal

fixing component

Christoph C. Cemper’s picture

+1

swirt’s picture

Very nice work. Is there a way to force the State abbreviation passed to be all caps? If a person enters NY it passes to Paypal fine, but if they enter ny it does not pass.

djflux’s picture

Just add strtoupper() around the line of code that passes the state abbreviation.

brmassa’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Paypal module will take care of it.