How to get order information off webhook

sunnydl
Contributor
Contributor

Hi, I just recently started integrating PayPal into my eCommerce platform and I have a question about retrieving seller's information from the webhook.

 

The platform I am building is for customers to buy products from sellers that associate with my platform, the payment will first go through my platform before paying out to the sellers. And I am using the PayPalScriptProvider and PayPalButtons from @paypal/react-paypal-js to accept the payment.

 

What I want to do is when the customer presses the Paypal button to pay for the product, I want to store the product's seller's information along with the payment so that when the charge is successfully processed and webhook is triggered, I would be able to retrieve the seller's information off that webhook and know who to payout for that order.

Is there any way to achieve this? Thank you!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.