简体   繁体   English

paypal Laravel 8 中的单笔支付

[英]Single Payout in paypal in Laravel 8

I've created a wallet system in which customer can buy products which seller added.我创建了一个钱包系统,客户可以在其中购买卖家添加的产品。 after buying the product all payment will be transfer to admin's paypal account.购买产品后,所有款项将转至管理员的 paypal 帐户。 What i need to do is after receiving payment some percent of payment will be stored in seller's wallet.我需要做的是在收到付款后,一定百分比的付款将存储在卖家的钱包中。 and seller can request to withdraw that amount to admin.卖家可以要求将该金额提取给管理员。 In admin side after approving withdraw request specific seller should get paid in their paypal account from admin's paypal.在管理员方面,在批准提款请求后,特定卖家应从管理员的 paypal 帐户中获得付款。 Simply i need to do paypal to paypal transfer via an email,只需我需要通过 email 进行 paypal 到 paypal 传输,

so i've used single payout API所以我使用了单笔支付 API
but i'm getting pending error.但我收到未决错误。 trying to reach at the solution.试图找到解决方案。 Someone's help will be most appreciated.有人的帮助将不胜感激。

Response i've received is below:我收到的回复如下:

stdClass Object ( [batch_header] => stdClass Object ( [payout_batch_id] => 83TEPJXBQJXZE [batch_status] => PENDING [sender_batch_header] => stdClass Object ( [email_subject] => Test batch status [sender_batch_id] => API-15 ) stdClass Object ( [batch_header] => stdClass Object ( [payout_batch_id] => 83TEPJXBQJXZE [batch_status] => PENDING [sender_batch_header] => stdClass Object ( [email_subject] => Test batch status [sender_batch_id] => API-15 )

    )

[links] => Array
    (
        [0] => stdClass Object
            (
                [href] => https://api.sandbox.paypal.com/v1/payments/payouts/83TEPJXBQJXZE
                [rel] => self
                [method] => GET
            )

    )

) )

It is normal for payout batches to begin in a pending status.付款批次以待处理状态开始是正常的。 Check the status of the batch and individual payouts later.稍后检查批次和个人付款的状态。 Register for webhook notifications if you wish.如果您愿意,可以注册webhook 通知


Using Payouts in the live environment requires approval在实时环境中使用 Payouts 需要获得批准

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

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