使用具有计费协议的自适应付款/批量付款 [英] using adaptive payments / masspay with a billing agreement

查看:90
本文介绍了使用具有计费协议的自适应付款/批量付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个类似eBay的网站,那里有买家就是卖家.当用户(买卖双方)签约时,我让他们与我签署贝宝计费协议.当买家出售商品时,我会根据结算协议向卖家收取费用.

I'm setting up an ebay like website where there are buyers are sellers. When a user (both buyer and seller) signs up, I make them sign a paypal billing agreement with me. When a buyer sells an item, I charge the seller using the billing agreement.

我被困的是根据帐单协议将这笔款项发送给卖方 .我意识到我可以使用MassPay或Adaptive Payments API来向卖方付款,但是这些接口都没有采用计费协议ID.他们俩都只使用卖方的电子邮件地址.这是否意味着我需要在进行批量付款/自适应付款呼叫之前通过GetBillingAgreementCustomerDetails检索用户的电子邮件地址?

What I'm stuck on is sending that amount to the seller using the billing agreement. I realize I can use the MassPay or Adaptive Payments API to pay the seller but neither of those interfaces taking a billing agreement ID. They both only take the seller's email address. Does that mean I need to retrieve the user's email address via GetBillingAgreementCustomerDetails before making the masspay / adaptive payments call?

推荐答案

如果我是我,我会调查预付款".您的用户将设置一个预先批准的配置文件,而不是一个计费协议.然后,您可以使用任何用户的预授权密钥代表任何用户汇款.

I would look into Preapproved Payments if I were you. Your users would setup a preapproval profile instead of a billing agreement. Then you can send money on behalf of any user using their preapproval key.

具体来说,您将使用预批准API创建配置文件,然后使用包含预批准密钥的Pay API在必要时提交付款.

Specifically, you'll use the Preapproval API to create the profiles and then the Pay API with a preapproval key included to submit payments when necessary.

这篇关于使用具有计费协议的自适应付款/批量付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆