-
Notifications
You must be signed in to change notification settings - Fork 45
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,5 @@ Gemfile.lock | |
*.gem | ||
TAGS | ||
diagram.txt | ||
.bundle | ||
vendor |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -210,6 +210,17 @@ def build_adaptive_set_payment_options_request(opts) | |
x.sharePhoneNumber opts[:sender][:share_phone_number] if opts[:sender][:share_phone_number] | ||
x.requireShippingAddressSelection opts[:sender][:require_shipping_address_selection] if opts[:sender][:require_shipping_address_selection] | ||
x.referrerCode opts[:sender][:referrerCode] if opts[:sender][:referrerCode] | ||
if opts[:sender][:shipping_address] | ||
x.shippingAddress do |x| | ||
x.addresseeName opts[:sender][:shipping_address][:name] if opts[:sender][:shipping_address][:name] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [114/80] |
||
x.street1 opts[:sender][:shipping_address][:street1] if opts[:sender][:shipping_address][:street1] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [114/80] |
||
x.street2 opts[:sender][:shipping_address][:street2] if opts[:sender][:shipping_address][:street2] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [114/80] |
||
x.city opts[:sender][:shipping_address][:city] if opts[:sender][:shipping_address][:city] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [105/80] |
||
x.state opts[:sender][:shipping_address][:state] if opts[:sender][:shipping_address][:state] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [108/80] |
||
x.zip opts[:sender][:shipping_address][:zip] if opts[:sender][:shipping_address][:zip] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [102/80] |
||
x.country opts[:sender][:shipping_address][:country] if opts[:sender][:shipping_address][:country] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line is too long. [114/80] |
||
end | ||
end | ||
end | ||
unless opts[:display_options].blank? | ||
x.displayOptions do |x| | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shadowing outer local variable -
x
.