首页 文章

从我的应用用户使用PayPal发送付款

提问于
浏览
1

我想创建一个应用程序,用户可以使用他们的PayPal帐户授权我的应用程序,然后我的应用程序将能够以他们的名义向其他PayPal用户发送付款而无需再做任何事情(想象背景cron付款) . 我正在研究PayPal API,但似乎大多数API都是以app为接收者或货币发送者的方式使用,而不是该应用只是协调为其用户发送或接收资金,或者该用户必须是在循环中,因为协议具有重定向到PayPal以供用户确认 .

这有PayPal API吗?

3 回答

  • 1

    这听起来像是在描述第三方Mass Pay . 批量支付将从他们的PayPal帐户中获取资金并将其发送到另一个帐户 . 就您而言,对于他们想要发送的每个帐户,您需要third party authorization . 这将要求他们授权您的API用户名 . MassPay不要求他们订阅任何东西(您在使用时付费) .

  • 1

    你可以使用这个api:

    “使用Pay API操作将资金从发件人的PayPal帐户转移到一个或多个接收方的PayPal帐户”

    https://developer.paypal.com/docs/classic/api/adaptive-payments/Pay_API_Operation/

    示例,预先批准的付款示例:

    “在这个例子中,发件人与您有效的事先批准的协议,使支付的$ 100到贝宝注册的接收器和$ 50到另一个贝宝注册的接收器,支付,而不发送记录完成到paypal.com” .

    curl https://svcs.sandbox.paypal.com/AdaptivePayments/Pay \
      -s \
      --insecure \
      -H "X-PAYPAL-SECURITY-USERID: api_username" \
      -H "X-PAYPAL-SECURITY-PASSWORD: api_password" \
      -H "X-PAYPAL-SECURITY-SIGNATURE: api_signature" \
      -H "X-PAYPAL-REQUEST-DATA-FORMAT: NV" \
      -H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV" \
      -H "X-PAYPAL-APPLICATION-ID: app_id" \
      -d actionType=PAY \
      -d cancelUrl=http://your_cancel_url \
      -d currencyCode=USD \
      -d feesPayer=EACHRECEIVER \
      -d memo=Preapproval-payment-example \
      -d preapprovalKey=PA-9JR04288NR0519129 \
      -d receiverList.receiver(0).amount=100.00 \
      -d receiverList.receiver(0).email=receiver1@domain \
      -d receiverList.receiver(0).primary=false \
      -d receiverList.receiver(1).amount=50.00 \
      -d receiverList.receiver(1).email=receiver2@domain/em> \
      -d receiverList.receiver(1).primary=false \
      -d requestEnvelope.errorLanguage=en_US \
      -d returnUrl=http://your_return_url \
      -d reverseAllParallelPaymentsOnError=true \
      -d senderEmail=sender@domain
    

    已编辑:如何使用自适应付款设置付款预批准,https://developer.paypal.com/docs/classic/adaptive-payments/ht_ap-basicPreapproval-curl-etc/

  • 0

    您可以使用PayPay的自适应支付API执行此操作 . https://developer.paypal.com/webapps/developer/docs/classic/products/adaptive-payments/

    您可以启用"Funds Transfer within a Group"并允许"person-to-person"付款 . 很酷的东西 . https://developer.paypal.com/docs/classic/use-cases/uc_social-transfers-within-group/

相关问题