Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

How to configure Shipping Address #34

Closed
mpaluy opened this issue Nov 5, 2014 · 4 comments
Closed

How to configure Shipping Address #34

mpaluy opened this issue Nov 5, 2014 · 4 comments
Labels

Comments

@mpaluy
Copy link

mpaluy commented Nov 5, 2014

I'd like PayPal to obtain shipping address from the buyer's account profile, if not set.
How to configure PayPal SDK to receive it?

Reference:
https://developer.paypal.com/docs/api/#shippingaddress-object

@romk1n
Copy link
Contributor

romk1n commented Nov 5, 2014

@mpaluy the shipping address object is available after the purchase. Using your Pay-Id you can lookup a payment resource for verification and also to get more info. shipping_address is part of the payer payers_info object

@romk1n romk1n added the question label Nov 5, 2014
@romk1n
Copy link
Contributor

romk1n commented Nov 5, 2014

@mpaluy unless i misunderstood a question and you were referring to setting shipping_address using mSDK https://github.com/paypal/PayPal-iOS-SDK/blob/master/PayPalMobile/PayPalPayment.h#L94

That functionality has not been implemented to the plugin yet, but you should be able to extend and hopefully submit a pull request for us :)

@mpaluy
Copy link
Author

mpaluy commented Nov 5, 2014

@romk1n I want my user to be able to select a shipping address while Paying for the product. It can be an address associated with a PayPal/Credit Card or a new one. How can I do it with the SDK?

@romk1n
Copy link
Contributor

romk1n commented Nov 5, 2014

@mpaluy passing custom address functionality is available in the PayPal Mobile SDK but not yet implemented in the Cordova Plugin. Selecting shipping address only available for PayPal if you using version above 2.4.1 for iOS and 2.3.0 for Android. See our documentatin for iOS and Android for details, should you decide to extend the plugin via a pull request.

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

No branches or pull requests

2 participants