简体   繁体   中英

how to receive paypal payments on multiple accounts in asp.net mvc c# application?

I am developing an application on asp.net MVC where admin is giving e-commerce website on rent to vendors and they have their panels where they can add products an do other settings, all vendors will have their separate websites. Here I need to integrate paypal payment method. If customer is buying anything from vendor1 the payment should be transfer in his account and if customer is buying anything from vendor2 then payment should be transfer in his account. But here in paypal we can receive payment to one account only whose clientd and clientSecret we have configured in our application. Is there any way we can receive payment on different account (we will have email of that paypal account only). I know how to integrate paypal on single account where receiver is only one on single application. But here I want multiple receiver on a single application.

For full control, each vendor should generate their own clientid/secret via https://www.paypal.com/signin?intent=developer&returnUri=https%3A%2F%2Fdeveloper.paypal.com%2Fdeveloper%2Fapplications , and copy paste this information into the configuration section of your site. This is the preferred setup.

For quicker onboarding of a new vendor, you can use the v2/orders payee field: https://developer.paypal.com/docs/checkout/integration-features/custom-payee/

You will have less control, and not be able to do refunds or capture authorizations for example.

we have the same goal. We use paypal checkout sdk for PHP. Since we saw this documentation

but it seems it's not working when we create an order. When we add this line of code

    array(
       'payee' => array(
           'email_address' => 'payee@email.com'
       )
    )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM