Search code examples
asp.net-mvc-4paypalpaypal-adaptive-paymentspaypal-rest-sdk

PayPal - Use REST API and Adaptive Payments together


I need some features from both APIs but I don't know how to do this. Chained Payment from Adaptive Payments and Order from REST API. When somebody click 'Buy Now' button, I need create an order and process it, but there must be two receivers, like in chained payments. Any ideas? Need for MVC project.


Solution

  • First let us define terms. Adaptive Payments is PayPal service which enables you to make:

    1. Simple payments
    2. Parallel payments
    3. Chained payments

    Simple payments

    You are selling your items, and you are a money receiver (also, someone else can be receiver and you can only host the website, but in most cases you are receiver) then you should implement simple payments:

    enter image description here

    Parallel payments

    If user can place an order which can hold different items from different sellers you need Adaptive Payment - Parallel payment as it is described on the following image:

    enter image description here

    This diagram shows a payment in which the sender pays multiple receivers in a parallel payment. With parallel payments, the sender can see the transaction to each receiver

    Chained payments

    If you are only receiver and then you will distribute money to other receivers that you should implement chained payments:

    enter image description here

    So, if you need to implement all 3 options you need to work with Adaptive Payments API.