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

Retrieve Information about the Customer - Expresscheckout #25

Open
dermythos opened this issue Mar 7, 2012 · 2 comments
Open

Retrieve Information about the Customer - Expresscheckout #25

dermythos opened this issue Mar 7, 2012 · 2 comments

Comments

@dermythos
Copy link

Hi,

I wonder how to retrieve Information on the Customer like shipping Address and so on?

This should be handled after the Customer returns from PayPal. In the normal PayPal workflow it looks something like this:
$resArray = GetShippingDetails( $token );
https://github.com/hrendoh/PayPal-Express-Checkout-example/blob/master/review.php

In the PayPalPlugin.php (https://github.com/schmittjoh/JMSPaymentPaypalBundle/blob/master/Plugin/PaypalPlugin.php#L152), there is a function that returns the Details of the Customer.

I think there should be a function getDetails in the ExpressCheckoutPlugin (https://github.com/schmittjoh/JMSPaymentPaypalBundle/blob/master/Plugin/ExpressCheckoutPlugin.php).

What do you think? Or is there another working solution available?

@boldtrn
Copy link

boldtrn commented Mar 20, 2012

I played around with the Plugins and tried to understand the Code.

I think the best would be to extend the Result Object.

When calling approveAndDeposit() we return a Result Object and we could extend it to also Contain Information on the Customer.

What do you think Johannes?

@schmittjoh
Copy link
Owner

I'd prefer to put that kind of information into extended data, or even perform a separate API call after the payment succeeds.

The result object should be free from payment provider specific code.

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

No branches or pull requests

3 participants