【问题标题】:Paypal REST API, how to do?Paypal REST API,怎么办?
【发布时间】:2014-07-14 20:43:29
【问题描述】:

我是 paypal REST API 的新手,我正在使用 php,框架 codeigniter。
对不起,我不太明白这是什么意思。

curl -v https://api.sandbox.paypal.com/v1/oauth2/token \
-H "Accept: application/json" \
-H "Accept-Language: en_US" \
-u "EOJ2S-Z6OoN_le_KS1d75wsZ6y0SFdVsY9183IvxFyZp:EClusMEUk8e9ihI7ZdVLF5cZ6y0SFdVsY9183IvxFyZp" \
-d "grant_type=client_credentials"

我找不到任何有关如何阅读本文的相关内容。以及如何在 php cURL 中应用它

谢谢

【问题讨论】:

    标签: php codeigniter curl paypal


    【解决方案1】:

    请参考 github 上的这段代码。 https://github.com/kidino/paypal_ec这个很基础,很容易理解 只需完成贝宝付款步骤和 API 调用的过程。这是文档。 https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECGettingStarted/

    angelleye.com 还为 paypal http://www.angelleye.com/product/php-codeigniter-class-library-for-paypal/ 提供完整功能

    【讨论】:

    【解决方案2】:

    如果你想使用 REST,那么试试这个库,它适用于所有 REST API

    https://github.com/philsturgeon/codeigniter-restclient

    【讨论】:

    • 我打算使用 REST,但我现在对代码很困惑。这个restclient有任何关于贝宝的基本代码吗?
    • 检查这个库的例子真的很简单,我以前在我的项目中使用过它
    猜你喜欢
    • 2016-06-09
    • 2016-02-18
    • 1970-01-01
    • 2018-07-15
    • 1970-01-01
    • 2023-03-03
    • 2014-12-26
    • 2013-08-16
    • 2021-09-01
    相关资源
    最近更新 更多