简体   繁体   English

在客户上授权贝宝付款并在服务器上捕获付款

[英]authorize paypal payment on client and capture payment on server

I want to authorize the payment with Paypal on the client-side (React) and then the payment is to be captured on the server-side (ASP.NET). 我想在客户端(React)上使用Paypal授权付款,然后在服务器端(ASP.NET)上捕获付款。 Is this possible using any library provided by Paypal? 使用贝宝提供的任何库是否有可能? How can it be achieved? 如何实现?

You might want to take a look at webhooks from Paypal API. 您可能想看看Paypal API中的webhooks You can configure a webhook listener and subscribe it to any event you are interested in getting notified of. 您可以配置Webhook侦听器,并将其订阅到您有兴趣收到通知的任何事件 Paypal will then notify you (by sending an HTTP POST notification to a URL listening on your server that you have to provide when you configure the webhook) when any of the events you subscribed to occur. 然后,当您订阅的任何事件发生时,Paypal都会通知您(通过将HTTP POST通知发送到侦听服务器上必须在配置Webhook时提供的URL)。

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

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