【问题标题】:How can get the Transaction ID or Status for payment on Website?如何在网站上获取付款的交易 ID 或状态?
【发布时间】:2018-04-28 04:46:47
【问题描述】:

我正在使用PHP,这是我的第一个帖子,我有一些疑问......目标是:“集成在线商店的贝宝支付,因此当用户完成汽车的物品时,他将能够支付使用 PAYPAL 平台,网站应收到一些确认以确保购买”。

在我的代码中,我使用本教程客户端 REST (https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/client-side-REST-integration/) 放置了付款按钮,我使用 SANDBOX/ACCOUNTS 中生成的“测试凭据”(买方帐户测试)尝试了该按钮,但是当购买进程完成我只收到 de "alert()" 消息,但这都是:(....

我知道!...我可以为自己的代码更改此 alert() 函数,但问题是:付款的“Confirmation ID o Transaction ID”在哪里?

我需要做什么才能知道付款的“交易 ID”在哪里?

问候!

【问题讨论】:

    标签: paypal


    【解决方案1】:

    使用演示代码,一旦您收到付款成功的提醒,您需要登录沙盒帐户https://www.sandbox.paypal.com。您将看到使用交易 ID 处理的付款。通常,您将能够从 API 响应中收集信息或使用 GET 来检索数据。

    显示付款详情:https://developer.paypal.com/docs/api/payments/#payment_get

    【讨论】:

      猜你喜欢
      • 2016-02-15
      • 2018-02-26
      • 2015-01-07
      • 2015-09-21
      • 1970-01-01
      • 2012-12-09
      • 1970-01-01
      • 2023-03-31
      • 2021-08-26
      相关资源
      最近更新 更多