Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to add a shipping address to payment options #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

smeevil
Copy link

@smeevil smeevil commented Nov 19, 2015

You can now add shipping address information with the payment option call.
This is handy when your checkout already collects the shipping information, when you give this to paypal the buyer protection kicks in.

x.city opts[:sender][:shipping_address][:city] if opts[:sender][:shipping_address][:city]
x.state opts[:sender][:shipping_address][:state] if opts[:sender][:shipping_address][:state]
x.zip opts[:sender][:shipping_address][:zip] if opts[:sender][:shipping_address][:zip]
x.country opts[:sender][:shipping_address][:country] if opts[:sender][:shipping_address][:country]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [114/80]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants