开发者

PHP Paypal Integration with existing cart and multiple sellers

I've been going round in circles looking at Paypal's convoluted API docs trying to work out exactly what I need to be doing.

I have a PHP website that has its own cart already developed, and now I need to integrate Paypal with it. What I want it to do is allow buying multiple items from multiple sellers and dealing with them all in one transacti开发者_JAVA百科on, while allowing the oppertunity to adjust postage cost once the buyers address is confirmed.

So far I've gotten a barebones single amount single seller transaction nearly working, using PHP from Paypal's integration wizard, however I'm not having much luck getting that working properly (or understanding what's going on) - I've given up trying to debug that and am currently poking bits of the API on the sandbox to see if I can decipher what I actually need to do.

I'd ideally like to see a good how-to guide from someone who has already done what I'm doing, or a link to some further reading that is less vague and more example-rich than paypal's docs.

I'm sure it's not just me but I have a hard time reading a description of what some code should do compared to reading the code itself.

Any nudges in the right direction are much appreciated


I assume you're using the PayPal NVP / SOAP API?

What you describe seems to be what the PayPal Adaptive Payments API (documentation) tries to accomplish, I've never messed with it personally but I'm pretty sure that's what you are looking for:

  • Send simple payments to a single recipient.
  • Make split payments to multiple recipients.
  • Send chained payments to multiple recipients, one after the other, each of which can take a cut of the payment.
  • Make parallel payments to multiple recipients at the same time.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜