简体   繁体   English

贝宝/ wepay延迟连锁支付php

[英]paypal/wepay delayed chained payment php

I have tried a lot to search but not getting any solution or proper example. 我已经尝试了很多搜索,但没有得到任何解决方案或正确的示例。

I want to have payment using paypal and wepay payment.. 我想使用贝宝付款,我们付款。

Scenario is , User need to pay using paypal or wepay and user account will be debited at that time only. 情况是,用户需要使用Paypal或wepay进行付款,并且用户帐户仅在那时才记入借方。 But until admin approve that payment, middle account and payee will not be credited with the amount. 但在管理员批准该笔付款之前,中间帐户和收款人将不会记入该笔款项。 If admin approve the payment then payment release to middle account and payee. 如果管理员批准付款,则付款将下达给中间帐户和收款人。 If admin disapprove then payer will be refunded. 如果管理员不同意,则付款人将被退还。 If no action till 45 days then payer will be refunded after 45 days. 如果直到45天仍未采取任何措施,则付款人将在45天后退还。

I have tried many examples but not getting any proper solutions. 我尝试了许多示例,但没有得到任何适当的解决方案。 i have also tried, https://github.com/paypal/adaptivepayments-sdk-php/tree/master/samples (missing some files) 我也尝试过https://github.com/paypal/adaptivepayments-sdk-php/tree/master/samples (缺少一些文件)

Please help me out. 请帮帮我。 Please give me some working examples 请给我一些可行的例子

To rephrase your scenario with a few solutions you could use. 用一些可以使用的解决方案来重述您的方案。

Payer attempts payment to a payee. 付款人尝试付款给收款人。 This enters a queue for which the admin can approve. 这将输入管理员可以批准的队列。 The payer's card should be tokenized for use, but not actually charged. 付款人的卡应标记为可使用,但不实际收费。 In WePay, you'd use the /credit_card/create + /credit_card/authorize calls. 在WePay中,您可以使用/ credit_card / create + / credit_card / authorize调用。 Now you can charge the card whenever it's approved. 现在,只要获得批准,您就可以为该卡充电。

You could also use https://www.wepay.com/developer/usecases/delayed-payouts , which would charge the card first but wouldn't release it to the merchant until you wanted to. 您还可以使用https://www.wepay.com/developer/usecases/delayed-payouts ,它会先对卡进行收费,但直到您愿意时才将其发行给商家。

Or you could use a https://www.wepay.com/developer/usecases/tipping-point-payments which would let you take a pledge of the amount, but not charge it until it was approved by the admin. 或者,您可以使用https://www.wepay.com/developer/usecases/tipping-point-payments ,该保证金可以用于抵押该金额,但是直到管理员批准后才可以收取。

When the admin approves, you charge the card with the token, trigger the delayed payout, or trigger the tipping point payout. 管理员批准后,您就可以向令牌卡充值,触发延迟支付或触发引爆点支付。 However you wanted the money to come out of the payer's card. 但是,您希望钱从付款人的卡中取出。

For Paypal- Most likely you'd want to do a preapproval for the transaction https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-basicPreapproval-curl-etc/ 对于Paypal-最有可能您要对交易进行预批准https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-basicPreapproval-curl-etc/

And then after approval, you'd call the Pay API to actually use the preapproval. 然后,在批准之后,您将调用Pay API以实际使用预先批准。 https://developer.paypal.com/docs/classic/api/adaptive-payments/Pay_API_Operation/ https://developer.paypal.com/docs/classic/api/adaptive-payments/Pay_API_Operation/

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

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