简体   繁体   English

如何在 asp.net mvc c# 应用程序中的多个帐户上接收 paypal 付款?

[英]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.我正在 asp.net MVC 上开发一个应用程序,其中管理员将电子商务网站出租给供应商,他们有自己的面板,可以在其中添加产品并进行其他设置,所有供应商都将拥有各自的网站。 Here I need to integrate paypal payment method.这里需要集成paypal支付方式。 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.如果客户从供应商 1 购买任何东西,则付款应转入他的帐户,如果客户从供应商 2 购买任何东西,则付款应转入他的帐户。 But here in paypal we can receive payment to one account only whose clientd and clientSecret we have configured in our application.但是在 paypal 中,我们只能接收到我们在应用程序中配置的clientdclientSecret的一个帐户的付款。 Is there any way we can receive payment on different account (we will have email of that paypal account only).有什么方法可以通过不同的帐户接收付款(我们将只有 paypal 帐户的 email)。 I know how to integrate paypal on single account where receiver is only one on single application.我知道如何将 paypal 集成到单个帐户中,其中接收者只是单个应用程序中的一个。 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. 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信息到您网站的配置部分。 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/为了更快地加入新供应商,您可以使用 v2/orders payee字段: 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.我们对 PHP 使用 paypal 结帐 sdk。 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'
       )
    )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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