dongliu5475 2019-06-30 18:32
浏览 405

如何使用PayPal呈现智能支付按钮?

I’m a bit confused trying to follow PayPal’s documentation for implementing Smart Payment Buttons in an e-commerce website. I’m following this guide: https://developer.paypal.com/docs/commerce-platform/payment/create-checkout-button/

I’ve “on-boarded” a seller using the Connected Path URL approach, but you don’t get much information—mainly the “merchant ID” in PayPal of the seller.

The next step in PayPal’s guide is then selling, and goes on to describe how to sell using Smart Payment Buttons (https://developer.paypal.com/docs/commerce-platform/payment/create-checkout-button/) but this is why I get fuzzy. PayPal’s documentation says I need an access token.

  1. I’ve used OAuth before and in my experience, access tokens are transient. How am I supposed to use a transient token in the generating of a checkout button in my shopping cart?
  2. If I am supposed to use an access token to generate a checkout button, how do I obtain one in the first place? My cart page is going to server-side rendered, and invoked by a customer (and not the seller). So the seller isn’t present at all to authenticate the creation of a checkout button.

If someone has integrated PayPal in shopping cart software before, I’d appreciate your advise on this hurdle!

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
    • ¥15 如何处理复杂数据表格的除法运算
    • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
    • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
    • ¥200 uniapp长期运行卡死问题解决
    • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
    • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
    • ¥15 乘性高斯噪声在深度学习网络中的应用
    • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
    • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集