Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello all,
After being directed to the paypal servers when using WPS and the user does NOT have a paypal account the billing address information is not being integrated from what they already entered on the checkout page. Is this something that has be configured being that a user could potentially have different customer profiles with address fields and/or something that is just not implemented yet?
Thank you.
Nick
Comment | File | Size | Author |
---|---|---|---|
#9 | 1230304.create_billing_profile.patch | 3.21 KB | rszrama |
Comments
Comment #1
carn1x CreditAttribution: carn1x commentedSubscribe
Comment #2
ABaier CreditAttribution: ABaier commentedSubscribe
Comment #3
rszrama CreditAttribution: rszrama commentedIn my case, I simply didn't enable the Billing pane locally. There was no reason to collect it, since that's the reason for PayPal in the first place. : D
That said, if you do need to collect billing information on-site, it would be a fine feature to have. Additionally, in cases where you don't collect billing information on-site, I'd really like the PayPal module to go ahead and create a profile using the first and last name returned from PayPal in the IPN. So consider this my stamp of approval on the feature request. ; )
Comment #4
Pomliane CreditAttribution: Pomliane commentedIsn't this issue a duplicate of #1301570: Send itemized shopping cart to PayPal WPS?
Comment #5
rszrama CreditAttribution: rszrama commentedFor the most part. Let's repurpose this one to just focus on my additional request in #3.
Comment #6
andyg5000Comment #7
andyg5000From what I can tell, PayPal only returns address values in the IPN when a shipping address is specified. This functionality would require #1494586: Add the option to collect a shipping address at PayPal to be applied and then we'd need to decide which type of profile to create. Since it's returning a shipping address I don't think we'd want to create a billing profile for the customer. Thoughts?
Comment #8
rszrama CreditAttribution: rszrama commentedIt doesn't return a full address, but it does return the first and last name of the customer and the country:
That information is enough to create the profile and won't cause any problem on the order edit form where we strip the requirements from profile field values anyways.
Comment #9
rszrama CreditAttribution: rszrama commentedI'm attaching the patch I've created for this. I'll test it in my live site using the sandbox tomorrow and commit if all goes well. : )
Comment #10
rszrama CreditAttribution: rszrama commentedHad a couple of stupid bugs in the patch; was looking for a setting on $payment_method instead of in $payment_method['settings'] and for some reason used !empty() instead of empty() when checking to make sure we had first and last names in the IPN. C'est la vie. Fixed, tested, and committed.
Commit: http://drupalcode.org/project/commerce_paypal.git/commitdiff/451acc2