forked from spree-contrib/better_spree_paypal_express
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handling addresses between a Spree store and Paypal.
The goal of this is to give a store operator the tools needed to be able to place seller protection elibible payments against Paypal. The changes are: * Creating a no_shipping preference to give the store developer a say in whether to send the shipping address. (spree-contrib#113) * Adds the ability to send a shipping address to Paypal (see spree-contrib#113) * Adds the option of displaying the shipping address on the Paypal pages. * Upgrades the Paypal SDK gem * Adds the ability to request a confirmed shipping address from Paypal. * Extracts the confirmed address from the Paypal express checkout details when we are configured to require a confirmed shipping address.
- Loading branch information
Showing
8 changed files
with
361 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
module Spree | ||
class PaypalExpressCheckout < ActiveRecord::Base | ||
belongs_to :address, class_name: "Spree::Address" | ||
alias_attribute :confirmed_address, :address | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddAddressToExpressCheckout < ActiveRecord::Migration | ||
def change | ||
add_reference :spree_paypal_express_checkouts, :address | ||
end | ||
end |
Oops, something went wrong.