spree-contrib/better_spree_paypal_express — pull request #117 by RohanM (2014-08-12 02:15:04+00:00)
Title: Pass customer email and phone number to PayPal

At present, these customer details are not passed to PayPal, and as a consequence, the user has to re-enter them into PayPal when checking out (particularly when using the 'Sole' solution type). This pull request addresses that by passing those details through.

I've changed the test phone number to all-numeric since PayPal was truncating the non-numeric part. I also had some difficulty testing the phone number field, since it seems that PayPal inconsistently removes the hyphenation from the phone number that we pass to it. I've worked around that here by removing any hyphenation before testing.

I tested this PR against 1-3-stable branch, since