Drewdan / paypal

A simple Laravel PayPal Payment Client using the V2 API
4 stars 1 forks source link

Capturing a payment #29

Open z3d0 opened 2 months ago

z3d0 commented 2 months ago

Hi, I think there's an error in the example code, when capturing a payment you need to specify the orderID and not PayerID

So the correct line would be

$paypalOrder = $order->show(request()->token);

Thanks for the project btw!

Drewdan commented 2 months ago

Hello.

Thanks for opening an issue and letting me know.

Could you provide some more recreation steps, please? Possibly a larger excerpt of code so I can have a look at the context of this?

Thanks :)

Drewdan commented 2 months ago

Ah! @z3d0 - I see what you mean from the README.md file here. I am in the process of rewriting the library, this approach is deprecated and there is a new much nicer approach which is documented here:

https://prometheuscomputing.co.uk/series/documentation/paypal-laravel-library/introduction

But yes, you are right the documentation here is incorrect. Thank you for letting me know :)

z3d0 commented 2 months ago

Thank you! :-)