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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 js调用html页面需要隐藏某个按钮
    • ¥15 ads仿真结果在圆图上是怎么读数的
    • ¥20 Cotex M3的调试和程序执行方式是什么样的?
    • ¥20 java项目连接sqlserver时报ssl相关错误
    • ¥15 一道python难题3
    • ¥15 牛顿斯科特系数表表示
    • ¥15 arduino 步进电机
    • ¥20 程序进入HardFault_Handler
    • ¥15 oracle集群安装出bug
    • ¥15 关于#python#的问题:自动化测试