addressAndSalesTaxFromPayPalOrder method allows you to fetch customer billing and shipping addresses from PayPal. This enables Subscribe to correctly calculate and apply tax on the current PayPal Transaction. This call is intended for merchants who do not collect address information from their customers. Subscribe updates Payment Methods on the Account object with the billing and shipping addresses returned by this call, to be used on the current, and on future, one-time and recurring PayPal Transactions.
Note:
You must be approved by PayPal, and your Seller Account enabled for the Billing Address feature, to use this method successfully. Once you have established this relationship with PayPal, work with your Vindicia Client Services representative to enable the feature for your Subscribe account.
The Shipping Address will always be returned by this call, even without completing these required steps for the Billing Address return.
Input
srd: sparse response description, a SOAP string (which must be a JSON object), in which you specify the elements you want returned.This parameter enables the calling system to constrain amethod call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call.
Some fields are required, either practically or in the WSDL, and will be returned regardless of the srd. A null srd returns the complete response.
payPalTransactionId: Vindicia’s ID for the PayPal payment method validation Transaction, generated when you called AutoBill.update. Retrieve this ID from the value associated with the name: vindicia_vid in the name–value pairs attached to the redirect URL.
Output
return: an object of typeReturn that indicates the success or failure of the call.
transaction: an object of type Transaction
SalesTaxAddress: an object of type Address that describes the PayPal listed sales tax address for the Transaction.
BillingAddress: an object of type Address that describes the PayPal listed billing address for the Transaction.
ShippingAddress: an object of type Address that describes the PayPal listed shipping address for the Transaction.
taxItems: an object of type SalesTax that describes the total amount for taxable items included with the Transaction.
totalTax: the total amount of tax levied against the Transaction.
subtotalAmount: the pre-taxed total for the Transaction.
totalAmount: the post-tax total for the Transaction.
Returns
This method returns the codes listed in The Return Object.Examples
The following examples are for One-Time and Recurring Transactions. Both of these examples should be called on your PayPal Success page, after your Buyer has approved the Transaction. Note: These examples differ only in that Recurring Transactions require that a separate object be created for the AutoBill to use to callfinalizePayPalAuth.
One-Time Transactions may use the same Transaction object for both Transaction.addressAndSalesTaxFromPayPalOrder and finalizePayPalAuth.

