douchenhui5569 2015-03-30 22:25
浏览 38
已采纳

使用PHP将FedEx添加到购物车

Will apologize if this has already been asked. Please post a link if it has been. I need to add shipping to a shopping cart I created. What I want to have is when someone views their shopping cart, there will be a drop down menu with different shipment options (ground, over night, etc) and the cost for each one. Then, after the customer finishes paying, a shipping label will be produced for the package(s).

I've looked at the FedEx developers site, and searched for help on this, but haven't had any luck.

Thanks in advance for the help

Mike

  • 写回答

1条回答 默认 最新

  • douyeyan0650 2015-03-31 22:58
    关注

    FedEx offers different web services that you can use. For displaying rates during the checkout process, you can use their Rate endpoint, see https://www.fedex.com/us/developer/web-services/process.html?tab=tab1. For purchasing labels, you need to use the Ship Service, see https://www.fedex.com/us/developer/web-services/process.html?tab=tab1#app-tab2.

    If you're looking for a simpler solution, you can use Shippo (https://goshippo.com). It's a REST API for FedEx that offers a dedicated Rate and Label creation endpoint and has a convenient PHP api library. I'm happy to help if you have further questions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口